]> git.pld-linux.org Git - packages/Zope-ZPhotoSlides.git/blob - Zope-ZPhotoSlides.spec
- upgraded to version 1.3 (no more LocalFS)
[packages/Zope-ZPhotoSlides.git] / Zope-ZPhotoSlides.spec
1 #
2 # WARNING: needed test on Zope 2.7.x and Plone 2.x
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.3
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:  c2be3084f144ecfe1a97b4b6439fe659
15 URL:            http://www.zphotoslides.org/
16 %pyrequires_eq  python-modules
17 Requires:       python-Imaging
18 Requires:       Zope
19 Requires(post,postun):  /usr/sbin/installzopeproduct
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 ZPhotoSlides is a web photo gallery for the dynamic wev-based server
25 Zope.
26
27 %description -l pl
28 ZPhotoSlides umo¿liwia tworzenie dynamicznych galerii zdjêæ dla
29 serwera Zope.
30
31 %prep
32 %setup -q -n %{zope_subname}
33 find . -type d -name CVS | xargs rm -rf
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 cp -af {Extensions,dtml,help,locale,photo_edition,www,zpt,country*,*.py,version.txt,refresh.txt} \
40         $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53         /etc/rc.d/init.d/zope restart >&2
54 fi
55
56 %postun
57 if [ "$1" = "0" ]; then
58         /usr/sbin/installzopeproduct -d %{zope_subname}
59         if [ -f /var/lock/subsys/zope ]; then
60                 /etc/rc.d/init.d/zope restart >&2
61         fi
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc CHANGES README TODO UPGRADE doc/*
67 %{_datadir}/%{name}
This page took 0.079035 seconds and 3 git commands to generate.