]>
Commit | Line | Data |
---|---|---|
1510b863 | 1 | %define zope_subname CMFBoard |
2 | Summary: Portal discussion for Plone | |
3 | Summary(pl): Portal dyskusyjny dla Plone | |
4 | Name: Zope-%{zope_subname} | |
2df0fd79 | 5 | Version: 2.1.3 |
ab29ca35 | 6 | Release: 2 |
1510b863 | 7 | License: GPL |
8 | Group: Development/Tools | |
d0532236 | 9 | Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz |
2df0fd79 | 10 | # Source0-md5: 92559180668929f5ce703b78bc0c49b0 |
1510b863 | 11 | URL: http://www.cmfboard.org/ |
12 | Requires(post,postun): /usr/sbin/installzopeproduct | |
788382c3 | 13 | BuildRequires: python |
1510b863 | 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 | ||
2df0fd79 | 47 | cp -af {Extensions,i18n,skins,tests,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 | |
2edfb97c | 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 | |
1510b863 | 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} |