1 %include /usr/lib/rpm/macros.python
3 %define zope_subname CMFQuickInstallerTool
5 Summary: CMFQuickInstallerTool is a Zope product independent from the former CMFQuickInstaller
6 Summary(pl): CMFQuickInstallerToolL jest dodatkiem do Zope niezale¿nym od formy CMFQuickInstaller
7 Name: Zope-%{zope_subname}
11 Group: Development/Tools
12 Source0: http://switch.dl.sourceforge.net/sourceforge/collective/%{zope_subname}_%{version}.tgz
13 # Source0-md5: dfcb8b48682a8164b0b955235113ec7b
14 URL: http://cvs.bluedynamics.org/viewcvs/CMFQuickInstallerTool/
15 %pyrequires_eq python-modules
19 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 CMFQuickInstallerToolL jest dodatkiem do Zope niezale¿nym od formy
30 CMFQuickInstaller. Dodatek w stosunku do CMFQuickInstaller umo¿liwa
31 ¶ledzenie zmian produktów podczas tworzenia instalacji.
34 %setup -q -c %{zope_subname}-%{version}
39 mv -f AUTHORS README.txt docs/
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{product_dir}
45 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
47 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
48 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
50 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
51 rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/docs
54 rm -rf $RPM_BUILD_ROOT
57 if [ -f /var/lock/subsys/zope ]; then
58 /etc/rc.d/init.d/zope restart >&2
64 if [ -f /var/lock/subsys/zope ]; then
65 /etc/rc.d/init.d/zope restart >&2
69 %defattr(644,root,root,755)
70 %doc %{zope_subname}/docs/*
71 %{product_dir}/%{zope_subname}