]> git.pld-linux.org Git - packages/Zope-CMFForum.git/blob - Zope-CMFForum.spec
- tabs in preamble
[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.UTF-8):      Dodatek do Zope dający możliwość wysłania e-maila
4 Name:           Zope-%{zope_subname}
5 Version:        1.0
6 Release:        10
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 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope >= 2.5.1
17 Requires:       Zope-CMF >= 1:1.4
18 Conflicts:      CMF
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 CMMForum is a Zope product - Anonymous can post by default but can't
24 add Attachments - Anonymous can set Author and e-mail fields. Logged
25 in user gets 'username' as Author and email from preferences. Security
26 cleanup.
27
28 %description -l pl.UTF-8
29 CMMForum jest dodatkiem do Zope umożliwiającym dodanie formy wysyłania
30 e-mailem bez możliwości wysyłania załączników. Anonymous może ustawić
31 adres e-mail, a jeżeli zaloguje się jako konkretny użytkownik, wtedy
32 pobierane są odpowiednie pola z preferencji. Dodatek sprawdzony pod
33 względem bezpieczeństwa.
34
35 %prep
36 %setup -q -n %{zope_subname}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 cp -af {Extensions,interfaces,skins,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
46
47 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
54 %service -q zope restart
55
56 %postun
57 if [ "$1" = "0" ]; then
58         /usr/sbin/installzopeproduct -d %{zope_subname}
59         %service -q zope restart
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc CHANGES.txt CREDITS.txt HISTORY.txt INSTALL.txt README.txt TODO.txt
65 %{_datadir}/%{name}
This page took 0.084464 seconds and 3 git commands to generate.