diff -r d9798afea31c -r 7543b0b3134d binutils/binutils.spec --- a/binutils/binutils.spec Tue Jul 31 09:41:21 2012 +0200 +++ b/binutils/binutils.spec Tue Jul 31 10:02:47 2012 +0200 @@ -1,6 +1,6 @@ ## ## binutils.spec -- OpenPKG RPM Package Specification -## Copyright (c) 2000-2010 OpenPKG Foundation e.V. +## Copyright (c) 2000-2011 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -21,6 +21,11 @@ ## SUCH DAMAGE. ## +# package version +%define V_opkg 2.22 +%define V_base 2.22 +%define V_patch %nil + # package information Name: binutils Summary: GNU Binary Utilities @@ -31,20 +36,16 @@ Class: CORE Group: Compiler License: GPL -Version: 2.21 -Release: 20101212 +Version: %{V_opkg} +Release: 20111122 # list of sources -Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2 +Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{V_base}.tar.bz2 Patch0: binutils.patch # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20060823, make -PreReq: OpenPKG, openpkg >= 20060823 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101, make +PreReq: OpenPKG, openpkg >= 20100101 %description Binutils is a collection of binary utilities. It includes: ld @@ -61,13 +62,13 @@ %track prog binutils = { - version = %{version} + version = %{V_base} url = ftp://sources.redhat.com/pub/binutils/releases/ regex = binutils-(__VER__)\.tar\.bz2 } %prep - %setup -q + %setup -q -n binutils-%{V_base} %patch -p0 %build @@ -105,10 +106,9 @@ $ARGS # build package - %{l_make} %{l_mflags} GREP="grep" + %{l_make} %{l_mflags} %install - rm -rf $RPM_BUILD_ROOT # build package %{l_make} %{l_mflags} install \ @@ -158,5 +158,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT