2 # WARNING: needed test on Zope 2.7.x and Plone 2.x
4 %define zope_subname ZPhotoSlides
5 Summary: Product is a web photo gallery for the dynamic wev-based server Zope
6 Summary(pl.UTF-8): Produkt umożliwiający tworzenie dynamicznych galerii zdjęć dla Zope
7 Name: Zope-%{zope_subname}
11 Group: Development/Tools
12 Source0: http://dl.sourceforge.net/zphotoslides/%{zope_subname}-%{version}.tar.gz
13 # Source0-md5: 9dd96e47716ba4950d6b222cdd82edb3
14 URL: http://www.zphotoslides.org/
16 BuildRequires: rpmbuild(macros) >= 1.268
17 %pyrequires_eq python-modules
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 Requires: python-Imaging
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 ZPhotoSlides is a web photo gallery for the dynamic wev-based server
28 %description -l pl.UTF-8
29 ZPhotoSlides umożliwia tworzenie dynamicznych galerii zdjęć dla
33 %setup -q -n %{zope_subname}
34 find . -type d -name CVS | xargs rm -rf
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40 cp -af {Extensions,dtml,help,i18n,photo_edition,skins,www,zpt,country*,*.py,version.txt,refresh.txt} \
41 $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 CHANGES README TODO UPGRADE