]> git.pld-linux.org Git - packages/Zope-ZPhotoSlides.git/blame - Zope-ZPhotoSlides.spec
- tabs in preamble
[packages/Zope-ZPhotoSlides.git] / Zope-ZPhotoSlides.spec
CommitLineData
74d613d0 1#
e36ecf66 2# WARNING: needed test on Zope 2.7.x and Plone 2.x
74d613d0 3#
74d613d0 4%define zope_subname ZPhotoSlides
5Summary: Product is a web photo gallery for the dynamic wev-based server Zope
ebcc8cf8 6Summary(pl.UTF-8): Produkt umożliwiający tworzenie dynamicznych galerii zdjęć dla Zope
74d613d0 7Name: Zope-%{zope_subname}
94fe4fa7 8Version: 2.0
84cd9b18 9Release: 3
74d613d0 10License: GPL v2+
11Group: Development/Tools
ddaede83 12Source0: http://dl.sourceforge.net/zphotoslides/%{zope_subname}-%{version}.tar.gz
94fe4fa7 13# Source0-md5: 9dd96e47716ba4950d6b222cdd82edb3
74d613d0 14URL: http://www.zphotoslides.org/
d8c68407 15BuildRequires: python
ddaede83 16BuildRequires: rpmbuild(macros) >= 1.268
74d613d0 17%pyrequires_eq python-modules
74d613d0 18Requires(post,postun): /usr/sbin/installzopeproduct
ddaede83
ER
19Requires: Zope
20Requires: python-Imaging
74d613d0 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
6873e582 26Zope.
74d613d0 27
a27a2894
JR
28%description -l pl.UTF-8
29ZPhotoSlides umożliwia tworzenie dynamicznych galerii zdjęć dla
6873e582 30serwera Zope.
74d613d0 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
5320aea1 40cp -af {Extensions,dtml,help,i18n,photo_edition,skins,www,zpt,country*,*.py,version.txt,refresh.txt} \
6873e582 41 $RPM_BUILD_ROOT%{_datadir}/%{name}
74d613d0 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}
ddaede83 53%service -q zope restart
74d613d0 54
55%postun
56if [ "$1" = "0" ]; then
6873e582 57 /usr/sbin/installzopeproduct -d %{zope_subname}
ddaede83 58 %service -q zope restart
74d613d0 59fi
60
61%files
62%defattr(644,root,root,755)
94fe4fa7 63%doc CHANGES README TODO UPGRADE
74d613d0 64%{_datadir}/%{name}
This page took 0.083734 seconds and 4 git commands to generate.