SPECS: yum.spec - add %service restart, fix chkconfig dep
glen
glen at pld-linux.org
Sat Oct 22 23:25:35 CEST 2005
Author: glen Date: Sat Oct 22 21:25:35 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add %service restart, fix chkconfig dep
---- Files affected:
SPECS:
yum.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/yum.spec
diff -u SPECS/yum.spec:1.12 SPECS/yum.spec:1.13
--- SPECS/yum.spec:1.12 Sat Oct 22 23:24:04 2005
+++ SPECS/yum.spec Sat Oct 22 23:25:29 2005
@@ -14,6 +14,8 @@
URL: http://www.linux.duke.edu/yum/
BuildRequires: gettext-devel
BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires: rc-scripts
Requires(post,preun): /sbin/chkconfig
Requires: python
Requires: python-libxml2
@@ -46,6 +48,7 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
PYLIBDIR=%{py_sitescriptdir}/..
+
# install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/yum.conf
# install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/yum.cron
@@ -56,13 +59,12 @@
%post
/sbin/chkconfig --add yum
-#/etc/rc.d/init.d/yum condrestart >> /dev/null
+%service yum restart
%preun
if [ "$1" = "0" ]; then
/sbin/chkconfig --del yum
-# XXX: check if running
- /etc/rc.d/init.d/yum stop
+ %service -q yum stop
fi
exit 0
@@ -90,6 +92,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2005/10/22 21:25:29 glen
+- add %service restart, fix chkconfig dep
+
Revision 1.12 2005/10/22 21:24:04 glen
- adapterized
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/yum.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list