]> git.pld-linux.org Git - packages/Zope-CMFPlone.git/blob - Zope-CMFPlone.spec
4c2e0fc6bcec738f35493de2e8d233a242779210
[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:        1.1
6 %define         sub_ver alpha2
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:  1f848c36fa1f06761185a12e08af28ff
12 URL:            http://www.plone.org/
13 %pyrequires_eq  python-modules
14 Requires:       CMF >= 1.4
15 Requires:       Zope
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}
44
45 %build
46 # remove dirs - additonal specs!
47 rm -rf {BTreeFolder2,CMFQuickInstallerTool,ExternalEditor,GroupUserFolder,Formulator}
48
49 mkdir docs docs/CMFPlone
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 rm -rf CMFPlone/docs
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{product_dir}
58 cp -af * $RPM_BUILD_ROOT%{product_dir}
59
60 %py_comp $RPM_BUILD_ROOT%{product_dir}
61 %py_ocomp $RPM_BUILD_ROOT%{product_dir}
62
63 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
64 rm -rf $RPM_BUILD_ROOT%{product_dir}/docs
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 if [ -f /var/lock/subsys/zope ]; then
71         /etc/rc.d/init.d/zope restart >&2
72 fi
73 echo "From /manage interface there should be a 'Select Type to Add' and says Plone Site" >&2
74 echo "The default Plone administrator userid is 'admin' with password 'plone'." >&2
75
76 %postun
77 if [ -f /var/lock/subsys/zope ]; then
78         /etc/rc.d/init.d/zope restart >&2
79 fi
80
81 %files
82 %defattr(644,root,root,755)
83 %doc docs/*
84 %{product_dir}/CMFPlone
85 %{product_dir}/CMFActionIcons
86 %{product_dir}/i18n
This page took 0.483836 seconds and 2 git commands to generate.