]>
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} | |
6 | Version: 1.4 | |
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: 01d18c814b477874dcf2efda7cb67190 | |
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 | |
21 | Requires: python-Imaging | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | Conflicts: CMF | |
25 | Conflicts: Plone | |
26 | ||
27 | %description | |
28 | Portal discussion for Plone. | |
29 | ||
30 | %description -l pl | |
31 | Portal dyskusyjny dla Plone. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{zope_subname} | |
35 | ||
36 | %build | |
37 | rm -rf skins/cmfboard/{personalize_form.pt,personalize_form.pt.properties} | |
38 | rm -rf skins/cmfboard/fcMaillist/{register.py,validate_personalize.py,validate_registration.py} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
43 | ||
44 | cp -af {Extensions,i18n,skins,tests,zpt,*.py,*.gif,VERSION.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} | |
45 | ||
46 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
47 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
48 | ||
49 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %post | |
55 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
56 | if [ -f /var/lock/subsys/zope ]; then | |
57 | /etc/rc.d/init.d/zope restart >&2 | |
58 | fi | |
59 | ||
60 | %postun | |
61 | if [ "$1" = "0" ]; then | |
62 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
63 | if [ -f /var/lock/subsys/zope ]; then | |
64 | /etc/rc.d/init.d/zope restart >&2 | |
65 | fi | |
66 | fi | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc docs/* CHANGES.txt CREDITS.txt README.txt TODO.txt | |
71 | %{_datadir}/%{name} |