]>
Commit | Line | Data |
---|---|---|
1510b863 | 1 | %define zope_subname CMFBoard |
2 | Summary: Portal discussion for Plone | |
b0486e58 | 3 | Summary(pl.UTF-8): Portal dyskusyjny dla Plone |
1510b863 | 4 | Name: Zope-%{zope_subname} |
8cee7edf | 5 | Version: 2.2.1 |
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 |
8cee7edf | 10 | # Source0-md5: c9e758f81525e49a89871ba79af61588 |
1510b863 | 11 | URL: http://www.cmfboard.org/ |
d3c57404 | 12 | BuildRequires: python |
8b80438b ER |
13 | BuildRequires: rpmbuild(macros) >= 1.268 |
14 | Requires(post,postun): /usr/sbin/installzopeproduct | |
1510b863 | 15 | %pyrequires_eq python-modules |
16 | Requires: Zope | |
d0532236 | 17 | Requires: Zope-BTreeFolder2 |
1510b863 | 18 | Requires: Zope-CMF |
1510b863 | 19 | Requires: Zope-CMFMessage |
8b80438b | 20 | Requires: Zope-CMFPlone >= 2.0 |
b23ca43c | 21 | Requires: Zope-PlacelessTranslationService |
659d0360 | 22 | Requires: Zope-PortalTransport |
b23ca43c | 23 | Requires: Zope-archetypes >= 1.2.5 |
1510b863 | 24 | Requires: python-Imaging |
d0532236 | 25 | Requires: python-PyXML |
1510b863 | 26 | Conflicts: CMF |
27 | Conflicts: Plone | |
8b80438b ER |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
1510b863 | 30 | |
31 | %description | |
32 | Portal discussion for Plone. | |
33 | ||
0a10cb53 | 34 | %description -l pl.UTF-8 |
1510b863 | 35 | Portal dyskusyjny dla Plone. |
36 | ||
37 | %prep | |
38 | %setup -q -n %{zope_subname} | |
39 | ||
40 | %build | |
41 | rm -rf skins/cmfboard/{personalize_form.pt,personalize_form.pt.properties} | |
42 | rm -rf skins/cmfboard/fcMaillist/{register.py,validate_personalize.py,validate_registration.py} | |
43a867c1 | 43 | rm -rf i18n/{build.bat,*.exe} |
1510b863 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
48 | ||
8cee7edf | 49 | cp -af {Extensions,i18n,mailtemplates,skins,uihelpers,zpt,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
1510b863 | 50 | |
51 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
52 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
53 | ||
54 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
60 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
8b80438b | 61 | %service -q zope restart |
1510b863 | 62 | |
63 | %postun | |
64 | if [ "$1" = "0" ]; then | |
2edfb97c | 65 | /usr/sbin/installzopeproduct -d %{zope_subname} |
8b80438b | 66 | %service -q zope restart |
1510b863 | 67 | fi |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
e4d59f0c | 71 | %doc docs/* CHANGES.txt CREDITS.txt README.txt TODO.txt BUGS.txt |
1510b863 | 72 | %{_datadir}/%{name} |