2 %define zope_subname CMFPlone
3 Summary: Free and open source Content Management System based on Zope and CMF
4 Summary(pl.UTF-8): 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: 72989893b6cd012a5d26eccc5aa2576b
12 URL: http://www.plone.org/
14 BuildRequires: rpmbuild(macros) >= 1.268
15 %pyrequires_eq python-modules
16 Requires(post,postun): /usr/sbin/installzopeproduct
17 Requires: Zope >= 2.7.7
18 Requires: Zope-BTreeFolder2 >= 1.0.2
19 Requires: Zope-CMF >= 1:1.5.5
20 Requires: Zope-CMFQuickInstallerTool >= 1.5.7
21 Requires: Zope-ExternalEditor >= 0.9.1
22 Requires: Zope-Formulator >= 1.6.2
23 Requires: Zope-GroupUserFolder >= 1:3.5
24 Requires: Zope-PlacelessTranslationService >= 1.2.1
25 Requires: Zope-PloneLanguageTool >= 0.9
26 Requires: Zope-archetypes >= 1.3.7
27 Requires: Zope-kupu >= 1.3.3
29 Requires: python-Imaging
31 Obsoletes: Zope-PortalTransforms
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Plone is a free, open source Content Management System. The focus of
38 Plone is to provide value at every level of an organization. It comes
39 with a workflow engine, pre-configured security and roles, a set of
40 content types and multi-lingual support. There are many developers,
41 writers and testers from all over the world, contributing to Plone
42 everyday. Plone is based on the Content Management Framework.
44 %description -l pl.UTF-8
45 Plone jest darmowym systemem zarządzania informacją z otwartym kodem
46 źródłowym. Głównym celem Plone jest możliwość dzielenia się informacją
47 na każdym poziomie dostępu. Jest to "silnik" serwisu umożliwiający
48 pracę z wieloma językami, z wstępną konfiguracją uwzględniającą
49 zabezpieczenia serwisu. Plone działa w zestawie z CMF, Zope i
53 %setup -q -n Plone-%{version}
54 # remove dirs - additional packages!
56 rm -rf {BTreeFolder2,CMFQuickInstallerTool,Formulator,GroupUserFolder,Archetypes,generator,validation}
57 rm -rf {PloneLanguageTool,kupu,MimetypesRegistry}
58 rm -rf {CMFActionIcons,CMFSetup,CMFUid}
59 rm -rf {CMFCalendar,CMFCore,CMFDefault,CMFTopic,DCWorkflow,PortalTransforms,Epoz}
60 rm -rf {ExternalEditor,PlacelessTranslationService}
61 find . -type d -name debian | xargs rm -rf
64 mkdir docs docs/CMFPlone docs/CMFFormController docs/PloneErrorReporting
65 mv -f CMFPlone/{CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,UPGRADE.txt,LICENSE.txt} docs/CMFPlone
66 rm -rf CMFPlone/LICENSE.GPL
67 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
69 mv -f PloneErrorReporting/{ChangeLog,README.txt} docs/PloneErrorReporting
70 rm -rf PloneErrorReporting/LICENSE.txt
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
75 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
77 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
78 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
80 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
83 rm -rf $RPM_BUILD_ROOT
86 for p in ATContentTypes ATReferenceBrowserWidget CMFDynamicViewFTI CMFFormController CMFPlone ExtendedPathIndex; do
87 /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
89 for p in PloneErrorReporting PloneTranslations ResourceRegistries SecureMailHost; do
90 /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
92 %service -q zope restart
95 if [ "$1" = "0" ]; then
96 for p in ATContentTypes ATReferenceBrowserWidget CMFDynamicViewFTI CMFFormController CMFPlone ExtendedPathIndex; do
97 /usr/sbin/installzopeproduct -d $p
99 for p in PloneErrorReporting PloneTranslations ResourceRegistries SecureMailHost; do
100 /usr/sbin/installzopeproduct -d $p
102 %service -q zope restart
106 %defattr(644,root,root,755)