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