]> git.pld-linux.org Git - packages/Zope-CMFPlone.git/blobdiff - Zope-CMFPlone.spec
- converted to UTF-8
[packages/Zope-CMFPlone.git] / Zope-CMFPlone.spec
index d5aec92a99544e2f5be30ea57a035f88cdef7705..8e5d181a229b8609fc7270a17b5392e1f63fc39a 100644 (file)
@@ -1,31 +1,37 @@
-%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
+Summary(pl.UTF-8):   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}.2
+Version:       2.1.2
+Release:       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
-Patch0:                %{name}-migration.patch
+Source0:       http://dl.sourceforge.net/plone/Plone-%{version}.tar.gz
+# Source0-md5: 72989893b6cd012a5d26eccc5aa2576b
 URL:           http://www.plone.org/
+BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope-CMF >= 1.4
-Requires:      Zope >= 2.6.2
-Requires:      Zope-BTreeFolder2
-Requires:      Zope-CMFQuickInstallerTool
-Requires:      Zope-ExternalEditor
-Requires:      Zope-Formulator
-Requires:      Zope-GroupUserFolder
-Requires:      Zope-Epoz
 Requires(post,postun): /usr/sbin/installzopeproduct
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:      Zope >= 2.7.7
+Requires:      Zope-BTreeFolder2 >= 1.0.2
+Requires:      Zope-CMF >= 1:1.5.5
+Requires:      Zope-CMFQuickInstallerTool >= 1.5.7
+Requires:      Zope-ExternalEditor >= 0.9.1
+Requires:      Zope-Formulator >= 1.6.2
+Requires:      Zope-GroupUserFolder >= 1:3.5
+Requires:      Zope-PlacelessTranslationService >= 1.2.1
+Requires:      Zope-PloneLanguageTool >= 0.9
+Requires:      Zope-archetypes >= 1.3.7
+Requires:      Zope-kupu >= 1.3.3
+Requires:      i18ndude
+Requires:      python-Imaging
 Obsoletes:     Plone
+Obsoletes:     Zope-PortalTransforms
 Conflicts:     CMF
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Plone is a free, open source Content Management System. The focus of
@@ -35,30 +41,33 @@ 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
+%description -l pl.UTF-8
+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 %{zope_subname}-%{version}-%{sub_ver}
-%patch0 -p1
-
-%build
+%setup -q -n Plone-%{version}
 # remove dirs - additional packages!
-rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator}
+# ExternalEditor
+rm -rf {BTreeFolder2,CMFQuickInstallerTool,Formulator,GroupUserFolder,Archetypes,generator,validation}
+rm -rf {PloneLanguageTool,kupu,MimetypesRegistry}
+rm -rf {CMFActionIcons,CMFSetup,CMFUid}
+rm -rf {CMFCalendar,CMFCore,CMFDefault,CMFTopic,DCWorkflow,PortalTransforms,Epoz}
+rm -rf {ExternalEditor,PlacelessTranslationService}
+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
-mv -f CMFPlone/docs/* docs/CMFPlone
-mv -f CMFPlone/i18n/ChangeLog docs/i18n
-rm -rf CMFPlone/i18n/{build.bat,msgfmt.exe}
+%build
+mkdir docs docs/CMFPlone docs/CMFFormController docs/PloneErrorReporting
+mv -f CMFPlone/{CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,UPGRADE.txt,LICENSE.txt} docs/CMFPlone
+rm -rf CMFPlone/LICENSE.GPL
 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
 rm -rf CMFPlone/docs
+mv -f PloneErrorReporting/{ChangeLog,README.txt} docs/PloneErrorReporting
+rm -rf PloneErrorReporting/LICENSE.txt
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -74,22 +83,23 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
 rm -rf $RPM_BUILD_ROOT
 
 %post
-for p in CMFPlone CMFActionIcons CMFFormController; do
+for p in ATContentTypes ATReferenceBrowserWidget CMFDynamicViewFTI CMFFormController CMFPlone ExtendedPathIndex; 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
+for p in PloneErrorReporting PloneTranslations ResourceRegistries SecureMailHost; do
+       /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
+done
+%service -q zope restart
 
 %postun
 if [ "$1" = "0" ]; then
-       for p in CMFPlone CMFActionIcons CMFFormController; do
+       for p in ATContentTypes ATReferenceBrowserWidget CMFDynamicViewFTI CMFFormController CMFPlone ExtendedPathIndex; do
+               /usr/sbin/installzopeproduct -d $p
+       done
+       for p in PloneErrorReporting PloneTranslations ResourceRegistries SecureMailHost; do
                /usr/sbin/installzopeproduct -d $p
        done
-       if [ -f /var/lock/subsys/zope ]; then
-               /etc/rc.d/init.d/zope restart >&2
-       fi
+       %service -q zope restart
 fi
 
 %files
This page took 0.076146 seconds and 4 git commands to generate.