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