-%include /usr/lib/rpm/macros.python
%define zope_subname CMFQuickInstallerTool
-Summary: CMFQuickInstallerTool - a Zope product independent from the former CMFQuickInstaller
-Summary(pl): CMFQuickInstallerTool - dodatek do Zope niezale¿ny od poprzedniego CMFQuickInstallera
+Summary: A Zope product independent from the former CMFQuickInstaller
+Summary(pl): Dodatek do Zope niezale¿ny od poprzedniego CMFQuickInstallera
Name: Zope-%{zope_subname}
-Version: 1.3
+Version: 1.5.3
Release: 1
License: GPL
Group: Development/Tools
-Source0: http://dl.sourceforge.net/collective/%{zope_subname}_%{version}.tgz
-# Source0-md5: 60fff6fd03d1ab586479940561d17985
-URL: http://cvs.bluedynamics.org/viewcvs/CMFQuickInstallerTool/
+Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
+# Source0-md5: 4e2a481f2092858129b0901293fcf88d
+URL: http://sourceforge.net/projects/collective/
+BuildRequires: python
%pyrequires_eq python-modules
-Requires: CMF
+Requires: Zope-CMF
Requires: Zope
+Requires(post,postun): /usr/sbin/installzopeproduct
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Conflicts: CMF
%define product_dir /usr/lib/zope/Products
%prep
%setup -q -n %{zope_subname}
-rm -rf {forms,interfaces}/CVS
-
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-cp -af {forms,interfaces,*.py,*.gif} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+cp -af {Extensions,forms,interfaces,tests,*.py,*.gif,version.txt,actions,properties} $RPM_BUILD_ROOT%{_datadir}/%{name}
-%py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
-%py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
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
%postun
-if [ -f /var/lock/subsys/zope ]; then
- /etc/rc.d/init.d/zope restart >&2
+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
fi
%files
%defattr(644,root,root,755)
-%doc AUTHORS README.txt
-%{product_dir}/%{zope_subname}
+%doc AUTHORS README.txt ChangeLog DEPENDS HISTORY.txt PLIP.TXT READMEPATCH.TXT
+%{_datadir}/%{name}