1 %define zope_subname CMFQuickInstallerTool
2 Summary: A Zope product independent from the former CMFQuickInstaller
3 Summary(pl): Dodatek do Zope niezale¿ny od poprzedniego CMFQuickInstallera
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
10 # Source0-md5: 4e2a481f2092858129b0901293fcf88d
11 URL: http://sourceforge.net/projects/collective/
13 %pyrequires_eq python-modules
16 Requires(post,postun): /usr/sbin/installzopeproduct
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define product_dir /usr/lib/zope/Products
24 CMFQuickInstallerTool is a Zope product independent from the former
25 CMFQuickInstaller. The main difference to CMFQuickInstaller the
26 tracking of what a product creates during install.
29 CMFQuickInstallerTool jest dodatkiem do Zope niezale¿nym od
30 poprzedniego CMFQuickInstallera. G³ówna ró¿nica w stosunku do
31 CMFQuickInstallera to mo¿liwo¶æ ¶ledzenia, co tworzy dany produkt w
35 %setup -q -n %{zope_subname}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41 cp -af {Extensions,forms,interfaces,tests,*.py,*.gif,version.txt,actions,properties} $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
49 rm -rf $RPM_BUILD_ROOT
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
58 if [ "$1" = "0" ]; then
59 /usr/sbin/installzopeproduct -d %{zope_subname}
60 if [ -f /var/lock/subsys/zope ]; then
61 /etc/rc.d/init.d/zope restart >&2
66 %defattr(644,root,root,755)
67 %doc AUTHORS README.txt ChangeLog DEPENDS HISTORY.txt PLIP.TXT READMEPATCH.TXT