1 %define zope_subname CMFQuickInstallerTool
2 Summary: A Zope product independent from the former CMFQuickInstaller
3 Summary(pl.UTF-8): Dodatek do Zope niezależny od poprzedniego CMFQuickInstallera
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://plone.org/products/cmfquickinstallertool/releases/%{version}/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: 1f662098e304c11167a2c5e8ed46eb14
11 URL: http://sourceforge.net/projects/collective/
13 BuildRequires: rpmbuild(macros) >= 1.268
14 %pyrequires_eq python-modules
15 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define product_dir /usr/lib/zope/Products
25 CMFQuickInstallerTool is a Zope product independent from the former
26 CMFQuickInstaller. The main difference to CMFQuickInstaller the
27 tracking of what a product creates during install.
29 %description -l pl.UTF-8
30 CMFQuickInstallerTool jest dodatkiem do Zope niezależnym od
31 poprzedniego CMFQuickInstallera. Główna różnica w stosunku do
32 CMFQuickInstallera to możliwość śledzenia, co tworzy dany produkt w
36 %setup -q -n %{zope_subname}
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
42 cp -af {Extensions,forms,interfaces,tests,*.py,*.gif,version.txt,actions,properties} $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
47 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
50 rm -rf $RPM_BUILD_ROOT
53 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
54 %service -q zope restart
57 if [ "$1" = "0" ]; then
58 /usr/sbin/installzopeproduct -d %{zope_subname}
59 %service -q zope restart
63 %defattr(644,root,root,755)
64 %doc AUTHORS README.txt ChangeLog DEPENDS HISTORY.txt PLIP.TXT READMEPATCH.TXT