]>
Commit | Line | Data |
---|---|---|
be7e873f | 1 | |
8e80a32d | 2 | %define zope_subname iHotfix |
1f0fb469 | 3 | Summary: Dynamically applying several patches to Zope |
5a705f02 | 4 | Summary(pl.UTF-8): Dodatek aplikujący wiele poprawek dla Zope |
8e80a32d | 5 | Name: Zope-%{zope_subname} |
5d3351f3 | 6 | Version: 0.7.0 |
6a3adfda | 7 | Release: 1 |
8e80a32d | 8 | License: GPL |
9 | Group: Development/Tools | |
397115a0 | 10 | Source0: http://download.ikaaro.org/ihotfix/%{zope_subname}-%{version}.tar.gz |
5d3351f3 | 11 | # Source0-md5: 07a438b14e550e6e37271f34e098bbd6 |
688960dc | 12 | URL: http://www.ikaaro.org/ |
8ec8c3f1 ER |
13 | BuildRequires: python |
14 | BuildRequires: rpmbuild(macros) >= 1.268 | |
1f0fb469 | 15 | Requires(post,postun): /usr/sbin/installzopeproduct |
8e80a32d | 16 | Requires: Zope >= 2.6 |
3574e8d7 | 17 | Requires: python-itools >= 0.9.0 |
ed875f6d | 18 | %pyrequires_eq python-modules |
8e80a32d | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
1f0fb469 | 23 | It dynamically applies several patches to Zope. |
8e80a32d | 24 | |
7e86349b JR |
25 | %description -l pl.UTF-8 |
26 | Dodatek aplikujący wiele poprawek dla Zope. | |
8e80a32d | 27 | |
28 | %prep | |
ed875f6d | 29 | %setup -q -n %{zope_subname}-%{version} |
8e80a32d | 30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
34 | ||
35 | # should tests be included or not? | |
6a3adfda | 36 | cp -af *.py version.txt $RPM_BUILD_ROOT%{_datadir}/%{name} |
8e80a32d | 37 | |
38 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
39 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
40 | ||
41 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %post | |
47 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
8ec8c3f1 | 48 | %service -q zope restart |
8e80a32d | 49 | |
50 | %postun | |
51 | if [ "$1" = "0" ]; then | |
5ffadf5a | 52 | /usr/sbin/installzopeproduct -d %{zope_subname} |
8ec8c3f1 | 53 | %service -q zope restart |
8e80a32d | 54 | fi |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
3574e8d7 | 58 | %doc CHANGES.txt README.txt Changelog |
8e80a32d | 59 | %{_datadir}/%{name} |