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