]> git.pld-linux.org Git - packages/Zope-Hotfix.git/blob - Zope-Hotfix.spec
6ef6212cb0fb04852eccd8fb7a3af7586781c047
[packages/Zope-Hotfix.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):    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 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Obsoletes:      Zope-Hotfix = 040713
17 Obsoletes:      Zope-Hotfix = 040714
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This hotfix product fixes a security bug on Zope.
23
24 %description -l pl
25 Ta poprawka naprawia b³êdy bezpieczeñstwa w Zope.
26
27 %prep
28 %setup -q -c
29
30 %build
31
32 %install
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}
36
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/LICENSE.txt
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
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
50 fi
51
52 %postun
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
57         fi
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %doc %{zope_subname}_20050405/README.txt
63 %{_datadir}/%{name}
This page took 0.124032 seconds and 2 git commands to generate.