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
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 -c %{zope_subname}.tar.gz
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{product_dir}
35 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
37 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt
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 %{zope_subname}/*.txt
59 %{product_dir}/%{zope_subname}