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:   14-Oct-2007 12:49:33
  Branch: HEAD                             Handle: 2007101411493200

  Modified files:
    openpkg-src/lzma        lzma.spec

  Log:
    upgrading package: lzma 4.52 -> 4.x

  Summary:
    Revision    Changes     Path
    1.7         +47 -9      openpkg-src/lzma/lzma.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/lzma/lzma.spec
  ============================================================================
  $ cvs diff -u -r1.6 -r1.7 lzma.spec
  --- openpkg-src/lzma/lzma.spec        3 Aug 2007 14:37:21 -0000       1.6
  +++ openpkg-src/lzma/lzma.spec        14 Oct 2007 10:49:32 -0000      1.7
  @@ -23,24 +23,26 @@
   ##
   
   #   package version
  -%define       V_dist 452
  -%define       V_opkg 4.52
  +%define       V_opkg      4.x
  +%define       V_lzmautils 4.42.0alpha6
  +%define       V_sdk       452
   
   #   package information
   Name:         lzma
   Summary:      Lempel-Ziv-Markov Algorithm (LZMA) Compression
  -URL:          http://www.7-zip.org/
  -Vendor:       Igor Pavlov
  +URL:          http://tukaani.org/lzma/
  +Vendor:       Igor Pavlov, Lasse Collin
   Packager:     OpenPKG Foundation e.V.
   Distribution: OpenPKG Community
   Class:        EVAL
   Group:        Compression
   License:      LGPL
   Version:      %{V_opkg}
  -Release:      20070803
  +Release:      20071014
   
   #   list of sources
  -Source0:      http://switch.dl.sourceforge.net/sevenzip/7z%{V_dist}.tar.bz2
  +Source0:      http://tukaani.org/lzma/lzma-%{V_lzmautils}.tar.gz
  +Source1:      http://switch.dl.sourceforge.net/sevenzip/7z%{V_sdk}.tar.bz2
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -62,16 +64,39 @@
       higher CPU and RAM requirements for compression.
   
   %track
  -    prog lzma = {
  -        version   = %{V_dist}
  +    prog lzma:lzmautils = {
  +        version   = %{V_lzmautils}
  +        url       = http://tukaani.org/lzma/download
  +        regex     = lzma-(__VER__)\.tar\.gz
  +    }
  +    prog lzma:sdk = {
  +        version   = %{V_sdk}
           url       = http://prdownloads.sourceforge.net/sevenzip/
           regex     = 7z(__VER__)\.tar\.bz2
       }
   
   %prep
       %setup -q -c
  +    %setup -q -c -T -D -a 1
   
   %build
  +    #   build LZMA from LZMA Utils
  +    ( cd lzma-%{V_lzmautils}
  +      CC="%{l_cc}" \
  +      CXX="%{l_cxx}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CXXFLAGS="%{l_cxxflags -O}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --mandir=%{l_prefix}/man \
  +          --without-libiconv-prefix \
  +          --without-libintl-prefix \
  +          --disable-nls \
  +          --disable-shared
  +      %{l_make} %{l_mflags}
  +    ) || exit $?
  +
  +    #   build LZMA from 7-Zip SDK
       ( cd CPP/7zip/Compress/LZMA_Alone
         %{l_make} %{l_mflags} -f makefile.gcc \
             CXX="%{l_cxx} %{l_cxxflags -O} -D_LZMA_SYSTEM_SIZE_T" \
  @@ -80,11 +105,24 @@
   
   %install
       rm -rf $RPM_BUILD_ROOT
  +
  +    #   install LZMA from LZMA Utils
  +    ( cd lzma-%{V_lzmautils}
  +      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  +      %{l_shtool} mkdir -f -p -m 755 \
  +          $RPM_BUILD_ROOT%{l_prefix}/include
  +      %{l_shtool} install -c -m 644 \
  +          src/common/lzma.h $RPM_BUILD_ROOT%{l_prefix}/include/
  +    ) || exit $?
  +
  +    #   install LZMA from 7-Zip SDK
       %{l_shtool} mkdir -f -p -m 755 \
           $RPM_BUILD_ROOT%{l_prefix}/bin
       %{l_shtool} install -c -s -m 755 \
           CPP/7zip/Compress/LZMA_Alone/lzma \
  -        $RPM_BUILD_ROOT%{l_prefix}/bin/
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/lzma-7z
  +
  +    #   determine installation files
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   
   %files -f files
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to