diff options
author | Elan Ruusamäe | 2006-03-23 19:27:26 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 3978173d02b5ac7cf7d489d4acbbb9e66afb0bc0 (patch) | |
tree | 9f043e1fb9b23e64bf233c4787b5b8ae833fb75e | |
parent | 56243456d93ac794b089179ce330fe8ed782b29a (diff) | |
download | Zope-Localizer-3978173d02b5ac7cf7d489d4acbbb9e66afb0bc0.zip Zope-Localizer-3978173d02b5ac7cf7d489d4acbbb9e66afb0bc0.tar.gz |
- use %service
Changed files:
Zope-Localizer.spec -> 1.25
-rw-r--r-- | Zope-Localizer.spec | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Zope-Localizer.spec b/Zope-Localizer.spec index 859f681..214e170 100644 --- a/Zope-Localizer.spec +++ b/Zope-Localizer.spec @@ -11,11 +11,12 @@ Source0: http://www.ikaaro.org/download/localizer/%{zope_subname}-%{version}.tar # Source0-md5: ab6f95886f3475387078966780438083 URL: http://www.localizer.org/ BuildRequires: python +BuildRequires: rpmbuild(macros) >= 1.268 %pyrequires_eq python-modules +Requires(post,postun): /usr/sbin/installzopeproduct Requires: Zope >= 2.7 -Requires: python-itools >= 0.9.2 Requires: Zope-iHotfix >= 0.5.2 -Requires(post,postun): /usr/sbin/installzopeproduct +Requires: python-itools >= 0.9.2 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -46,16 +47,12 @@ rm -rf $RPM_BUILD_ROOT %post /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} -if [ -f /var/lock/subsys/zope ]; then - /etc/rc.d/init.d/zope restart >&2 -fi +%service -q zope restart %postun if [ "$1" = "0" ]; then /usr/sbin/installzopeproduct -d %{zope_subname} - if [ -f /var/lock/subsys/zope ]; then - /etc/rc.d/init.d/zope restart >&2 - fi + %service -q zope restart fi %files |