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:   17-May-2007 15:30:59
  Branch: HEAD                             Handle: 2007051714305900

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

  Log:
    upgrading package: zope-plone 2.5.1 -> 2.5.3

  Summary:
    Revision    Changes     Path
    1.5         +30 -10     openpkg-src/zope-plone/zope-plone.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/zope-plone/zope-plone.spec
  ============================================================================
  $ cvs diff -u -r1.4 -r1.5 zope-plone.spec
  --- openpkg-src/zope-plone/zope-plone.spec    18 Apr 2007 21:46:33 -0000      
1.4
  +++ openpkg-src/zope-plone/zope-plone.spec    17 May 2007 13:30:59 -0000      
1.5
  @@ -22,6 +22,10 @@
   ##  SUCH DAMAGE.
   ##
   
  +#   package version
  +%define       V_major  2.5.3
  +%define       V_minor  final
  +
   #   package information
   Name:         zope-plone
   Summary:      Zope Content Management Framework
  @@ -31,12 +35,12 @@
   Distribution: OpenPKG Community
   Class:        EVAL
   Group:        CMS
  -License:      GPL
  -Version:      2.5.1
  -Release:      20070418
  +License:      Zope Public License
  +Version:      %{V_major}
  +Release:      20070517
   
   #   list of sources
  -Source0:      
http://osdn.dl.sourceforge.net/plone/Plone-%{version}-final.tar.gz
  +Source0:      
http://plone.googlecode.com/files/Plone-%{V_major}-%{V_minor}.tar.gz
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -55,13 +59,13 @@
   
   %track
       prog zope-plone = {
  -        version   = %{version}
  -        url       = http://prdownloads.sourceforge.net/plone/
  -        regex     = Plone-(\d+\.\d+\.\d+)-final\.tar\.gz
  +        version   = %{V_major}-%{V_minor}
  +        url       = http://plone.googlecode.com/
  +        regex     = Plone-(\d+\.\d+\.\d+-(?:rc\d+|final))\.tar\.gz
       }
   
   %prep
  -    %setup -n Plone-%{version}
  +    %setup -q -n Plone-%{V_major}-%{V_minor}
   
   %build
       #   fix bug in distribution ownership
  @@ -70,7 +74,7 @@
   %install
       rm -rf $RPM_BUILD_ROOT
   
  -    #   install product libraries
  +    #   set of products to install
       CMF_PRODUCTS="\
           ATContentTypes \
           ATReferenceBrowserWidget \
  @@ -91,7 +95,6 @@
           DCWorkflow \
           ExtendedPathIndex \
           ExternalEditor \
  -        Five \
           GenericSetup \
           GroupUserFolder \
           Marshall \
  @@ -111,6 +114,8 @@
           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 \
  @@ -126,6 +131,18 @@
               $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;' \
  @@ -155,6 +172,9 @@
             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
   
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to