]>
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} | |
ff1fa273 | 6 | Version: 2.1.2 |
1510b863 | 7 | Release: 1 |
8 | License: GPL | |
9 | Group: Development/Tools | |
d0532236 | 10 | Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz |
ff1fa273 | 11 | # Source0-md5: 148497265f04434b7aeaedddf7958051 |
1510b863 | 12 | URL: http://www.cmfboard.org/ |
13 | Requires(post,postun): /usr/sbin/installzopeproduct | |
14 | %pyrequires_eq python-modules | |
15 | Requires: Zope | |
d0532236 | 16 | Requires: Zope-BTreeFolder2 |
1510b863 | 17 | Requires: Zope-CMF |
18 | Requires: Zope-CMFPlone >= 2.0 | |
1510b863 | 19 | Requires: Zope-CMFMessage |
659d0360 | 20 | Requires: Zope-PortalTransport |
d0532236 | 21 | Requires: Zope-archetypes >= 1.2 |
1510b863 | 22 | Requires: python-Imaging |
d0532236 | 23 | Requires: python-PyXML |
1510b863 | 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} | |
43a867c1 | 41 | rm -rf i18n/{build.bat,*.exe} |
1510b863 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
46 | ||
ff1fa273 | 47 | cp -af {Extensions,i18n,skins,uihelpers,zpt,*.py,*.gif,VERSION.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
1510b863 | 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) | |
e4d59f0c | 73 | %doc docs/* CHANGES.txt CREDITS.txt README.txt TODO.txt BUGS.txt |
1510b863 | 74 | %{_datadir}/%{name} |