1 %include /usr/lib/rpm/macros.python
2 Summary: Plone - a free, open source Content Management System based on Zope and CMF
3 Summary: Plone - darmowy, otwarty system zarz±dzania tre¶ci± oparty na Zope i CMF
8 License: Zope Public License (ZPL), GPL
9 Group: Networking/Daemons
10 Source0: http://dl.sourceforge.net/plone/CMF%{name}%{version}-%{sub_ver}.tar.gz
11 # Source0-md5: ae47b12f56eb6e4f86ec7b0650e35552
12 URL: http://www.plone.org/
13 %pyrequires_eq python-modules
15 Requires: Zope >= 2.6.2
16 Requires: Zope-BTreeFolder2
17 Requires: Zope-CMFQuickInstallerTool
18 Requires: Zope-ExternalEditor
19 Requires: Zope-Formulator
20 Requires: Zope-GroupUserFolder
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define product_dir /usr/lib/zope/Products
27 Plone is a free, open source Content Management System. The focus of
28 Plone is to provide value at every level of an organization. It comes
29 with a workflow engine, pre-configured security and roles, a set of
30 content types and multi-lingual support. There are many developers,
31 writers and testers from all over the world, contributing to Plone
32 everyday. Plone is based on the Content Management Framework.
35 Plone jest darmowym systemem zarz±dzania informacj± z otwartym kodem
36 ¼ród³owym. G³ównym celem Plone jest mo¿liwo¶æ dzielenia siê informacj±
37 na ka¿dym poziomie dostêpu. Jest to "silnik" serwisu umo¿liwiaj±cy
38 pracê z wieloma jêzykami, z wstêpn± konfiguracj± uwzglêdniaj±c±
39 zabezpieczenia serwisu. Plone dzia³a w zestawie z CMF, Zope i
43 %setup -q -n CMF%{name}-%{version}-%{sub_ver}
46 # remove dirs - additional packages!
47 rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator}
49 mkdir docs docs/CMFPlone docs/CMFFormController docs/i18n
50 rm -rf `find . type f -name .cvsignore`
51 mv -f CMFPlone/{CREDITS.txt,ChangeLog,HISTORY.txt,INSTALL.txt,README.txt} docs/CMFPlone
52 mv -f CMFPlone/docs/* docs/CMFPlone
53 mv -f CMFPlone/i18n/ChangeLog docs/i18n
54 rm -rf CMFPlone/i18n/{build.bat,msgfmt.exe}
55 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{product_dir}
61 cp -af * $RPM_BUILD_ROOT%{product_dir}
63 %py_comp $RPM_BUILD_ROOT%{product_dir}
64 %py_ocomp $RPM_BUILD_ROOT%{product_dir}
66 rm -rf $RPM_BUILD_ROOT%{product_dir}/docs
69 rm -rf $RPM_BUILD_ROOT
72 if [ -f /var/lock/subsys/zope ]; then
73 /etc/rc.d/init.d/zope restart >&2
75 echo "From /manage interface there should be a 'Select Type to Add' and says Plone Site" >&2
78 if [ -f /var/lock/subsys/zope ]; then
79 /etc/rc.d/init.d/zope restart >&2
83 %defattr(644,root,root,755)
85 %{product_dir}/CMFPlone
86 %{product_dir}/CMFActionIcons
87 %{product_dir}/CMFFormController
88 # %%{product_dir}/i18n