]>
Commit | Line | Data |
---|---|---|
1510b863 | 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} | |
659d0360 | 6 | Version: 2.1 |
1510b863 | 7 | Release: 1 |
8 | License: GPL | |
9 | Group: Development/Tools | |
b02b6431 | 10 | Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}final.tar.gz |
659d0360 | 11 | # Source0-md5: dbb424046222bd9a26e8b729b3a49610 |
1510b863 | 12 | URL: http://www.cmfboard.org/ |
13 | Requires(post,postun): /usr/sbin/installzopeproduct | |
14 | %pyrequires_eq python-modules | |
15 | Requires: Zope | |
16 | Requires: Zope-CMF | |
17 | Requires: Zope-CMFPlone >= 2.0 | |
18 | Requires: Zope-archetypes >= 1.2 | |
19 | Requires: Zope-CMFMPoll | |
20 | Requires: Zope-CMFMessage | |
659d0360 | 21 | Requires: Zope-PortalTransport |
1510b863 | 22 | Requires: python-Imaging |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | Conflicts: CMF | |
26 | Conflicts: Plone | |
27 | ||
28 | %description | |
29 | Portal discussion for Plone. | |
30 | ||
31 | %description -l pl | |
32 | Portal dyskusyjny dla Plone. | |
33 | ||
34 | %prep | |
35 | %setup -q -n %{zope_subname} | |
36 | ||
37 | %build | |
38 | rm -rf skins/cmfboard/{personalize_form.pt,personalize_form.pt.properties} | |
39 | rm -rf skins/cmfboard/fcMaillist/{register.py,validate_personalize.py,validate_registration.py} | |
43a867c1 | 40 | rm -rf i18n/{build.bat,*.exe} |
1510b863 | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
45 | ||
b02b6431 | 46 | cp -af {Extensions,i18n,skins,uihelpers,zpt,*.py,*.gif,VERSION.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
1510b863 | 47 | |
48 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
49 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
50 | ||
51 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %post | |
57 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
58 | if [ -f /var/lock/subsys/zope ]; then | |
59 | /etc/rc.d/init.d/zope restart >&2 | |
60 | fi | |
61 | ||
62 | %postun | |
63 | if [ "$1" = "0" ]; then | |
64 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
65 | if [ -f /var/lock/subsys/zope ]; then | |
66 | /etc/rc.d/init.d/zope restart >&2 | |
67 | fi | |
68 | fi | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
e4d59f0c | 72 | %doc docs/* CHANGES.txt CREDITS.txt README.txt TODO.txt BUGS.txt |
1510b863 | 73 | %{_datadir}/%{name} |