2 %define zope_subname iHotfix
3 Summary: Dynamically applying several patches to Zope
4 Summary(pl): Dodatek aplikuj±cy wiele poprawek dla Zope
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://download.ikaaro.org/ihotfix/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: 07a438b14e550e6e37271f34e098bbd6
12 URL: http://www.ikaaro.org/
14 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 Requires: python-itools >= 0.9.0
18 %pyrequires_eq python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 It dynamically applies several patches to Zope.
26 Dodatek aplikuj±cy wiele poprawek dla Zope.
29 %setup -q -n %{zope_subname}-%{version}
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 # should tests be included or not?
36 cp -af *.py version.txt $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
44 rm -rf $RPM_BUILD_ROOT
47 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
48 %service -q zope restart
51 if [ "$1" = "0" ]; then
52 /usr/sbin/installzopeproduct -d %{zope_subname}
53 %service -q zope restart
57 %defattr(644,root,root,755)
58 %doc CHANGES.txt README.txt Changelog