1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFCollector
3 Summary: CMFCollector - an issue collector for Zope
4 Summary(pl): CMFCollector - dodatek do Zope umo¿liwiaj±cy zbieranie wyników
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 #Source0: http://cvs.zope.org/CMF/%{zope_subname}/%{zope_subname}.tar.gz?tarball=1
11 Source0: %{zope_subname}.tar.gz
12 # Source0-md5: 151c906d1058115f3f98155ec042f8fe
13 URL: http://cvs.zope.org/CMF/%{zope_subname}/
14 %pyrequires_eq python-modules
15 Requires: Zope-CMF >= 1.2
18 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±cym zbieranie wyników.
30 %setup -q -n %{zope_subname}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/help
36 # should tests be included or not?
37 cp -af {Extensions,dtml,skins,tests,*.py,*.zexp} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45 rm -rf $RPM_BUILD_ROOT
48 if [ -f /var/lock/subsys/zope ]; then
49 /etc/rc.d/init.d/zope restart >&2
53 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
58 %defattr(644,root,root,755)
59 %doc INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt
60 %{product_dir}/%{zope_subname}