head 1.9;
access;
symbols
OPENPKG_E1_MP:1.3
OPENPKG_E1_MP_HEAD:1.3;
locks; strict;
comment @-- @;
1.9
date 2009.04.18.13.19.50; author rse; state Exp;
branches;
next 1.8;
commitid 4pHXU27WTIGCZuKt;
1.8
date 2008.01.01.15.08.10; author rse; state Exp;
branches;
next 1.7;
commitid B8esaHJHoduuKILs;
1.7
date 2007.10.09.15.21.35; author cs; state Exp;
branches;
next 1.6;
commitid fhOM10K7Omp6GVAs;
1.6
date 2007.07.20.20.18.56; author thl; state Exp;
branches;
next 1.5;
commitid yCyWfcoNSNOaUxqs;
1.5
date 2007.05.17.13.30.59; author rse; state Exp;
branches;
next 1.4;
commitid W4fWEP8GVjw7Jhis;
1.4
date 2007.04.18.21.46.33; author thl; state Exp;
branches;
next 1.3;
commitid WyQKNMwmoITBoBes;
1.3
date 2007.01.01.17.43.15; author rse; state Exp;
branches;
next 1.2;
commitid BicZD6VUl7GuqP0s;
1.2
date 2006.11.24.17.15.32; author rse; state Exp;
branches;
next 1.1;
commitid dWMSLYU4Qf2VyWVr;
1.1
date 2006.11.24.17.14.54; author rse; state Exp;
branches;
next ;
commitid 9cPu4kPX4xwIyWVr;
desc
@@
1.9
log
@bump years in copyright messages
@
text
@##
## zope-plone.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_major 2.5.4
%define V_minor final
# package information
Name: zope-plone
Summary: Zope Content Management Framework
URL: http://plone.org/
Vendor: The Plone Team
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: CMS
License: Zope Public License
Version: %{V_major}
Release: 20080101
# list of sources
Source0: http://plone.googlecode.com/files/Plone-%{V_major}-%{V_minor}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130
PreReq: OpenPKG, openpkg >= 20040130
BuildPreReq: python, perl
PreReq: python, zope
AutoReq: no
AutoReqProv: no
Conflicts: zope-cmf
%description
Plone is a user friendly Content Management System (CMS) for the
Zope application server.
%track
prog zope-plone = {
version = %{V_major}-%{V_minor}
url = http://plone.googlecode.com/
regex = Plone-(\d+\.\d+\.\d+-(?:rc\d+|final))\.tar\.gz
}
%prep
%setup -q -n Plone-%{V_major}-%{V_minor}
%build
# fix bug in distribution ownership
find CMFFormController | xargs chmod a+rx
%install
rm -rf $RPM_BUILD_ROOT
# set of products to install
CMF_PRODUCTS="\
ATContentTypes \
ATReferenceBrowserWidget \
Archetypes \
CMFActionIcons \
CMFCalendar \
CMFCore \
CMFDefault \
CMFDynamicViewFTI \
CMFFormController \
CMFPlacefulWorkflow \
CMFPlone \
CMFQuickInstallerTool \
CMFSetup \
CMFTopic \
CMFUid \
CacheFu \
DCWorkflow \
ExtendedPathIndex \
ExternalEditor \
GenericSetup \
GroupUserFolder \
Marshall \
MimetypesRegistry \
PasswordResetTool \
PlacelessTranslationService \
PloneErrorReporting \
PloneLanguageTool \
PlonePAS \
PloneTestCase \
PloneTranslations \
PluggableAuthService \
PluginRegistry \
PortalTransforms \
ResourceRegistries \
SecureMailHost \
kupu \
statusmessages \
validation"
# install product libraries
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/var/zope/Products \
$RPM_BUILD_ROOT%{l_prefix}/lib/zope-plone
for product in $CMF_PRODUCTS; do
cp -r $product $RPM_BUILD_ROOT%{l_prefix}/lib/zope-plone/
done
# link products into Zope instance home
for product in $CMF_PRODUCTS; do
ln -s \
%{l_prefix}/lib/zope-plone/$product \
$RPM_BUILD_ROOT%{l_prefix}/var/zope/Products/$product
done
# link products into Zope instance home (special cases)
for product in \
CacheFu/CacheSetup \
CacheFu/PageCacheManager \
CacheFu/CMFSquidTool \
CacheFu/PolicyHTTPCacheManager; \
do
ln -s \
%{l_prefix}/lib/zope-plone/$product \
$RPM_BUILD_ROOT%{l_prefix}/var/zope/Products/`basename $product`
done
# install zope external editor
%{l_shtool} install -c -m 755 \
-e '1s;.*;#!%{l_prefix}/bin/python;' \
ExternalEditor/zopeedit.py \
$RPM_BUILD_ROOT%{l_prefix}/bin/
# fix files with spaces in the file name which break rpmtool
find $RPM_BUILD_ROOT -name '* *' |\
perl -n -e 'chomp; ($new = $_) =~ s/\s/_/g; rename($_, $new);'
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 1 ]; then
( echo "You have successfully installed Zope-Plone."
echo "In order to use it, first restart Zope:"
echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc zope restart"
echo "Then, login to its management interface under"
echo " http://localhost:8080/manage"
echo "to add and configure a Plone site."
) | %{l_rpmtool} msg -b -t notice
elif [ $1 -eq 2 -o $1 -eq 0 ]; then
eval `%{l_rc} zope status 2>/dev/null`
[ ".$zope_active" = .yes ] && %{l_rc} zope restart
fi
exit 0
@
1.8
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.7
log
@upgrading package: zope-plone 2.5.3 -> 2.5.4
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d39 1
a39 1
Release: 20071009
@
1.6
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d26 1
a26 1
%define V_major 2.5.3
d40 1
a40 1
Release: 20070720
@
1.5
log
@upgrading package: zope-plone 2.5.1 -> 2.5.3
@
text
@d40 1
a40 1
Release: 20070517
d157 1
a157 3
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
'%not %dir %{l_prefix}/var/zope' \
'%not %dir %{l_prefix}/var/zope/Products'
@
1.4
log
@get rid of direct /etc/rc call and replace them with openpkg
@
text
@d25 4
d38 3
a40 3
License: GPL
Version: 2.5.1
Release: 20070418
d43 1
a43 1
Source0: http://osdn.dl.sourceforge.net/plone/Plone-%{version}-final.tar.gz
d62 3
a64 3
version = %{version}
url = http://prdownloads.sourceforge.net/plone/
regex = Plone-(\d+\.\d+\.\d+)-final\.tar\.gz
d68 1
a68 1
%setup -n Plone-%{version}
d77 1
a77 1
# install product libraries
a97 1
Five \
d117 2
d134 12
d175 3
@
1.3
log
@Welcome Year 2007!
@
text
@d36 1
a36 1
Release: 20061124
d153 1
a153 1
echo " \$ $RPM_INSTALL_PREFIX/etc/rc zope restart"
@
1.2
log
@ops, requires Perl for building
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.1
log
@new package: zope-plone 2.5.1 (Zope Content Management Framework)
@
text
@d46 1
a46 1
BuildPreReq: python
@