]> git.pld-linux.org Git - packages/Zope-CMFBoard.git/blob - Zope-CMFBoard.spec
- upgraded to version 2.1.2
[packages/Zope-CMFBoard.git] / Zope-CMFBoard.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    CMFBoard
3 Summary:        Portal discussion for Plone
4 Summary(pl):    Portal dyskusyjny dla Plone
5 Name:           Zope-%{zope_subname}
6 Version:        2.1.2
7 Release:        1
8 License:        GPL
9 Group:          Development/Tools
10 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5:  148497265f04434b7aeaedddf7958051
12 URL:            http://www.cmfboard.org/
13 Requires(post,postun):  /usr/sbin/installzopeproduct
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires:       Zope-BTreeFolder2
17 Requires:       Zope-CMF
18 Requires:       Zope-CMFPlone >= 2.0
19 Requires:       Zope-CMFMessage
20 Requires:       Zope-PortalTransport
21 Requires:       Zope-archetypes >= 1.2
22 Requires:       python-Imaging
23 Requires:       python-PyXML
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Conflicts:      CMF
27 Conflicts:      Plone
28
29 %description
30 Portal discussion for Plone.
31
32 %description -l pl
33 Portal dyskusyjny dla Plone.
34
35 %prep
36 %setup -q -n %{zope_subname}
37
38 %build
39 rm -rf skins/cmfboard/{personalize_form.pt,personalize_form.pt.properties}
40 rm -rf skins/cmfboard/fcMaillist/{register.py,validate_personalize.py,validate_registration.py}
41 rm -rf i18n/{build.bat,*.exe}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
46
47 cp -af {Extensions,i18n,skins,uihelpers,zpt,*.py,*.gif,VERSION.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
48
49 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
50 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
51
52 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
59 if [ -f /var/lock/subsys/zope ]; then
60         /etc/rc.d/init.d/zope restart >&2
61 fi
62
63 %postun
64 if [ "$1" = "0" ]; then
65         /usr/sbin/installzopeproduct -d %{zope_subname}
66         if [ -f /var/lock/subsys/zope ]; then
67                 /etc/rc.d/init.d/zope restart >&2
68         fi
69 fi
70
71 %files
72 %defattr(644,root,root,755)
73 %doc docs/* CHANGES.txt CREDITS.txt README.txt TODO.txt BUGS.txt
74 %{_datadir}/%{name}
This page took 0.064677 seconds and 3 git commands to generate.