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:   28-Feb-2006 21:55:10
  Branch: HEAD                             Handle: 2006022820551000

  Added files:
    openpkg-src/urpmi       urpmi.patch urpmi.spec

  Log:
    new package: urpmi 4.8.11 (RPM Installer)

  Summary:
    Revision    Changes     Path
    1.1         +61 -0      openpkg-src/urpmi/urpmi.patch
    1.1         +110 -0     openpkg-src/urpmi/urpmi.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/urpmi/urpmi.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 urpmi.patch
  --- /dev/null 2006-02-28 21:55:10 +0100
  +++ urpmi.patch       2006-02-28 21:55:10 +0100
  @@ -0,0 +1,61 @@
  +Index: URPM-1.36/Makefile.PL
  +--- URPM-1.36/Makefile.PL.orig       2006-01-19 13:44:43 +0100
  ++++ URPM-1.36/Makefile.PL    2006-02-28 21:47:03 +0100
  +@@ -3,28 +3,8 @@
  + 
  + # where to find the rpm utility
  + 
  +-my $rpm_path = $ENV{RPM_PATH}; # this overrides
  +-
  +-unless (defined $rpm_path) {
  +-    for (qw(/bin/rpm /usr/bin/rpm)) {
  +-    if (-x) {
  +-        $rpm_path = $_;
  +-        last;
  +-    }
  +-    }
  +-}
  +-
  +-defined $rpm_path or die "Can't find rpm on this system\n";
  +-
  +-my $version = `LC_ALL=C $rpm_path --version`;
  +-$version =~ s/RPM version //;
  +-$version =~ /^(?:4\.[2-9]|[5-9]|\d{2})/ 
  +-    or die "Unable to build URPM with too old (or undetected) rpm version 
$version\n";
  +-print "Found RPM version $version\n";
  +-
  +-# directory where to build an rpm of this
  +-my $rpmtopdir = `$rpm_path --eval '%{_topdir}'`;
  +-chomp $rpmtopdir;
  ++my $rpm_path = "";
  ++my $rpmtopdir = "";
  + 
  + sub MY::postamble {
  +     <<"**MM**";
  +@@ -51,11 +31,11 @@
  +     PREREQ_PM       => {
  +     'MDV::Packdrakeng' => '1.00',
  +     },
  +-    CCFLAGS => '-Wall',
  +-    OPTIMIZE        => '-O3 -fomit-frame-pointer -fno-exceptions -pipe -s 
-ffast-math -fexpensive-optimizations',
  ++    CCFLAGS => '',
  ++    OPTIMIZE        => '-O2 -fomit-frame-pointer -fno-exceptions -pipe -s 
-ffast-math -fexpensive-optimizations',
  +     VERSION_FROM    => 'URPM.pm',
  +-    LIBS    => [ '-lrpm -lrpmio -lrpmdb -lrpmbuild -lpopt -lz' ],
  +-    INC             => '-I/usr/include/rpm',
  ++    LIBS    => [ `openpkg rpm-config --ldflags --libs` ],
  ++    INC             => `openpkg rpm-config --cflags --cppflags`,
  +     dist    => { COMPRESS => "bzip2", SUFFIX => ".bz2" },
  +     realclean       => { FILES => "t/RPMS/noarch/*" },
  + );
  +Index: URPM-1.36/URPM.xs
  +--- URPM-1.36/URPM.xs.orig   2006-02-13 11:22:51 +0100
  ++++ URPM-1.36/URPM.xs        2006-02-28 21:46:20 +0100
  +@@ -22,6 +22,7 @@
  + #include <fcntl.h>
  + #include <unistd.h>
  + #include <zlib.h>
  ++#include <glob.h>
  + 
  + #undef Fflush
  + #undef Mkdir
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/urpmi/urpmi.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 urpmi.spec
  --- /dev/null 2006-02-28 21:55:10 +0100
  +++ urpmi.spec        2006-02-28 21:55:10 +0100
  @@ -0,0 +1,110 @@
  +##
  +##  urpmi.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.
  +##
  +
  +#   FIXME: rse: blindly packaged, still not tested at all under run-time
  +
  +#   package version
  +%define       V_urpmi           4.8.11
  +%define       V_urpm            1.36
  +%define       V_mdv_packdrakeng 1.01
  +%define       V_mdv_distribconf 1.01
  +
  +#   package information
  +Name:         urpmi
  +Summary:      RPM Installer
  +URL:          http://www.urpmi.org/
  +Vendor:       Mandrakesoft
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Bootstrapping
  +License:      GPL
  +Version:      %{V_urpmi}
  +Release:      20060228
  +
  +#   list of sources
  +Source0:      
http://www.cpan.org/authors/id/R/RG/RGARCIA/urpmi-%{V_urpmi}.tar.gz
  +Source1:      
http://www.cpan.org/authors/id/R/RG/RGARCIA/URPM-%{V_urpm}.tar.gz
  +Source2:      
http://www.cpan.org/authors/id/R/RG/RGARCIA/MDV-Packdrakeng-%{V_mdv_packdrakeng}.tar.gz
  +Source3:      
http://www.cpan.org/authors/id/R/RG/RGARCIA/MDV-Distribconf-%{V_mdv_distribconf}.tar.gz
  +Patch0:       urpmi.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, perl-openpkg
  +PreReq:       OpenPKG, openpkg >= 20040130, perl
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    URPMI is...
  +
  +%track
  +    prog urpmi:urpmi = {
  +        version   = %{V_urpmi}
  +        url       = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  +        regex     = urpmi-(__VER__)\.tar\.gz
  +    }
  +    prog urpmi:URPM = {
  +        version   = %{V_urpm}
  +        url       = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  +        regex     = URPM-(__VER__)\.tar\.gz
  +    }
  +    prog urpmi:MDV-Packdrakeng = {
  +        version   = %{V_mdv_packdrakeng}
  +        url       = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  +        regex     = MDV-Packdrakeng-(__VER__)\.tar\.gz
  +    }
  +    prog urpmi:MDV-Distribconf = {
  +        version   = %{V_mdv_distribconf}
  +        url       = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  +        regex     = MDV-Distribconf-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -D -T -a 1
  +    %setup -q -D -T -a 2
  +    %setup -q -D -T -a 3
  +    %patch -p0
  +
  +%build
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_prefix}/bin/perl-openpkg prepare
  +    %{l_prefix}/bin/perl-openpkg -d MDV-Distribconf-%{V_mdv_distribconf} 
configure build install
  +    %{l_prefix}/bin/perl-openpkg -d MDV-Packdrakeng-%{V_mdv_packdrakeng} 
configure build install
  +    %{l_prefix}/bin/perl-openpkg -d URPM-%{V_urpm} configure build install
  +    %{l_prefix}/bin/perl-openpkg -d urpmi-%{V_urpmi} configure build install
  +    %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} `cat perl-openpkg-files`
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to