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}
8 License: Zope Public License (ZPL), GPL
9 Group: Networking/Daemons
10 Source0: http://dl.sourceforge.net/plone/Plone-%{version}.tar.gz
11 # Source0-md5: a72efb9aace662ac8f81f3f66ad7c44c
12 URL: http://www.plone.org/
14 %pyrequires_eq python-modules
16 Requires: Zope-archetypes >= 1.3.4
17 Requires: Zope-kupu >= 1.3
18 Requires: Zope-CMF = 1:1.5.4
19 Requires: Zope >= 2.7.7
20 Requires: Zope-BTreeFolder2 >= 1.0.2
21 Requires: Zope-CMFQuickInstallerTool >= 1.5.5
22 Requires: Zope-Epoz >= 0.8.2
23 Requires: Zope-ExternalEditor >= 0.9.1
24 Requires: Zope-Formulator >= 1.6.2
25 Requires: Zope-GroupUserFolder >= 1:3.4
26 Requires: Zope-PlacelessTranslationService >= 1.2.1
27 Requires: Zope-PloneLanguageTool >= 0.7
28 Requires(post,postun): /usr/sbin/installzopeproduct
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Obsoletes: Zope-PortalTransforms
36 Plone is a free, open source Content Management System. The focus of
37 Plone is to provide value at every level of an organization. It comes
38 with a workflow engine, pre-configured security and roles, a set of
39 content types and multi-lingual support. There are many developers,
40 writers and testers from all over the world, contributing to Plone
41 everyday. Plone is based on the Content Management Framework.
44 Plone jest darmowym systemem zarz±dzania informacj± z otwartym kodem
45 ¼ród³owym. G³ównym celem Plone jest mo¿liwo¶æ dzielenia siê informacj±
46 na ka¿dym poziomie dostêpu. Jest to "silnik" serwisu umo¿liwiaj±cy
47 pracê z wieloma jêzykami, z wstêpn± konfiguracj± uwzglêdniaj±c±
48 zabezpieczenia serwisu. Plone dzia³a w zestawie z CMF, Zope i
52 %setup -q -n Plone-%{version}
53 # remove dirs - additional packages!
55 rm -rf {BTreeFolder2,CMFQuickInstallerTool,Formulator,GroupUserFolder,Archetypes,generator,validation}
56 rm -rf {PloneLanguageTool,kupu,MimetypesRegistry}
57 rm -rf {CMFActionIcons,CMFSetup,CMFUid}
58 rm -rf {CMFCalendar,CMFCore,CMFDefault,CMFTopic,DCWorkflow,PortalTransforms,Epoz}
59 rm -rf {ExternalEditor,PlacelessTranslationService}
60 find . -type d -name debian | xargs rm -rf
63 mkdir docs docs/CMFPlone docs/CMFFormController docs/PloneErrorReporting
64 mv -f CMFPlone/{CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,UPGRADE.txt,LICENSE.txt} docs/CMFPlone
65 rm -rf CMFPlone/LICENSE.GPL
66 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
68 mv -f PloneErrorReporting/{ChangeLog,README.txt} docs/PloneErrorReporting
69 rm -rf PloneErrorReporting/LICENSE.txt
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
74 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
76 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
77 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
79 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
82 rm -rf $RPM_BUILD_ROOT
85 for p in ATContentTypes ATReferenceBrowserWidget CMFFormController CMFPlone ExtendedPathIndex PloneErrorReporting; do
86 /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
88 for p in PloneTranslations ResourceRegisteries SecureMailHost; do
89 /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
92 if [ -f /var/lock/subsys/zope ]; then
93 /etc/rc.d/init.d/zope restart >&2
97 if [ "$1" = "0" ]; then
98 for p in ATContentTypes ATReferenceBrowserWidget CMFFormController CMFPlone ExtendedPathIndex PloneErrorReporting; do
99 /usr/sbin/installzopeproduct -d $p
101 for p in PloneTranslations ResourceRegisteries SecureMailHost; do
102 /usr/sbin/installzopeproduct -d $p
104 if [ -f /var/lock/subsys/zope ]; then
105 /etc/rc.d/init.d/zope restart >&2
110 %defattr(644,root,root,755)