1 %define zope_subname CMFForum
2 Summary: A Zope product that Anonymous can post by default
3 Summary(pl): Dodatek do Zope daj±cy mo¿liwo¶æ wys³ania e-maila
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
10 # Source0-md5: dc9ee26b8c78a32238afd2540dcf258c
11 URL: http://sourceforge.net/projects/collective/
12 %pyrequires_eq python-modules
13 Requires: Zope >= 2.5.1
14 Requires: Zope-CMF >= 1:1.4
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 CMMForum is a Zope product - Anonymous can post by default but can't
22 add Attachments - Anonymous can set Author and e-mail fields. Logged
23 in user gets 'username' as Author and email from preferences. Security
27 CMMForum jest dodatkiem do Zope umo¿liwiaj±cym dodanie formy wysy³ania
28 e-mailem bez mo¿liwo¶ci wysy³ania za³±czników. Anonymous mo¿e ustawiæ
29 adres e-mail, a je¿eli zaloguje siê jako konkretny u¿ytkownik, wtedy
30 pobierane s± odpowiednie pola z preferencji. Dodatek sprawdzony pod
31 wzglêdem bezpieczeñstwa.
34 %setup -q -n %{zope_subname}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40 cp -af {Extensions,interfaces,skins,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48 rm -rf $RPM_BUILD_ROOT
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
57 if [ "$1" = "0" ]; then
58 /usr/sbin/installzopeproduct -d %{zope_subname}
59 if [ -f /var/lock/subsys/zope ]; then
60 /etc/rc.d/init.d/zope restart >&2
65 %defattr(644,root,root,755)
66 %doc CHANGES.txt CREDITS.txt HISTORY.txt INSTALL.txt README.txt TODO.txt