]> git.pld-linux.org Git - packages/Zope-CMFPlone.git/blob - Zope-CMFPlone.spec
- renamed spec
[packages/Zope-CMFPlone.git] / Zope-CMFPlone.spec
1 %include        /usr/lib/rpm/macros.python
2 Summary:        Plone - a free, open source Content Management System based on Zope and CMF
3 Summary:        Plone - darmowy, otwarty system zarz±dzania tre¶ci± oparty na Zope i CMF
4 Name:           Plone
5 Version:        2.0
6 %define         sub_ver beta3
7 Release:        2.%{sub_ver}
8 License:        Zope Public License (ZPL), GPL
9 Group:          Networking/Daemons
10 Source0:        http://dl.sourceforge.net/plone/CMF%{name}%{version}-%{sub_ver}.tar.gz
11 # Source0-md5:  ae47b12f56eb6e4f86ec7b0650e35552
12 URL:            http://www.plone.org/
13 %pyrequires_eq  python-modules
14 Requires:       CMF >= 1.4
15 Requires:       Zope >= 2.6.2
16 Requires:       Zope-BTreeFolder2
17 Requires:       Zope-CMFQuickInstallerTool
18 Requires:       Zope-ExternalEditor
19 Requires:       Zope-Formulator
20 Requires:       Zope-GroupUserFolder
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         product_dir     /usr/lib/zope/Products
25
26 %description
27 Plone is a free, open source Content Management System. The focus of
28 Plone is to provide value at every level of an organization. It comes
29 with a workflow engine, pre-configured security and roles, a set of
30 content types and multi-lingual support. There are many developers,
31 writers and testers from all over the world, contributing to Plone
32 everyday. Plone is based on the Content Management Framework.
33
34 %description -l pl
35 Plone jest darmowym systemem zarz±dzania informacj± z otwartym kodem
36 ¼ród³owym. G³ównym celem Plone jest mo¿liwo¶æ dzielenia siê informacj±
37 na ka¿dym poziomie dostêpu. Jest to "silnik" serwisu umo¿liwiaj±cy
38 pracê z wieloma jêzykami, z wstêpn± konfiguracj± uwzglêdniaj±c±
39 zabezpieczenia serwisu. Plone dzia³a w zestawie z CMF, Zope i
40 Pythonem.
41
42 %prep
43 %setup -q -n CMF%{name}-%{version}-%{sub_ver}
44
45 %build
46 # remove dirs - additional packages!
47 rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator}
48
49 mkdir docs docs/CMFPlone docs/CMFFormController docs/i18n
50 rm -rf `find . type f -name .cvsignore`
51 mv -f CMFPlone/{CREDITS.txt,ChangeLog,HISTORY.txt,INSTALL.txt,README.txt} docs/CMFPlone
52 mv -f CMFPlone/docs/* docs/CMFPlone
53 mv -f CMFPlone/i18n/ChangeLog docs/i18n
54 rm -rf CMFPlone/i18n/{build.bat,msgfmt.exe}
55 mv -f CMFFormController/{AUTHORS,ChangeLog,README.txt} docs/CMFFormController
56 rm -rf CMFPlone/docs
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{product_dir}
61 cp -af * $RPM_BUILD_ROOT%{product_dir}
62
63 %py_comp $RPM_BUILD_ROOT%{product_dir}
64 %py_ocomp $RPM_BUILD_ROOT%{product_dir}
65
66 rm -rf $RPM_BUILD_ROOT%{product_dir}/docs
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 if [ -f /var/lock/subsys/zope ]; then
73         /etc/rc.d/init.d/zope restart >&2
74 fi
75 echo "From /manage interface there should be a 'Select Type to Add' and says Plone Site" >&2
76
77 %postun
78 if [ -f /var/lock/subsys/zope ]; then
79         /etc/rc.d/init.d/zope restart >&2
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc docs/*
85 %{product_dir}/CMFPlone
86 %{product_dir}/CMFActionIcons
87 %{product_dir}/CMFFormController
88 # %%{product_dir}/i18n
This page took 0.319958 seconds and 4 git commands to generate.