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