1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFPhotoAlbum
3 Summary: A Zope product providing Photo Album in your CMF
4 Summary(pl): Dodatek dla Zope umo¿liwiaj±cy operacje na zdjêciach w CMF
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: 523f48d4d7e5d69373dcac87fffcad99
12 URL: http://sourceforge.net/projects/collective/
13 %pyrequires_eq python-modules
14 Requires: Zope-CMF >= 1.3
15 Requires: Zope-CMFPlone >= 1.0.1
16 Requires: Zope >= 2.6.1
17 Requires: Zope-BTreeFolder2 >= 0.5
18 Requires: Zope-CMFPhoto
19 Requires(post,postun): /usr/sbin/installzopeproduct
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 CMFPhotoAlbum is a Zope product that provides Photo Album in your CMF.
29 CMFPhotoAlbum jest dodatkiem dla Zope umo¿liwiaj±cym operacje na
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,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