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
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define product_dir /usr/lib/zope/Products
24 CMFCollector is an issue collector for Zope.
27 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cy zbieranie wyników
30 %setup -q -c %{zope_subname}.tar.gz?tarball=1
35 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{product_dir}
38 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
41 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
43 rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt
44 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT
50 if [ -f /var/lock/subsys/zope ]; then
51 /etc/rc.d/init.d/zope restart >&2
57 if [ -f /var/lock/subsys/zope ]; then
58 /etc/rc.d/init.d/zope restart >&2
62 %defattr(644,root,root,755)
63 %doc %{zope_subname}/*.txt
64 %{product_dir}/%{zope_subname}