1 %define zope_subname CMFPhotoAlbum
3 Summary: A Zope product providing Photo Album in your CMF
4 Summary(pl.UTF-8): Dodatek dla Zope umożliwiający operacje na zdjęciach w CMF
5 Name: Zope-%{zope_subname}
7 Release: 0.%{sub_ver}.3
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}%{sub_ver}.tar.gz
11 # Source0-md5: 5b1157ccdbd7638495481db8c3aefcbe
12 URL: http://sourceforge.net/projects/collective/
14 BuildRequires: rpmbuild(macros) >= 1.268
15 %pyrequires_eq python-modules
16 Requires(post,postun): /usr/sbin/installzopeproduct
17 Requires: Zope >= 2.6.1
18 Requires: Zope-BTreeFolder2 >= 0.5
19 Requires: Zope-CMF >= 1:1.4
20 Requires: Zope-CMFPhoto
21 Requires: Zope-CMFPlone >= 1.0.1
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 CMFPhotoAlbum is a Zope product that provides Photo Album in your CMF.
30 %description -l pl.UTF-8
31 CMFPhotoAlbum jest dodatkiem dla Zope umożliwiającym operacje na
35 %setup -q -n %{zope_subname}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41 cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
49 rm -rf $RPM_BUILD_ROOT
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 %service -q zope restart
56 if [ "$1" = "0" ]; then
57 /usr/sbin/installzopeproduct -d %{zope_subname}
58 %service -q zope restart
62 %defattr(644,root,root,755)
63 %doc HISTORY.txt README.txt