]> git.pld-linux.org Git - packages/Zope-CookieCrumbler.git/blob - Zope-CookieCrumbler.spec
- upgraded to version 1.2
[packages/Zope-CookieCrumbler.git] / Zope-CookieCrumbler.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    CookieCrumbler
3 Summary:        Zope product that enables cookie-based authentication
4 Summary(pl):    Dodatek do Zope umo¿liwiaj±cy uwierzytelnianie przez cookies
5 Name:           Zope-%{zope_subname}
6 Version:        1.2
7 Release:        1
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 Source0:        http://hathawaymix.org/Software/%{zope_subname}/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5:  7dbb67adaa6ce552456d8817da4b15d8
12 URL:            http://hathawaymix.org/Software/CookieCrumbler/
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 CookieCrumbler is Zope product that enables cookie-based
21 authentication.
22
23 %description -l pl
24 CookieCrumbler jest dodatkiem do Zope umo¿liwiaj±cym uwierzytelnianie
25 przez cookies.
26
27 %prep
28 %setup -q -n %{zope_subname}
29
30 %build
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af {dtml,tests,*.py,*.gif,version.txt} $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}/docs
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 CHANGES.txt README.txt
63 %{_datadir}/%{name}
This page took 0.066996 seconds and 4 git commands to generate.