]> git.pld-linux.org Git - packages/Zope-I18NLayer.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 23 Mar 2006 19:27:26 +0000 (19:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-I18NLayer.spec -> 1.10

Zope-I18NLayer.spec

index 340c7307370c80f42d437cdb3ecd612b9805be30..c45a0bcd13138e23ea8d00961182ff8760fccbd3 100644 (file)
@@ -11,11 +11,12 @@ Source0:    http://dl.sourceforge.net/collective/I18NLayer-%{version}.tar.gz
 # Source0-md5: 63097d2b464724c381afd3d598233994
 URL:           http://plone.org/Members/longsleep/I18NLayer/
 BuildRequires: python
 # Source0-md5: 63097d2b464724c381afd3d598233994
 URL:           http://plone.org/Members/longsleep/I18NLayer/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      Zope-CMFPlone
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      Zope-CMFPlone
-Requires:      Zope-archetypes
 Requires:      Zope-PloneLanguageTool
 Requires:      Zope-PloneLanguageTool
+Requires:      Zope-archetypes
 
 Requires(post,postun): /usr/sbin/installzopeproduct
 BuildArch:     noarch
 
 Requires(post,postun): /usr/sbin/installzopeproduct
 BuildArch:     noarch
@@ -50,16 +51,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
 
 %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}
 
 %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
 fi
 
 %files
This page took 0.045134 seconds and 4 git commands to generate.