%include /usr/lib/rpm/macros.python %define zope_subname Plone Summary: Free and open source Content Management System based on Zope and CMF Summary: Darmowy i otwarty system zarządzania treścią oparty na Zope i CMF Name: Zope-CMF%{zope_subname} Version: 2.0 %define sub_ver beta3 Release: 3.%{sub_ver} License: Zope Public License (ZPL), GPL Group: Networking/Daemons Source0: http://dl.sourceforge.net/plone/CMF%{zope_subname}%{version}-%{sub_ver}.tar.gz # Source0-md5: ae47b12f56eb6e4f86ec7b0650e35552 URL: http://www.plone.org/ %pyrequires_eq python-modules Requires: CMF >= 1.4 Requires: Zope >= 2.6.2 Requires: Zope-BTreeFolder2 Requires: Zope-CMFQuickInstallerTool Requires: Zope-ExternalEditor Requires: Zope-Formulator Requires: Zope-GroupUserFolder BuildArch: noarch BuildRoot: %{tmpdir}/%{zope_subname}-%{version}-root-%(id -u -n) %define product_dir /usr/lib/zope/Products %description Plone is a free, open source Content Management System. The focus of Plone is to provide value at every level of an organization. It comes with a workflow engine, pre-configured security and roles, a set of content types and multi-lingual support. There are many developers, writers and testers from all over the world, contributing to Plone everyday. Plone is based on the Content Management Framework. %description -l pl Plone jest darmowym systemem zarządzania informacją z otwartym kodem źródłowym. Głównym celem Plone jest możliwość dzielenia się informacją na każdym poziomie dostępu. Jest to "silnik" serwisu umożliwiający pracę z wieloma językami, z wstępną konfiguracją uwzględniającą zabezpieczenia serwisu. Plone działa w zestawie z CMF, Zope i Pythonem. %prep %setup -q -n CMF%{zope_subname}-%{version}-%{sub_ver} %build # remove dirs - additional packages! rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator} mkdir docs docs/CMFPlone docs/CMFFormController docs/i18n rm -rf `find . type f -name .cvsignore` mv -f CMFPlone/{CREDITS.txt,ChangeLog,HISTORY.txt,INSTALL.txt,README.txt} docs/CMFPlone mv -f CMFPlone/docs/* docs/CMFPlone mv -f CMFPlone/i18n/ChangeLog docs/i18n rm -rf CMFPlone/i18n/{build.bat,msgfmt.exe} mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController rm -rf CMFPlone/docs %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{product_dir} cp -af * $RPM_BUILD_ROOT%{product_dir} %py_comp $RPM_BUILD_ROOT%{product_dir} %py_ocomp $RPM_BUILD_ROOT%{product_dir} rm -rf $RPM_BUILD_ROOT%{product_dir}/docs %clean rm -rf $RPM_BUILD_ROOT %post if [ -f /var/lock/subsys/zope ]; then /etc/rc.d/init.d/zope restart >&2 fi echo "From /manage interface there should be a 'Select Type to Add' and says Plone Site" >&2 %postun if [ -f /var/lock/subsys/zope ]; then /etc/rc.d/init.d/zope restart >&2 fi %files %defattr(644,root,root,755) %doc docs/* %{product_dir}/CMFPlone %{product_dir}/CMFActionIcons %{product_dir}/CMFFormController # %%{product_dir}/i18n