From: Elan Ruusamäe Date: Sun, 19 Mar 2006 18:38:11 +0000 (+0000) Subject: - use %service X-Git-Url: https://git.pld-linux.org/?p=packages%2FZope-Formulator.git;a=commitdiff_plain;h=a0d42842c0ef617031532fc9603ee85dc5d1416e - use %service Changed files: Zope-Formulator.spec -> 1.31 --- diff --git a/Zope-Formulator.spec b/Zope-Formulator.spec index 4e67639..a732fc0 100644 --- a/Zope-Formulator.spec +++ b/Zope-Formulator.spec @@ -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