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