]> git.pld-linux.org Git - packages/Zope-CookieCrumbler.git/blob - Zope-CookieCrumbler.spec
- tabs in preamble
[packages/Zope-CookieCrumbler.git] / Zope-CookieCrumbler.spec
1 %define         zope_subname    CookieCrumbler
2 Summary:        Zope product that enables cookie-based authentication
3 Summary(pl.UTF-8):      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 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 CookieCrumbler is Zope product that enables cookie-based
22 authentication.
23
24 %description -l pl.UTF-8
25 CookieCrumbler jest dodatkiem do Zope umożliwiającym uwierzytelnianie
26 przez cookies.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af {dtml,tests,*.py,*.gif,version.txt} $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}/docs
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 CHANGES.txt README.txt
60 %{_datadir}/%{name}
This page took 0.06498 seconds and 3 git commands to generate.