]> git.pld-linux.org Git - packages/Zope-LinguaPlone.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-LinguaPlone.spec -> 1.6

Zope-LinguaPlone.spec

index a3b86d5e53bd7974fe25d6ad0a837c195f29f96a..b5ee486309fce964fb46d55121a5ba55f0fa9553 100644 (file)
@@ -9,13 +9,14 @@ Group:                Development/Tools
 Source0:       http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
 # Source0-md5: ec534fe349301a5bbf577b5cfcdf5a6a
 URL:           http://sourceforge.net/projects/collective/
-Requires(post,postun): /usr/sbin/installzopeproduct
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,postun): /usr/sbin/installzopeproduct
 %pyrequires_eq python-modules
 Requires:      Zope
-Requires:      Zope-archetypes >= 1.3
-Requires:      Zope-PloneLanguageTool >= 0.5
 Requires:      Zope-CMFPlone >= 2.0.3
+Requires:      Zope-PloneLanguageTool >= 0.5
+Requires:      Zope-archetypes >= 1.3
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -47,16 +48,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
This page took 0.072196 seconds and 4 git commands to generate.