]> git.pld-linux.org Git - packages/Zope-CMFPlone.git/blob - Zope-CMFPlone.spec
- release 2 for rebuild with python 2.4
[packages/Zope-CMFPlone.git] / Zope-CMFPlone.spec
1
2 %define         zope_subname    CMFPlone
3 Summary:        Free and open source Content Management System based on Zope and CMF
4 Summary(pl):    Darmowy i otwarty system zarz±dzania tre¶ci± oparty na Zope i CMF
5 Name:           Zope-%{zope_subname}
6 Version:        2.0.5
7 # %%define              sub_ver RC6
8 Release:        2
9 License:        Zope Public License (ZPL), GPL
10 Group:          Networking/Daemons
11 Source0:        http://dl.sourceforge.net/plone/Plone-%{version}.tar.gz
12 # Source0-md5:  fe8ce932877c53bb22b1f88d2b4c9211
13 URL:            http://www.plone.org/
14 %pyrequires_eq  python-modules
15 Requires:       Zope-archetypes >= 1.2.5
16 Requires:       Zope-CMF >= 1.4.7
17 Requires:       Zope >= 2.6.2
18 Requires:       Zope-BTreeFolder2
19 Requires:       Zope-CMFQuickInstallerTool >= 1.5.1
20 Requires:       Zope-ExternalEditor
21 Requires:       Zope-Formulator >= 1.6.2
22 Requires:       Zope-GroupUserFolder >= 2.0.1
23 Requires:       Zope-Epoz >= 0.8.2
24 Requires:       i18ndude
25 Requires(post,postun):  /usr/sbin/installzopeproduct
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Obsoletes:      Plone
29 Obsoletes:      Zope-PortalTransforms
30 Conflicts:      CMF
31
32 %description
33 Plone is a free, open source Content Management System. The focus of
34 Plone is to provide value at every level of an organization. It comes
35 with a workflow engine, pre-configured security and roles, a set of
36 content types and multi-lingual support. There are many developers,
37 writers and testers from all over the world, contributing to Plone
38 everyday. Plone is based on the Content Management Framework.
39
40 %description -l pl
41 Plone jest darmowym systemem zarz±dzania informacj± z otwartym kodem
42 ¼ród³owym. G³ównym celem Plone jest mo¿liwo¶æ dzielenia siê informacj±
43 na ka¿dym poziomie dostêpu. Jest to "silnik" serwisu umo¿liwiaj±cy
44 pracê z wieloma jêzykami, z wstêpn± konfiguracj± uwzglêdniaj±c±
45 zabezpieczenia serwisu. Plone dzia³a w zestawie z CMF, Zope i
46 Pythonem.
47
48 %prep
49 %setup -q -n Plone-%{version}
50 # remove dirs - additional packages!
51 # ExternalEditor
52 rm -rf {BTreeFolder2,CMFQuickInstallerTool,Formulator,GroupUserFolder,Archetypes,generator,validation}
53 rm -rf {CMFCalendar,CMFCore,CMFDefault,CMFTopic,DCWorkflow,PortalTransforms,Epoz}
54 find . -type d -name debian | xargs rm -rf
55
56 %build
57 mkdir docs docs/CMFPlone docs/CMFFormController docs/PlacelessTranslationService docs/PloneErrorReporting
58 mv -f CMFPlone/{CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,UPGRADE.txt,LICENSE.txt} docs/CMFPlone
59 # mv -f CMFPlone/docs/* docs/CMFPlone
60 rm -rf CMFPlone/LICENSE.GPL
61 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
62 rm -rf CMFPlone/docs
63 mv -f PlacelessTranslationService/NEWS.txt docs/PlacelessTranslationService
64 mv -f PloneErrorReporting/{ChangeLog,README.txt} docs/PloneErrorReporting
65 rm -rf PloneErrorReporting/LICENSE.txt
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
70 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
71
72 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
73 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
74
75 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post
81 for p in CMFPlone CMFActionIcons CMFFormController PlacelessTranslationService PloneErrorReporting; do
82         /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
83 done
84 if [ -f /var/lock/subsys/zope ]; then
85         /etc/rc.d/init.d/zope restart >&2
86 fi
87
88 %postun
89 if [ "$1" = "0" ]; then
90         for p in CMFPlone CMFActionIcons CMFFormController PlacelessTranslationService PloneErrorReporting; do
91                 /usr/sbin/installzopeproduct -d $p
92         done
93         if [ -f /var/lock/subsys/zope ]; then
94                 /etc/rc.d/init.d/zope restart >&2
95         fi
96 fi
97
98 %files
99 %defattr(644,root,root,755)
100 %doc docs/*
101 %{_datadir}/%{name}
This page took 0.042229 seconds and 4 git commands to generate.