Add BINUTILS_PKGVERS.

This commit is contained in:
Ralf Corsepius
2007-02-26 09:36:22 +00:00
parent 9a4713cf6c
commit a5f0d3f61c
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
%define binutils_pkgvers @BINUTILS_PKGVERS@
%define binutils_version @BINUTILS_VERS@
%define binutils_rpmvers %{expand:%(echo @BINUTILS_VERS@ | tr - _)}
%define binutils_rpmvers %{expand:%(echo "@BINUTILS_VERS@" | tr - _ )}
Name: @rpmprefix@@tool_target@-binutils
Summary: Binutils for target @tool_target@
@@ -19,7 +20,6 @@ BuildRequires: flex
BuildRequires: bison
%if %build_infos
# Requires: @rpmprefix@rtems4.7-base-binutils
Requires: @rpmprefix@binutils-common
%endif

View File

@@ -2,7 +2,7 @@
mkdir -p build
cd build
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_version}/configure \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
--target=@tool_target@ \
--verbose --disable-nls \

View File

@@ -2,7 +2,7 @@
%setup -q -c -T -n %{name}-%{version}
%setup -q -D -T -n %{name}-%{version} -a0
cd binutils-%{binutils_version}
cd binutils-%{binutils_pkgvers}
%{?PATCH0:%patch0 -p1}
cd ..