[yum-cvs] yum yum.spec,1.72,1.73

Jeremy Katz katzj at linux.duke.edu
Tue Jun 27 21:07:15 UTC 2006


Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv22831

Modified Files:
	yum.spec 
Log Message:
add yum-updatesd subpackage 


Index: yum.spec
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum.spec,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- yum.spec	27 Jun 2006 04:40:44 -0000	1.72
+++ yum.spec	27 Jun 2006 21:07:13 -0000	1.73
@@ -24,6 +24,19 @@
 install updated RPM packages. Dependencies are obtained and downloaded 
 automatically prompting the user as necessary.
 
+%package updatesd
+Summary: Update notification daemon
+Group: Applications/System
+Requires: yum
+Requires: dbus-python
+Requires: pygobject2
+Prereq: /sbin/chkconfig 
+Prereq: /sbin/service
+
+%description updatesd
+yum-updatesd provides a daemon which checks for available updates and 
+can notify you when they are available via email, syslog or dbus. 
+
 %prep
 %setup -q
 
@@ -41,21 +54,18 @@
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
 
-%post
-/sbin/chkconfig --add yum
-#/sbin/chkconfig yum on
-#/sbin/service yum condrestart >> /dev/null
-#exit 0
-
+%post updatesd
+/sbin/chkconfig --add yum-updatesd
+/sbin/service yum-updatesd condrestart 2>/dev/null
+exit 0
 
-%preun
+%preun updatesd
 if [ $1 = 0 ]; then
- /sbin/chkconfig --del yum
- /sbin/service yum stop >> /dev/null
+ /sbin/chkconfig --del yum-updatesd
+ /sbin/service yum-updatesd stop 2>/dev/null
 fi
 exit 0
 
-
 %files
 %defattr(-, root, root)
 %doc README AUTHORS COPYING TODO INSTALL ChangeLog PLUGINS
@@ -72,9 +82,21 @@
 /usr/lib/python?.?/site-packages/yum
 /usr/lib/python?.?/site-packages/rpmUtils
 %dir /var/cache/yum
-%{_mandir}/man*/*
+%{_mandir}/man*/yum.*
+%{_mandir}/man*/yum-shell*
+
+%files updatesd
+%defattr(-, root, root)
+%config(noreplace) %{_sysconfdir}/yum/yum-updatesd.conf
+%config %{_sysconfdir}/rc.d/init.d/yum-updatesd
+%config %{_sysconfdir}/dbus-1/system.d/yum-updatesd.conf
+%{_sbindir}/yum-updatesd
+%{_mandir}/man*/yum-updatesd*
 
 %changelog
+* Tue Jun 27 2006 Jeremy Katz <katzj at redhat.com> 
+- add bits for yum-updatesd subpackage
+
 * Tue Jun 27 2006 Seth Vidal <skvidal at linux.duke.edu>
 - 2.9.2
 




More information about the Yum-cvs-commits mailing list