binutils/binutils.spec

changeset 425
7543b0b3134d
parent 331
44acfa481149
child 426
c9323ebe0764
     1.1 --- a/binutils/binutils.spec	Tue Jul 31 09:41:21 2012 +0200
     1.2 +++ b/binutils/binutils.spec	Tue Jul 31 10:02:47 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  binutils.spec -- OpenPKG RPM Package Specification
     1.6 -##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##  Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -21,6 +21,11 @@
    1.12  ##  SUCH DAMAGE.
    1.13  ##
    1.14  
    1.15 +#   package version
    1.16 +%define       V_opkg  2.22
    1.17 +%define       V_base  2.22
    1.18 +%define       V_patch %nil
    1.19 +
    1.20  #   package information
    1.21  Name:         binutils
    1.22  Summary:      GNU Binary Utilities
    1.23 @@ -31,20 +36,16 @@
    1.24  Class:        CORE
    1.25  Group:        Compiler
    1.26  License:      GPL
    1.27 -Version:      2.21
    1.28 -Release:      20101212
    1.29 +Version:      %{V_opkg}
    1.30 +Release:      20111122
    1.31  
    1.32  #   list of sources
    1.33 -Source0:      ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
    1.34 +Source0:      ftp://sources.redhat.com/pub/binutils/releases/binutils-%{V_base}.tar.bz2
    1.35  Patch0:       binutils.patch
    1.36  
    1.37  #   build information
    1.38 -Prefix:       %{l_prefix}
    1.39 -BuildRoot:    %{l_buildroot}
    1.40 -BuildPreReq:  OpenPKG, openpkg >= 20060823, make
    1.41 -PreReq:       OpenPKG, openpkg >= 20060823
    1.42 -AutoReq:      no
    1.43 -AutoReqProv:  no
    1.44 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    1.45 +PreReq:       OpenPKG, openpkg >= 20100101
    1.46  
    1.47  %description
    1.48      Binutils is a collection of binary utilities. It includes: ld
    1.49 @@ -61,13 +62,13 @@
    1.50  
    1.51  %track
    1.52      prog binutils = {
    1.53 -        version   = %{version}
    1.54 +        version   = %{V_base}
    1.55          url       = ftp://sources.redhat.com/pub/binutils/releases/
    1.56          regex     = binutils-(__VER__)\.tar\.bz2
    1.57      }
    1.58  
    1.59  %prep
    1.60 -    %setup -q
    1.61 +    %setup -q -n binutils-%{V_base}
    1.62      %patch -p0
    1.63  
    1.64  %build
    1.65 @@ -105,10 +106,9 @@
    1.66          $ARGS
    1.67  
    1.68      #   build package
    1.69 -    %{l_make} %{l_mflags} GREP="grep"
    1.70 +    %{l_make} %{l_mflags}
    1.71  
    1.72  %install
    1.73 -    rm -rf $RPM_BUILD_ROOT
    1.74  
    1.75      #   build package
    1.76      %{l_make} %{l_mflags} install \
    1.77 @@ -158,5 +158,4 @@
    1.78  %files -f files
    1.79  
    1.80  %clean
    1.81 -    rm -rf $RPM_BUILD_ROOT
    1.82  

mercurial