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: 904c062a91f4fa0502fc78072b38767e
11 URL: http://sourceforge.net/projects/collective/
12 %pyrequires_eq python-modules
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define product_dir /usr/lib/zope/Products
23 CMFQuickInstallerTool is a Zope product independent from the former
24 CMFQuickInstaller. The main difference to CMFQuickInstaller the
25 tracking of what a product creates during install.
28 CMFQuickInstallerTool jest dodatkiem do Zope niezale¿nym od
29 poprzedniego CMFQuickInstallera. G³ówna ró¿nica w stosunku do
30 CMFQuickInstallera to mo¿liwo¶æ ¶ledzenia, co tworzy dany produkt w
34 %setup -q -n %{zope_subname}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40 cp -af {forms,interfaces,*.py,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48 rm -rf $RPM_BUILD_ROOT
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
57 if [ "$1" = "0" ]; then
58 /usr/sbin/installzopeproduct -d %{zope_subname}
59 if [ -f /var/lock/subsys/zope ]; then
60 /etc/rc.d/init.d/zope restart >&2
65 %defattr(644,root,root,755)
66 %doc AUTHORS README.txt ChangeLog DEPENDS