OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   24-Nov-2006 18:14:54
  Branch: HEAD                             Handle: 2006112417145400

  Added files:
    openpkg-src/zope-plone  zope-plone.spec

  Log:
    new package: zope-plone 2.5.1 (Zope Content Management Framework)

  Summary:
    Revision    Changes     Path
    1.1         +160 -0     openpkg-src/zope-plone/zope-plone.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/zope-plone/zope-plone.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 zope-plone.spec
  --- /dev/null 2006-11-24 18:14:49 +0100
  +++ zope-plone.spec   2006-11-24 18:14:54 +0100
  @@ -0,0 +1,160 @@
  +##
  +##  zope-plone.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  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 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:      GPL
  +Version:      2.5.1
  +Release:      20061124
  +
  +#   list of sources
  +Source0:      
http://osdn.dl.sourceforge.net/plone/Plone-%{version}-final.tar.gz
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +BuildPreReq:  python
  +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   = %{version}
  +        url       = http://prdownloads.sourceforge.net/plone/
  +        regex     = Plone-(\d+\.\d+\.\d+)-final\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -n Plone-%{version}
  +
  +%build
  +    #   fix bug in distribution ownership
  +    find CMFFormController | xargs chmod a+rx
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +
  +    #   install product libraries
  +    CMF_PRODUCTS="\
  +        ATContentTypes \
  +        ATReferenceBrowserWidget \
  +        Archetypes \
  +        CMFActionIcons \
  +        CMFCalendar \
  +        CMFCore \
  +        CMFDefault \
  +        CMFDynamicViewFTI \
  +        CMFFormController \
  +        CMFPlacefulWorkflow \
  +        CMFPlone \
  +        CMFQuickInstallerTool \
  +        CMFSetup \
  +        CMFTopic \
  +        CMFUid \
  +        CacheFu \
  +        DCWorkflow \
  +        ExtendedPathIndex \
  +        ExternalEditor \
  +        Five \
  +        GenericSetup \
  +        GroupUserFolder \
  +        Marshall \
  +        MimetypesRegistry \
  +        PasswordResetTool \
  +        PlacelessTranslationService \
  +        PloneErrorReporting \
  +        PloneLanguageTool \
  +        PlonePAS \
  +        PloneTestCase \
  +        PloneTranslations \
  +        PluggableAuthService \
  +        PluginRegistry \
  +        PortalTransforms \
  +        ResourceRegistries \
  +        SecureMailHost \
  +        kupu \
  +        statusmessages \
  +        validation"
  +    %{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
  +
  +    #   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} \
  +        '%not %dir %{l_prefix}/var/zope' \
  +        '%not %dir %{l_prefix}/var/zope/Products'
  +
  +%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/etc/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
  +    fi
  +    exit 0
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to