From 6174e3821f113837a2344173a64c183c23e7043d Mon Sep 17 00:00:00 2001 From: ciesiel Date: Wed, 6 Apr 2005 11:29:09 +0000 Subject: [PATCH] - added security hotfix 050405 Changed files: Zope-Hotfix.spec -> 1.1 --- Zope-Hotfix.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Zope-Hotfix.spec diff --git a/Zope-Hotfix.spec b/Zope-Hotfix.spec new file mode 100644 index 0000000..6ef6212 --- /dev/null +++ b/Zope-Hotfix.spec @@ -0,0 +1,63 @@ +%define zope_subname Hotfix +Summary: This hotfix product fixes a security bug in Page Templates on Zope +Summary(pl): Ta poprawka naprawia b³êdy bezpieczeñstwa w szablonach stron Zope +Name: Zope-%{zope_subname} +Version: 050405 +Release: 1 +License: ZPL 2.1 +Group: Development/Tools +Source0: http://zope.org/Products/Zope/Hotfix-2005-04-05/%{zope_subname}-20050405/%{zope_subname}_20%{version}.tar.gz +# Source0-md5: c91c6fa42bfcfed24826d0cd4d69419b +URL: http://www.zope.org/Products/Zope/Hotfix-2005-04-05/announce-Hotfix_20050405/ +BuildRequires: python +%pyrequires_eq python-modules +Requires: Zope +Requires(post,postun): /usr/sbin/installzopeproduct +Obsoletes: Zope-Hotfix = 040713 +Obsoletes: Zope-Hotfix = 040714 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This hotfix product fixes a security bug on Zope. + +%description -l pl +Ta poprawka naprawia b³êdy bezpieczeñstwa w Zope. + +%prep +%setup -q -c + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_datadir}/%{name} +cp -af %{zope_subname}_20050405/* $RPM_BUILD_ROOT%{_datadir}/%{name} + +%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} +%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} + +# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; +rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/LICENSE.txt + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} +if [ -f /var/lock/subsys/zope ]; then + /etc/rc.d/init.d/zope restart >&2 +fi + +%postun +if [ "$1" = "0" ]; then + /usr/sbin/installzopeproduct -d %{zope_subname} + if [ -f /var/lock/subsys/zope ]; then + /etc/rc.d/init.d/zope restart >&2 + fi +fi + +%files +%defattr(644,root,root,755) +%doc %{zope_subname}_20050405/README.txt +%{_datadir}/%{name} -- 2.44.0