]>
Commit | Line | Data |
---|---|---|
31c5c2ee | 1 | %define zope_subname CMFPhoto |
796992ab | 2 | %define sub_ver rc2 |
f0c88e81 | 3 | Summary: A Zope product with wrapper objects and a Plone skin for the Photo product |
876b906f | 4 | Summary(pl.UTF-8): Dodatek dla Zope umożliwiający operacje na obiektach i skórach w Plone |
31c5c2ee | 5 | Name: Zope-%{zope_subname} |
e14869aa | 6 | Version: 0.4 |
28c1fc56 | 7 | Release: 0.%{sub_ver}.3 |
980bc0c1 | 8 | License: GPL v2+ |
31c5c2ee | 9 | Group: Development/Tools |
e14869aa | 10 | Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}%{sub_ver}.tar.gz |
796992ab | 11 | # Source0-md5: b175ab4acf27fde98c61c03698ed1cbf |
550812ab | 12 | URL: http://sourceforge.net/projects/collective/ |
b5be8d5b | 13 | BuildRequires: python |
d1a5ccf6 | 14 | BuildRequires: rpmbuild(macros) >= 1.268 |
31c5c2ee | 15 | %pyrequires_eq python-modules |
d1a5ccf6 | 16 | Requires(post,postun): /usr/sbin/installzopeproduct |
31c5c2ee | 17 | Requires: ImageMagick |
980bc0c1 | 18 | Requires: Zope >= 2.6.1 |
d1a5ccf6 ER |
19 | Requires: Zope-CMF >= 1:1.4 |
20 | Requires: Zope-CMFPlone >= 1.0.1 | |
172aef14 | 21 | Conflicts: CMF |
22 | Conflicts: Plone | |
d1a5ccf6 ER |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31c5c2ee | 25 | |
31c5c2ee | 26 | %description |
550812ab JB |
27 | CMFPhoto is a Zope product with wrapper objects and a Plone skin for |
28 | the Photo product. | |
31c5c2ee | 29 | |
4a225897 JR |
30 | %description -l pl.UTF-8 |
31 | CMFPhoto jest dodatkiem dla Zope umożliwiającym operacje na obiektach | |
32 | i skórach w Plone. | |
31c5c2ee | 33 | |
34 | %prep | |
980bc0c1 | 35 | %setup -q -n %{zope_subname} |
31c5c2ee | 36 | |
31c5c2ee | 37 | %install |
38 | rm -rf $RPM_BUILD_ROOT | |
f0c88e81 | 39 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
550812ab | 40 | |
76dd8698 | 41 | cp -af {Extensions,i18n,skins,*.py,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
31c5c2ee | 42 | |
f0c88e81 | 43 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
44 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
31c5c2ee | 45 | |
26dd7b01 | 46 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; |
31c5c2ee | 47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post | |
f0c88e81 | 52 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
d1a5ccf6 | 53 | %service -q zope restart |
31c5c2ee | 54 | |
31c5c2ee | 55 | %postun |
f0c88e81 | 56 | if [ "$1" = "0" ]; then |
0dfd1e25 | 57 | /usr/sbin/installzopeproduct -d %{zope_subname} |
d1a5ccf6 | 58 | %service -q zope restart |
31c5c2ee | 59 | fi |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
7bc7274b | 63 | %doc HISTORY.txt README.txt |
f0c88e81 | 64 | %{_datadir}/%{name} |