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