1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFPhoto
3 Summary: A Zope product with wrapper objects and a Plone skin for the Photo product
4 Summary(pl): Dodatek dla Zope umo¿liwiaj±cy operacje na obiektach i skórach w Plone
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: 1adfbc47d6ccccff38f64e3a3f8106fc
12 URL: http://sourceforge.net/projects/collective/
13 %pyrequires_eq python-modules
14 Requires: Zope-CMF >= 1.3
16 Requires: Zope-CMFPlone >= 1.0.1
17 Requires: Zope >= 2.6.1
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 CMFPhoto is a Zope product with wrapper objects and a Plone skin for
29 CMFPhoto jest dodatkiem dla Zope umo¿liwiaj±cym operacje na obiektach
33 %setup -q -n %{zope_subname}
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af {Extensions,i18n,skins,*.py,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
56 if [ "$1" = "0" ]; then
57 /usr/sbin/installzopeproduct -d %{zope_subname}
58 if [ -f /var/lock/subsys/zope ]; then
59 /etc/rc.d/init.d/zope restart >&2
64 %defattr(644,root,root,755)
65 %doc HISTORY.txt README.txt