2 # WARNING: This product not ready yet for Zope 2.7b* and Plone 2.0!!!
4 %include /usr/lib/rpm/macros.python
5 %define zope_subname ZPhotoSlides
6 Summary: Product is a web photo gallery for the dynamic wev-based server Zope
7 Summary(pl): Produkt umo¿liwiaj±cy tworzenie dynamicznych galerii zdjêæ dla Zope
8 Name: Zope-%{zope_subname}
12 Group: Development/Tools
13 Source0: http://dl.sourceforge.net/sourceforge/zphotoslides/%{zope_subname}-%{version}.tar.gz
14 # Source0-md5: 141f6181735fdba8eaaa10de072a1300
15 URL: http://www.zphotoslides.org/
16 %pyrequires_eq python-modules
17 Requires: python-Imaging
18 Requires: Zope-LocalFS
20 Requires(post,postun): /usr/sbin/installzopeproduct
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 ZPhotoSlides is a web photo gallery for the dynamic wev-based server
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,locale,photo_edition,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 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
58 if [ "$1" = "0" ]; then
59 /usr/sbin/installzopeproduct -d %{zope_subname}
60 if [ -f /var/lock/subsys/zope ]; then
61 /etc/rc.d/init.d/zope restart >&2
66 %defattr(644,root,root,755)
67 %doc CHANGES README TODO UPGRADE