1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFCollector
3 Summary: An issue collector for Zopei
4 Summary(pl): Dodatek do Zope umo¿liwiaj±cy zbieranie wyników
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://zope.org/Members/bowerymarc/%{zope_subname}-update/%{version}/%{zope_subname}.%{version}.tgz
11 # Source0-md5: e8daa9e88959edc4e6e8cc03ae23abfa
12 URL: http://zope.org/Members/bowerymarc/CMFCollector-update/
13 %pyrequires_eq python-modules
14 Requires: Zope-CMF >= 1.2
16 Requires(post,postun): /usr/sbin/installzopeproduct
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 CMFCollector is an issue collector for Zope.
25 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cym zbieranie wyników.
28 %setup -q -n %{zope_subname}
29 find . -type f -name .DS_Store | xargs rm -rf
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af {Extensions,dtml,help,image_sources,skins,tests,*.py,*.zexp,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43 rm -rf $RPM_BUILD_ROOT
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48 /etc/rc.d/init.d/zope restart >&2
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
60 %defattr(644,root,root,755)
61 %doc INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt RELEASE_NOTES.txt