%define zope_subname CMFQuickInstallerTool
Summary: A Zope product independent from the former CMFQuickInstaller
-Summary(pl): Dodatek do Zope niezale¿ny od poprzedniego CMFQuickInstallera
+Summary(pl.UTF-8): Dodatek do Zope niezależny od poprzedniego CMFQuickInstallera
Name: Zope-%{zope_subname}
-Version: 1.5.5
+Version: 1.5.7
Release: 1
License: GPL
Group: Development/Tools
-Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
-# Source0-md5: 8ed7f7922a2620e6692e39f01afe10f6
+Source0: http://plone.org/products/cmfquickinstallertool/releases/%{version}/%{zope_subname}-%{version}.tar.gz
+# Source0-md5: 1f662098e304c11167a2c5e8ed46eb14
URL: http://sourceforge.net/projects/collective/
BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
%pyrequires_eq python-modules
-Requires: Zope-CMF
-Requires: Zope
Requires(post,postun): /usr/sbin/installzopeproduct
+Requires: Zope
+Requires: Zope-CMF
+Conflicts: CMF
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Conflicts: CMF
%define product_dir /usr/lib/zope/Products
CMFQuickInstaller. The main difference to CMFQuickInstaller the
tracking of what a product creates during install.
-%description -l pl
-CMFQuickInstallerTool jest dodatkiem do Zope niezale¿nym od
-poprzedniego CMFQuickInstallera. G³ówna ró¿nica w stosunku do
-CMFQuickInstallera to mo¿liwo¶æ ¶ledzenia, co tworzy dany produkt w
+%description -l pl.UTF-8
+CMFQuickInstallerTool jest dodatkiem do Zope niezależnym od
+poprzedniego CMFQuickInstallera. Główna różnica w stosunku do
+CMFQuickInstallera to możliwość śledzenia, co tworzy dany produkt w
czasie instalacji.
%prep
%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