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