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

Zope-Formulator.spec

index 4e676390cedab01dca02d25dbb0f095cf237c677..a732fc055d3fb787a33c2e706aa69f8b02359c5d 100644 (file)
@@ -11,25 +11,25 @@ Source0:    http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subnam
 # Source0-md5: c50bc1997ed8a4509ffcf75b7d1a495e
 URL:           http://www.infrae.com/products/formulator/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope
 Requires(post,postun): /usr/sbin/installzopeproduct
+Requires:      Zope
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-%{zope_subname} is a tool to help with the creation and validation of web
-forms. Form fields are stored as objects in Zope, in a special Form folder.
+%{zope_subname} is a tool to help with the creation and validation of
+web forms. Form fields are stored as objects in Zope, in a special
+Form folder.
 
 %description -l pl
-%{zope_subname} jest narzêdziem pomagaj±cym przy tworzeniu i sprawdzaniu
-poprawno¶ci formularzy WWW. Pola formularza s± zapisywane jako obiekty
-w Zope, w specjalnym folderze Form.
+%{zope_subname} jest narzêdziem pomagaj±cym przy tworzeniu i
+sprawdzaniu poprawno¶ci formularzy WWW. Pola formularza s± zapisywane
+jako obiekty w Zope, w specjalnym folderze Form.
 
 %prep
 %setup -q -n %{zope_subname}
-
-%build
 mkdir docs
 mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
 
@@ -49,16 +49,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
+       /usr/sbin/installzopeproduct -d %{zope_subname}
+       %service -q zope restart
 fi
 
 %files
This page took 0.087639 seconds and 4 git commands to generate.