# Source0-md5: dc9ee26b8c78a32238afd2540dcf258c
URL: http://sourceforge.net/projects/collective/
BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
%pyrequires_eq python-modules
+Requires(post,postun): /usr/sbin/installzopeproduct
Requires: Zope >= 2.5.1
Requires: Zope-CMF >= 1:1.4
-Requires(post,postun): /usr/sbin/installzopeproduct
+Conflicts: CMF
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Conflicts: CMF
%description
CMMForum is a Zope product - Anonymous can post by default but can't
%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