]> git.pld-linux.org Git - packages/Zope-fcForum.git/blobdiff - Zope-fcForum.spec
- tabs in preamble
[packages/Zope-fcForum.git] / Zope-fcForum.spec
index 53bc8f17e11396061ae04b395905d2759e418de4..320506891fc284549c6731767991fd35a06fe551 100644 (file)
@@ -1,6 +1,6 @@
 %define                zope_subname    fcForum
 Summary:       Message Board Product for Zope
-Summary(pl):   Forum dla Zope
+Summary(pl.UTF-8):     Forum dla Zope
 Name:          Zope-%{zope_subname}
 Version:       2.0.7
 Release:       3
@@ -10,17 +10,18 @@ Source0:    http://www.genixsys.com/files/%{zope_subname}-2-0-7.tgz
 # Source0-md5: 159dedced08004e140c516041f6954bc
 URL:           http://www.genixsys.com/forum_dev/index_html
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
+Requires(post,postun): /usr/sbin/installzopeproduct
 Requires:      Zope
 Requires:      Zope-CookieCrumbler
-Requires(post,postun): /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Message Board Product for Zope.
 
-%description -l pl
+%description -l pl.UTF-8
 Forum dla Zope.
 
 %prep
@@ -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
+       /usr/sbin/installzopeproduct -d %{zope_subname}
+       %service -q zope restart
 fi
 
 %files
This page took 0.032129 seconds and 4 git commands to generate.