]> git.pld-linux.org Git - SPECS.git/blob - Zope-Hotfix.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / Zope-Hotfix.spec
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}
5 Version:        050405
6 Release:        1
7 License:        ZPL 2.1
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/
12 BuildRequires:  python
13 %pyrequires_eq  python-modules
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
17 Obsoletes:      Zope-Hotfix = 040713
18 Obsoletes:      Zope-Hotfix = 040714
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This hotfix product fixes a security bug on Zope.
24
25 %description -l pl.UTF-8
26 Ta poprawka naprawia błędy bezpieczeństwa w Zope.
27
28 %prep
29 %setup -q -c
30
31 %build
32
33 %install
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}
37
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/LICENSE.txt
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 %service -q zope restart
50
51 %postun
52 if [ "$1" = "0" ]; then
53         /usr/sbin/installzopeproduct -d %{zope_subname}
54         %service -q zope restart
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc %{zope_subname}_20050405/README.txt
60 %{_datadir}/%{name}
This page took 0.92038 seconds and 3 git commands to generate.