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}
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/
13 BuildRequires: rpmbuild(macros) >= 1.268
14 %pyrequires_eq python-modules
15 Requires(post,postun): /usr/sbin/installzopeproduct
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 CookieCrumbler is Zope product that enables cookie-based
24 %description -l pl.UTF-8
25 CookieCrumbler jest dodatkiem do Zope umożliwiającym uwierzytelnianie
29 %setup -q -n %{zope_subname}
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}
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
45 rm -rf $RPM_BUILD_ROOT
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 %service -q zope restart
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 %service -q zope restart
58 %defattr(644,root,root,755)
59 %doc CHANGES.txt README.txt