]> git.pld-linux.org Git - packages/Zope-COREBlog2.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 19 Mar 2006 18:38:11 +0000 (18:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-COREBlog2.spec -> 1.2

Zope-COREBlog2.spec

index 43580e286a093d68afccc70a32561e7518d20657..1f19c1b38cf570720bbfe90355b1e43ff9518d97 100644 (file)
@@ -12,10 +12,11 @@ Source0:    http://coreblog.org/junk/%{zope_subname}%{header_load}.tgz
 # Source0-md5: 6a75d95b2068266b5dd59e1781eff54a
 URL:           http://coreblog.org/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
+Requires(post,postun): /usr/sbin/installzopeproduct
 Requires:      Zope >= 2.7.7
 Requires:      Zope-CMFPlone >= 2.1.1
-Requires(post,postun): /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,8 +29,6 @@ System bloga/webloga oparty na Zope i Plone.
 %prep
 %setup -q -n %{zope_subname}
 
-%build
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
@@ -47,16 +46,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.116944 seconds and 4 git commands to generate.