- initial release
[packages/Zope-ZPhotoSlides.git] / Zope-ZPhotoSlides.spec
1 #
2 # WARNING: This product not ready yet for Zope 2.7b* and Plone 2.0!!!
3 #
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}
9 Version:        1.2.1
10 Release:        1
11 License:        GPL v2+
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
19 Requires:       Zope
20 Requires(post,postun):  /usr/sbin/installzopeproduct
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 ZPhotoSlides is a web photo gallery for the dynamic wev-based server
26 Zope
27
28 %description -l pl
29 ZPhotoSlides umo¿liwia tworzenie dynamicznych galerii zdjêæ dla
30 serwera Zope
31
32 %prep
33 %setup -q -n %{zope_subname}
34 find . -type d -name CVS | xargs rm -rf
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {Extensions,dtml,help,locale,photo_edition,www,zpt,country*,*.py,version.txt,refresh.txt} \
41     $RPM_BUILD_ROOT%{_datadir}/%{name}
42
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
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
55 fi
56
57 %postun
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
62         fi
63 fi
64
65 %files
66 %defattr(644,root,root,755)
67 %doc CHANGES README TODO UPGRADE
68 %{_datadir}/%{name}
This page took 0.054049 seconds and 3 git commands to generate.