1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFPhoto
3 Summary: CMFPhoto - a Zope product with wrapper objects and a Plone skin for the Photo product
4 Summary(pl): CMFPhoto - 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
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define product_dir /usr/lib/zope/Products
24 CMFPhoto is a Zope product with wrapper objects and a Plone skin for
28 CMFPhoto jest dodatkiem dla Zope umo¿liwiaj±cym operacje na obiektach
32 %setup -q -n %{zope_subname}
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38 cp -af {Extensions,i18n,skins,*.py} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
41 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
43 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
46 rm -rf $RPM_BUILD_ROOT
49 if [ -f /var/lock/subsys/zope ]; then
50 /etc/rc.d/init.d/zope restart >&2
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
59 %defattr(644,root,root,755)
60 %doc HISTORY.txt README.txt
61 %{product_dir}/%{zope_subname}