oneshot mode shouldn't exit until after the helper exits
[yum-updatesd.git] / yum-updatesd.spec
1 Summary: Update notification daemon
2 Name: yum-updatesd
3 Epoch: 1
4 Version: 0.3
5 Release: 1%{?dist}
6 License: GPLv2
7 Group: System Environment/Base
8 Source0: %{name}-%{version}.tar.bz2
9 URL: http://linux.duke.edu/yum/
10 BuildArch: noarch
11 BuildRequires: python
12 Requires: python >= 2.4
13 Requires: yum >= 3.2.0
14 Requires: dbus-python
15 Requires: pygobject2
16 Requires: gamin-python
17 Requires(preun): /sbin/chkconfig
18 Requires(post): /sbin/chkconfig
19 Requires(preun): /sbin/service
20 Requires(post): /sbin/service
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
23 %description
24 yum-updatesd provides a daemon which checks for available updates and 
25 can notify you when they are available via email, syslog or dbus. 
26
27 %prep
28 %setup -q
29
30 %build
31 make
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 make DESTDIR=$RPM_BUILD_ROOT install
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %post
41 /sbin/chkconfig --add yum-updatesd
42 /sbin/service yum-updatesd condrestart >/dev/null 2>&1
43 exit 0
44
45 %preun
46 if [ $1 = 0 ]; then
47  /sbin/chkconfig --del yum-updatesd
48  /sbin/service yum-updatesd stop >/dev/null 2>&1
49 fi
50 exit 0
51
52 %files
53 %defattr(-,root,root,-)
54 %doc COPYING
55 %{_sysconfdir}/rc.d/init.d/yum-updatesd
56 %config(noreplace) %{_sysconfdir}/yum/yum-updatesd.conf
57 %config %{_sysconfdir}/dbus-1/system.d/yum-updatesd.conf
58 %{_sbindir}/yum-updatesd
59 %{_libexecdir}/yum-updatesd-helper
60 %{_mandir}/man*/yum-updatesd*
61
62
63 %changelog
64 * Mon Jul 23 2007 Jeremy Katz <katzj@redhat.com> - 1:0.3-1
65 - update to new version
66
67 * Thu Jul 19 2007 Jeremy Katz <katzj@redhat.com> - 1:0.1-1
68 - new package for standalone yum-updatesd