# Source0-md5: 742fc8c28c073311b00b5104ff75c26f
URL: http://zope.org/Members/bowerymarc/CMFCollector-update/
BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
%pyrequires_eq python-modules
-Requires: Zope-CMF >= 1:1.4
-Requires: Zope >= 2.4
Requires(post,postun): /usr/sbin/installzopeproduct
+Requires: Zope >= 2.4
+Requires: Zope-CMF >= 1:1.4
+Conflicts: CMF
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Conflicts: CMF
%description
CMFCollector is an issue collector for Zope.
%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