1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFPhotoAlbum
4 Summary: A Zope product providing Photo Album in your CMF
5 Summary(pl): Dodatek dla Zope umo¿liwiaj±cy operacje na zdjêciach w CMF
6 Name: Zope-%{zope_subname}
8 Release: 0.%{sub_ver}.1
10 Group: Development/Tools
11 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}%{sub_ver}.tar.gz
12 # Source0-md5: b16f46d6eb6e57669eba30586e4d4bb5
13 URL: http://sourceforge.net/projects/collective/
14 %pyrequires_eq python-modules
15 Requires: Zope-CMF >= 1.3
16 Requires: Zope-CMFPlone >= 1.0.1
17 Requires: Zope >= 2.6.1
18 Requires: Zope-BTreeFolder2 >= 0.5
19 Requires: Zope-CMFPhoto
20 Requires(post,postun): /usr/sbin/installzopeproduct
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 CMFPhotoAlbum is a Zope product that provides Photo Album in your CMF.
30 CMFPhotoAlbum jest dodatkiem dla Zope umo¿liwiaj±cym operacje na
34 %setup -q -n %{zope_subname}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40 cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48 rm -rf $RPM_BUILD_ROOT
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
57 if [ "$1" = "0" ]; then
58 /usr/sbin/installzopeproduct -d %{zope_subname}
59 if [ -f /var/lock/subsys/zope ]; then
60 /etc/rc.d/init.d/zope restart >&2
65 %defattr(644,root,root,755)
66 %doc HISTORY.txt README.txt