move the test to %check phase
This commit is contained in:
parent
3f45db310a
commit
88da516ec4
@ -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 <lirui130@huawei.com> - 2.34-9
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:move the test to %check phase
|
||||
|
||||
* Sat Jan 9 2021 zoulin <zoulin13@huawei.com> - 2.34-8
|
||||
- Type:CVE
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user