]> git.pld-linux.org Git - packages/Zope-ZPhotoSlides.git/blob - Zope-ZPhotoSlides.spec
- tabs in preamble
[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.UTF-8):      Produkt umożliwiający tworzenie dynamicznych galerii zdjęć dla Zope
7 Name:           Zope-%{zope_subname}
8 Version:        2.0
9 Release:        3
10 License:        GPL v2+
11 Group:          Development/Tools
12 Source0:        http://dl.sourceforge.net/zphotoslides/%{zope_subname}-%{version}.tar.gz
13 # Source0-md5:  9dd96e47716ba4950d6b222cdd82edb3
14 URL:            http://www.zphotoslides.org/
15 BuildRequires:  python
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 %pyrequires_eq  python-modules
18 Requires(post,postun):  /usr/sbin/installzopeproduct
19 Requires:       Zope
20 Requires:       python-Imaging
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.UTF-8
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,i18n,photo_edition,skins,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 %service -q zope restart
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname}
58         %service -q zope restart
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc CHANGES README TODO UPGRADE
64 %{_datadir}/%{name}
This page took 0.056691 seconds and 3 git commands to generate.