]> git.pld-linux.org Git - packages/Zope-ZPhotoSlides.git/blame_incremental - Zope-ZPhotoSlides.spec
- tabs in preamble
[packages/Zope-ZPhotoSlides.git] / Zope-ZPhotoSlides.spec
... / ...
CommitLineData
1#
2# WARNING: needed test on Zope 2.7.x and Plone 2.x
3#
4%define zope_subname ZPhotoSlides
5Summary: Product is a web photo gallery for the dynamic wev-based server Zope
6Summary(pl.UTF-8): Produkt umożliwiający tworzenie dynamicznych galerii zdjęć dla Zope
7Name: Zope-%{zope_subname}
8Version: 2.0
9Release: 3
10License: GPL v2+
11Group: Development/Tools
12Source0: http://dl.sourceforge.net/zphotoslides/%{zope_subname}-%{version}.tar.gz
13# Source0-md5: 9dd96e47716ba4950d6b222cdd82edb3
14URL: http://www.zphotoslides.org/
15BuildRequires: python
16BuildRequires: rpmbuild(macros) >= 1.268
17%pyrequires_eq python-modules
18Requires(post,postun): /usr/sbin/installzopeproduct
19Requires: Zope
20Requires: python-Imaging
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25ZPhotoSlides is a web photo gallery for the dynamic wev-based server
26Zope.
27
28%description -l pl.UTF-8
29ZPhotoSlides umożliwia tworzenie dynamicznych galerii zdjęć dla
30serwera Zope.
31
32%prep
33%setup -q -n %{zope_subname}
34find . -type d -name CVS | xargs rm -rf
35
36%install
37rm -rf $RPM_BUILD_ROOT
38install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40cp -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
49rm -rf $RPM_BUILD_ROOT
50
51%post
52/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53%service -q zope restart
54
55%postun
56if [ "$1" = "0" ]; then
57 /usr/sbin/installzopeproduct -d %{zope_subname}
58 %service -q zope restart
59fi
60
61%files
62%defattr(644,root,root,755)
63%doc CHANGES README TODO UPGRADE
64%{_datadir}/%{name}
This page took 0.048221 seconds and 5 git commands to generate.