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}
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
14 Requires(post,postun): /usr/sbin/installzopeproduct
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 CookieCrumbler is Zope product that enables cookie-based
23 CookieCrumbler jest dodatkiem do Zope umo¿liwiaj±cym uwierzytelnianie
27 %setup -q -n %{zope_subname}
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}
36 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
40 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
43 rm -rf $RPM_BUILD_ROOT
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
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
60 %defattr(644,root,root,755)
61 %doc CHANGES.txt README.txt