]> git.pld-linux.org Git - packages/Zope-CMFPlone.git/blob - Zope-CMFPlone.spec
- corrected req.
[packages/Zope-CMFPlone.git] / Zope-CMFPlone.spec
1
2 %define         zope_subname    CMFPlone
3 Summary:        Free and open source Content Management System based on Zope and CMF
4 Summary(pl):    Darmowy i otwarty system zarz±dzania tre¶ci± oparty na Zope i CMF
5 Name:           Zope-%{zope_subname}
6 Version:        2.1.1
7 Release:        3
8 License:        Zope Public License (ZPL), GPL
9 Group:          Networking/Daemons
10 Source0:        http://dl.sourceforge.net/plone/Plone-%{version}.tar.gz
11 # Source0-md5:  c6f013fbb8822d13ca958e68346ad22d
12 URL:            http://www.plone.org/
13 BuildRequires:  python
14 %pyrequires_eq  python-modules
15 Requires:       i18ndude
16 Requires:       python-Imaging
17 Requires:       Zope-archetypes >= 1.3.5
18 Requires:       Zope-kupu >= 1.3.1
19 Requires:       Zope-CMF >= 1:1.5.4
20 Requires:       Zope >= 2.7.7
21 Requires:       Zope-BTreeFolder2 >= 1.0.2
22 Requires:       Zope-CMFQuickInstallerTool >= 1.5.5
23 Requires:       Zope-ExternalEditor >= 0.9.1
24 Requires:       Zope-Formulator >= 1.6.2
25 Requires:       Zope-GroupUserFolder >= 1:3.4
26 Requires:       Zope-PlacelessTranslationService >= 1.2.1
27 Requires:       Zope-PloneLanguageTool >= 0.7
28 Requires(post,postun):  /usr/sbin/installzopeproduct
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Obsoletes:      Plone
32 Obsoletes:      Zope-PortalTransforms
33 Conflicts:      CMF
34
35 %description
36 Plone is a free, open source Content Management System. The focus of
37 Plone is to provide value at every level of an organization. It comes
38 with a workflow engine, pre-configured security and roles, a set of
39 content types and multi-lingual support. There are many developers,
40 writers and testers from all over the world, contributing to Plone
41 everyday. Plone is based on the Content Management Framework.
42
43 %description -l pl
44 Plone jest darmowym systemem zarz±dzania informacj± z otwartym kodem
45 ¼ród³owym. G³ównym celem Plone jest mo¿liwo¶æ dzielenia siê informacj±
46 na ka¿dym poziomie dostêpu. Jest to "silnik" serwisu umo¿liwiaj±cy
47 pracê z wieloma jêzykami, z wstêpn± konfiguracj± uwzglêdniaj±c±
48 zabezpieczenia serwisu. Plone dzia³a w zestawie z CMF, Zope i
49 Pythonem.
50
51 %prep
52 %setup -q -n Plone-%{version}
53 # remove dirs - additional packages!
54 # ExternalEditor
55 rm -rf {BTreeFolder2,CMFQuickInstallerTool,Formulator,GroupUserFolder,Archetypes,generator,validation}
56 rm -rf {PloneLanguageTool,kupu,MimetypesRegistry}
57 rm -rf {CMFActionIcons,CMFSetup,CMFUid}
58 rm -rf {CMFCalendar,CMFCore,CMFDefault,CMFTopic,DCWorkflow,PortalTransforms,Epoz}
59 rm -rf {ExternalEditor,PlacelessTranslationService}
60 find . -type d -name debian | xargs rm -rf
61
62 %build
63 mkdir docs docs/CMFPlone docs/CMFFormController docs/PloneErrorReporting
64 mv -f CMFPlone/{CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,UPGRADE.txt,LICENSE.txt} docs/CMFPlone
65 rm -rf CMFPlone/LICENSE.GPL
66 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
67 rm -rf CMFPlone/docs
68 mv -f PloneErrorReporting/{ChangeLog,README.txt} docs/PloneErrorReporting
69 rm -rf PloneErrorReporting/LICENSE.txt
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
74 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
75
76 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
77 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
78
79 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post
85 for p in ATContentTypes ATReferenceBrowserWidget CMFDynamicViewFTI CMFFormController CMFPlone ExtendedPathIndex; do
86         /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
87 done
88 for p in PloneErrorReporting PloneTranslations ResourceRegistries SecureMailHost; do
89         /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
90 done  
91
92 if [ -f /var/lock/subsys/zope ]; then
93         /etc/rc.d/init.d/zope restart >&2
94 fi
95
96 %postun
97 if [ "$1" = "0" ]; then
98         for p in ATContentTypes ATReferenceBrowserWidget CMFDynamicViewFTI CMFFormController CMFPlone ExtendedPathIndex; do
99                 /usr/sbin/installzopeproduct -d $p
100         done
101         for p in PloneErrorReporting PloneTranslations ResourceRegistries SecureMailHost; do
102                 /usr/sbin/installzopeproduct -d $p
103         done
104         if [ -f /var/lock/subsys/zope ]; then
105                 /etc/rc.d/init.d/zope restart >&2
106         fi
107 fi
108
109 %files
110 %defattr(644,root,root,755)
111 %doc docs/*
112 %{_datadir}/%{name}
This page took 0.105261 seconds and 3 git commands to generate.