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

Zope-ZSyncer.spec

index b7995502a997f903e2fff8ba3d616b3e416b53a1..97b60b4d8af923f45f8c4f6031da7521b87afe06 100644 (file)
@@ -1,17 +1,18 @@
 %define                zope_subname    ZSyncer
+%define                sub_ver beta3
 Summary:       Project allows multiple Zopes to easily be manually synchronized
 Summary(pl):   Projekt pozwalaj±cy na synchronizowanie obiektów miêdzy ró¿nymi serwisami Zope
 Name:          Zope-%{zope_subname}
 Version:       0.6.0
-%define                sub_ver beta3
 Release:       0.%{sub_ver}.2
 License:       GPL
 Group:         Development/Tools
 Source0:       http://dl.sourceforge.net/zsyncer/%{zope_subname}-%{version}-%{sub_ver}.tgz
 # Source0-md5: 0615800bc97be463dabe11c46c848bb0
 URL:           http://sourceforge.net/projects/zsyncer/
-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
 BuildArch:     noarch
@@ -44,16 +45,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.098529 seconds and 4 git commands to generate.