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://dl.sourceforge.net/lleu/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: d6d7f44965e4643de3a6f46fab24b3c9
12 URL: http://sourceforge.net/projects/lleu/
13 BuildRequires: python >= 2.2
14 Requires(post,postun): /usr/sbin/installzopeproduct
16 Requires: python-itools >= 0.5.0
17 %pyrequires_eq python-modules
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 It dynamically applies several patches to Zope.
25 Dodatek aplikuj±cy wiele poprawek dla Zope.
28 %setup -q -n %{zope_subname}-%{version}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34 # should tests be included or not?
35 cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43 rm -rf $RPM_BUILD_ROOT
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48 /etc/rc.d/init.d/zope restart >&2
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
60 %defattr(644,root,root,755)
61 %doc TODO.txt README.txt