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): 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/sourceforge/zphotoslides/%{zope_subname}-%{version}.tar.gz
13 # Source0-md5: c2be3084f144ecfe1a97b4b6439fe659
14 URL: http://www.zphotoslides.org/
15 %pyrequires_eq python-modules
16 Requires: python-Imaging
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 ZPhotoSlides is a web photo gallery for the dynamic wev-based server
27 ZPhotoSlides umo¿liwia tworzenie dynamicznych galerii zdjêæ dla
31 %setup -q -n %{zope_subname}
32 find . -type d -name CVS | xargs rm -rf
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38 cp -af {Extensions,dtml,help,locale,photo_edition,www,zpt,country*,*.py,version.txt,refresh.txt} \
39 $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 CHANGES README TODO UPGRADE doc/*