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: %{zope_subname}.tar.gz
15 # Source0-md5: 151c906d1058115f3f98155ec042f8fe
16 URL: http://cvs.zope.org/CMF/%{zope_subname}/
17 %pyrequires_eq python-modules
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define product_dir /usr/lib/zope/Products
26 CMFCollector is an issue collector for Zope.
29 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cy zbieranie wyników
32 %setup -q -c %{zope_subname}.tar.gz
37 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{product_dir}
40 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
42 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
43 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
45 rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt
46 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
49 rm -rf $RPM_BUILD_ROOT
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
59 if [ -f /var/lock/subsys/zope ]; then
60 /etc/rc.d/init.d/zope restart >&2
64 %defattr(644,root,root,755)
65 %doc %{zope_subname}/*.txt
66 %{product_dir}/%{zope_subname}