2 %include /usr/lib/rpm/macros.python
4 %define zope_subname CMFCollector
6 Summary: CMFCollector is an issue collector for Zope.
7 Summary(pl): CMFCollector jest dodatkiem do Zope umo¿liwiaj±cy zbieranie wyników
8 Name: Zope-%{zope_subname}
12 Group: Development/Tools
13 Source0: http://cvs.zope.org/CMF/%{zope_subname}/%{zope_subname}.tar.gz?tarball=1
14 # Source0-md5: 151c906d1058115f3f98155ec042f8fe
15 URL: http://cvs.zope.org/CMF/%{zope_subname}/
16 %pyrequires_eq python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define product_dir /usr/lib/zope/Products
25 CMFCollector is an issue collector for Zope.
28 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cy zbieranie wyników
31 %setup -q -c %{zope_subname}.tar.gz?tarball=1
36 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{product_dir}
39 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
41 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
42 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
44 rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt
45 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48 rm -rf $RPM_BUILD_ROOT
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
58 if [ -f /var/lock/subsys/zope ]; then
59 /etc/rc.d/init.d/zope restart >&2
63 %defattr(644,root,root,755)
64 %doc %{zope_subname}/*.txt
65 %{product_dir}/%{zope_subname}