From 88da516ec48951d2c62d3d27846560a741edc11d Mon Sep 17 00:00:00 2001 From: Liquor <1692257904@qq.com> Date: Mon, 22 Mar 2021 15:11:56 +0800 Subject: [PATCH] move the test to %check phase --- binutils.spec | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/binutils.spec b/binutils.spec index b3bfe38..89280de 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.34 -Release: 8 +Release: 9 License: GPLv3+ URL: https://sourceware.org/binutils @@ -159,6 +159,7 @@ export LDFLAGS=$RPM_LD_FLAGS %make_build %{_smp_mflags} tooldir=%{_prefix} all %make_build %{_smp_mflags} tooldir=%{_prefix} info +%check make -k check < /dev/null || : cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum for file in {gas/testsuite/gas,ld/ld,binutils/binutils}.{sum,log} @@ -174,16 +175,6 @@ rm -f binutils-%{_target_platform}.tar.bz2 binutils-%{_target_platform}-*.{sum,l make prefix=%{buildroot}%{_prefix} infodir=%{buildroot}%{_infodir} install-info -# Rebuild static libraries with -g -fPIC. -for library in libiberty opcodes -do - %make_build -C $library clean - %make_build CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C $library -done -%make_build -C bfd clean -%make_build CFLAGS="-g -fPIC $RPM_OPT_FLAGS -fvisibility=hidden" -C bfd - - for library in bfd/libbfd.a libiberty/libiberty.a opcodes/libopcodes.a do install -m 644 $library %{buildroot}%{_libdir} @@ -364,6 +355,12 @@ fi %{_infodir}/bfd*info* %changelog +* Mon Mar 22 2021 lirui - 2.34-9 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:move the test to %check phase + * Sat Jan 9 2021 zoulin - 2.34-8 - Type:CVE - ID:NA -- Gitee