1 %define zope_subname Hotfix
2 Summary: This hotfix product fixes a security bug in Page Templates on Zope
3 Summary(pl): 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
15 Requires(post,postun): /usr/sbin/installzopeproduct
16 Obsoletes: Zope-Hotfix = 040713
17 Obsoletes: Zope-Hotfix = 040714
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This hotfix product fixes a security bug on Zope.
25 Ta poprawka naprawia b³êdy bezpieczeñstwa w Zope.
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af %{zope_subname}_20050405/* $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 {} \;;
41 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/LICENSE.txt
44 rm -rf $RPM_BUILD_ROOT
47 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
48 if [ -f /var/lock/subsys/zope ]; then
49 /etc/rc.d/init.d/zope restart >&2
53 if [ "$1" = "0" ]; then
54 /usr/sbin/installzopeproduct -d %{zope_subname}
55 if [ -f /var/lock/subsys/zope ]; then
56 /etc/rc.d/init.d/zope restart >&2
61 %defattr(644,root,root,755)
62 %doc %{zope_subname}_20050405/README.txt