%define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi}
+%if 0%{?run_tests}
+%define binutils_run_tests 1
+%endif
+
Name: binutils%{?cross:-%{cross}}
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
+%if 0%{?binutils_run_tests}
+BuildRequires: dejagnu
+BuildRequires: gdb
+BuildRequires: glibc-devel-static
+%endif
Version: 2.27
Release: 0
Url: http://www.gnu.org/software/binutils/
make %{?_smp_mflags}
+%check
+%{?binutils_run_tests:
+ make %{?_smp_mflags} -C build-dir check -k
+}
+
%install
cd build-dir
make DESTDIR=$RPM_BUILD_ROOT install
%define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi}
+%if 0%{?run_tests}
+%define binutils_run_tests 1
+%endif
+
Name: binutils%{?cross:-%{cross}}
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
+%if 0%{?binutils_run_tests}
+BuildRequires: dejagnu
+BuildRequires: gdb
+BuildRequires: glibc-devel-static
+%endif
Version: 2.27
Release: 0
Url: http://www.gnu.org/software/binutils/
make %{?_smp_mflags}
+%check
+%{?binutils_run_tests:
+ make %{?_smp_mflags} -C build-dir check -k
+}
+
%install
cd build-dir
make DESTDIR=$RPM_BUILD_ROOT install
%define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi}
+%if 0%{?run_tests}
+%define binutils_run_tests 1
+%endif
+
Name: binutils%{?cross:-%{cross}}
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
+%if 0%{?binutils_run_tests}
+BuildRequires: dejagnu
+BuildRequires: gdb
+BuildRequires: glibc-devel-static
+%endif
Version: 2.27
Release: 0
Url: http://www.gnu.org/software/binutils/
make %{?_smp_mflags}
+%check
+%{?binutils_run_tests:
+ make %{?_smp_mflags} -C build-dir check -k
+}
+
%install
cd build-dir
make DESTDIR=$RPM_BUILD_ROOT install
%define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi}
+%if 0%{?run_tests}
+%define binutils_run_tests 1
+%endif
+
Name: binutils%{?cross:-%{cross}}
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
+%if 0%{?binutils_run_tests}
+BuildRequires: dejagnu
+BuildRequires: gdb
+BuildRequires: glibc-devel-static
+%endif
Version: 2.27
Release: 0
Url: http://www.gnu.org/software/binutils/
make %{?_smp_mflags}
+%check
+%{?binutils_run_tests:
+ make %{?_smp_mflags} -C build-dir check -k
+}
+
%install
cd build-dir
make DESTDIR=$RPM_BUILD_ROOT install