1 %define zope_subname Hotfix
2 Summary: This hotfix product fixes a security bug in Page Templates on Zope
3 Summary(pl.UTF-8): Ta poprawka naprawia błędy bezpieczeństwa w szablonach stron Zope
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://zope.org/Products/Zope/Hotfix-2005-04-05/%{zope_subname}-20050405/%{zope_subname}_20%{version}.tar.gz
10 # Source0-md5: c91c6fa42bfcfed24826d0cd4d69419b
11 URL: http://www.zope.org/Products/Zope/Hotfix-2005-04-05/announce-Hotfix_20050405/
13 %pyrequires_eq python-modules
14 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 Obsoletes: Zope-Hotfix = 040713
18 Obsoletes: Zope-Hotfix = 040714
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This hotfix product fixes a security bug on Zope.
25 %description -l pl.UTF-8
26 Ta poprawka naprawia błędy bezpieczeństwa w Zope.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af %{zope_subname}_20050405/* $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 {} \;;
42 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/LICENSE.txt
45 rm -rf $RPM_BUILD_ROOT
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 %service -q zope restart
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 %service -q zope restart
58 %defattr(644,root,root,755)
59 %doc %{zope_subname}_20050405/README.txt