mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Add BINUTILS_PKGVERS.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 ..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user