X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=Zope-CMFPlone.spec;h=f4fa77e4efa6f6d1bc7ca21afbccfcee8a2b3f8e;hb=dddb558c261cd7b4c1fbd146eefebaf6332c4dba;hp=2400041f9910f9310904bb2c98fbe381231f42e2;hpb=d853f52ed89a8c888bb0b07460df0b13f0bf5332;p=packages%2FZope-CMFPlone.git diff --git a/Zope-CMFPlone.spec b/Zope-CMFPlone.spec index 2400041..f4fa77e 100644 --- a/Zope-CMFPlone.spec +++ b/Zope-CMFPlone.spec @@ -1,28 +1,32 @@ + %include /usr/lib/rpm/macros.python %define zope_subname CMFPlone 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-%{zope_subname} Version: 2.0 -%define sub_ver beta3 -Release: 4.%{sub_ver} +%define sub_ver RC6 +Release: 5.%{sub_ver}.1 License: Zope Public License (ZPL), GPL Group: Networking/Daemons -Source0: http://dl.sourceforge.net/plone/%{zope_subname}%{version}-%{sub_ver}.tar.gz -# Source0-md5: ae47b12f56eb6e4f86ec7b0650e35552 +Source0: http://osdn.dl.sourceforge.net/sourceforge/plone/%{zope_subname}%{version}-rc6.tar.gz +# Source0-md5: f6c03e49d910a6159f1810336941e92d URL: http://www.plone.org/ %pyrequires_eq python-modules -Requires: Zope-CMF >= 1.4 +Requires: Zope-archetypes >= 1.2.4 +Requires: Zope-PortalTransforms +Requires: Zope-CMF > 1.4.2 Requires: Zope >= 2.6.2 Requires: Zope-BTreeFolder2 Requires: Zope-CMFQuickInstallerTool Requires: Zope-ExternalEditor -Requires: Zope-Formulator -Requires: Zope-GroupUserFolder -Requires: /usr/sbin/installzopeproduct +Requires: Zope-Formulator >= 1.6.2 +Requires: Zope-GroupUserFolder >= 2.0 +Requires(post,postun): /usr/sbin/installzopeproduct BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: Plone +Conflicts: CMF %description Plone is a free, open source Content Management System. The focus of @@ -41,20 +45,25 @@ zabezpieczenia serwisu. Plone dzia Pythonem. %prep -%setup -q -n %{zope_subname}-%{version}-%{sub_ver} - -%build +%setup -q -n %{zope_subname}-%{version}-rc6 # remove dirs - additional packages! -rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator} +# ExternalEditor +rm -rf {BTreeFolder2,CMFQuickInstallerTool,Formulator,GroupUserFolder,Archetypes,generator,validation} +rm -rf {CMFCalendar,CMFCore,CMFDefault,CMFTopic,DCWorkflow,PortalTransforms} +find . -type d -name debian | xargs rm -rf -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 +%build +mkdir docs docs/CMFPlone docs/CMFFormController docs/i18n docs/PlacelessTranslationService docs/PloneErrorReporting +mv -f CMFPlone/{CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,UPGRADE.txt,LICENSE.txt} docs/CMFPlone mv -f CMFPlone/docs/* docs/CMFPlone mv -f CMFPlone/i18n/ChangeLog docs/i18n rm -rf CMFPlone/i18n/{build.bat,msgfmt.exe} +rm -rf CMFPlone/LICENSE.GPL mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController rm -rf CMFPlone/docs +mv -f PlacelessTranslationService/{COPYING.txt,NEWS.txt} docs/PlacelessTranslationService +mv -f PloneErrorReporting/{ChangeLog,README.txt} docs/PloneErrorReporting +rm -rf PloneErrorReporting/LICENSE.txt %install rm -rf $RPM_BUILD_ROOT @@ -70,17 +79,16 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs rm -rf $RPM_BUILD_ROOT %post -for p in CMFPlone CMFActionIcons CMFFormController; do +for p in CMFPlone CMFActionIcons CMFFormController PlacelessTranslationService PloneErrorReporting; do /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p done 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 [ "$1" = "0" ]; then - for p in CMFPlone CMFActionIcons CMFFormController; do + for p in CMFPlone CMFActionIcons CMFFormController PlacelessTranslationService PloneErrorReporting; do /usr/sbin/installzopeproduct -d $p done if [ -f /var/lock/subsys/zope ]; then