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)
20 %define product_dir /usr/lib/zope/Products
23 CMFCollector is an issue collector for Zope.
26 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cym zbieranie wyników.
29 %setup -q -n %{zope_subname}
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/help
35 # should tests be included or not?
36 cp -af {Extensions,dtml,skins,tests,*.py,*.zexp} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
44 rm -rf $RPM_BUILD_ROOT
47 if [ -f /var/lock/subsys/zope ]; then
48 /etc/rc.d/init.d/zope restart >&2
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
57 %defattr(644,root,root,755)
58 %doc INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt
59 %{product_dir}/%{zope_subname}