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

Zope-stripogram.spec

index 8d68c57b4f072bbd0a86b4263032e5bbd9ab9d7d..aaa5ef2bb7dbd1291a4bca7183523d75ae84392f 100644 (file)
@@ -6,11 +6,12 @@ Version:      1.4
 Release:       2
 License:       GPL
 Group:         Development/Tools
-Source0:       http://dl.sourceforge.net/sourceforge/squishdot/%{zope_subname}-1-4.tgz
+Source0:       http://dl.sourceforge.net/squishdot/%{zope_subname}-1-4.tgz
 # Source0-md5: d09a0fa325ec2ae9a6a94b0b4aabd408
 URL:           http://zope.org/Members/chrisw/StripOGram/
-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
@@ -42,16 +43,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.091195 seconds and 4 git commands to generate.