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: 1f848c36fa1f06761185a12e08af28ff
12 URL: http://www.plone.org/
13 %pyrequires_eq python-modules
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}
46 # remove dirs - additonal specs!
47 rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator}
49 mkdir docs docs/CMFPlone
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
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{product_dir}
58 cp -af * $RPM_BUILD_ROOT%{product_dir}
60 %py_comp $RPM_BUILD_ROOT%{product_dir}
61 %py_ocomp $RPM_BUILD_ROOT%{product_dir}
63 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
64 rm -rf $RPM_BUILD_ROOT%{product_dir}/docs
67 rm -rf $RPM_BUILD_ROOT
70 if [ -f /var/lock/subsys/zope ]; then
71 /etc/rc.d/init.d/zope restart >&2
73 echo "From /manage interface there should be a 'Select Type to Add' and says Plone Site" >&2
74 echo "The default Plone administrator userid is 'admin' with password 'plone'." >&2
77 if [ -f /var/lock/subsys/zope ]; then
78 /etc/rc.d/init.d/zope restart >&2
82 %defattr(644,root,root,755)
84 %{product_dir}/CMFPlone
85 %{product_dir}/CMFActionIcons