]> git.pld-linux.org Git - packages/Zope-CMFForum.git/blob - Zope-CMFForum.spec
- spaces->tabs
[packages/Zope-CMFForum.git] / Zope-CMFForum.spec
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}
5 Version:        1.0
6 Release:        8
7 License:        ZPL 2.0
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.3
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Conflicts:      CMF
19
20 %description
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
24 cleanup.
25
26 %description -l pl
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.
32
33 %prep
34 %setup -q -n %{zope_subname}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {Extensions,interfaces,skins,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
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
54 fi
55
56 %postun
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
61         fi
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc CHANGES.txt CREDITS.txt HISTORY.txt INSTALL.txt README.txt TODO.txt
67 %{_datadir}/%{name}
This page took 0.076043 seconds and 4 git commands to generate.