]> git.pld-linux.org Git - packages/Zope-CookieCrumbler.git/blob - Zope-CookieCrumbler.spec
- release 2 for rebuild with python 2.4
[packages/Zope-CookieCrumbler.git] / Zope-CookieCrumbler.spec
1 %define         zope_subname    CookieCrumbler
2 Summary:        Zope product that enables cookie-based authentication
3 Summary(pl):    Dodatek do Zope umo¿liwiaj±cy uwierzytelnianie przez cookies
4 Name:           Zope-%{zope_subname}
5 Version:        1.2
6 Release:        2
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://hathawaymix.org/Software/%{zope_subname}/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  7dbb67adaa6ce552456d8817da4b15d8
11 URL:            http://hathawaymix.org/Software/CookieCrumbler/
12 %pyrequires_eq  python-modules
13 Requires:       Zope
14 Requires(post,postun):  /usr/sbin/installzopeproduct
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 CookieCrumbler is Zope product that enables cookie-based
20 authentication.
21
22 %description -l pl
23 CookieCrumbler jest dodatkiem do Zope umo¿liwiaj±cym uwierzytelnianie
24 przez cookies.
25
26 %prep
27 %setup -q -n %{zope_subname}
28
29 %build
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34 cp -af {dtml,tests,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
35
36 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
40 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48         /etc/rc.d/init.d/zope restart >&2
49 fi
50
51 %postun
52 if [ "$1" = "0" ]; then
53         /usr/sbin/installzopeproduct -d %{zope_subname} 
54         if [ -f /var/lock/subsys/zope ]; then
55                 /etc/rc.d/init.d/zope restart >&2
56         fi
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc CHANGES.txt README.txt
62 %{_datadir}/%{name}
This page took 0.134053 seconds and 3 git commands to generate.