X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=Zope-Localizer.spec;fp=Zope-Localizer.spec;h=214e170e449f0c318748cd14082b12665366e880;hb=3978173d02b5ac7cf7d489d4acbbb9e66afb0bc0;hp=859f681e7133ba01b97e782ffe6448e19f4e9f6c;hpb=56243456d93ac794b089179ce330fe8ed782b29a;p=packages%2FZope-Localizer.git 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