!120 fix (obs) project build fail
From: @zou_lin77 Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
a971f6307c
@ -1,7 +1,7 @@
|
|||||||
Summary: Binary utilities
|
Summary: Binary utilities
|
||||||
Name: binutils
|
Name: binutils
|
||||||
Version: 2.37
|
Version: 2.37
|
||||||
Release: 5
|
Release: 6
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -39,7 +39,6 @@ BuildRequires: gcc, perl, sed, coreutils, dejagnu, zlib-devel, glibc-static, sha
|
|||||||
BuildRequires: bison, m4, gcc-c++, gettext, flex, zlib-devel, texinfo >= 4.0, perl-podlators chrpath
|
BuildRequires: bison, m4, gcc-c++, gettext, flex, zlib-devel, texinfo >= 4.0, perl-podlators chrpath
|
||||||
Requires(post): info coreutils chkconfig
|
Requires(post): info coreutils chkconfig
|
||||||
Requires(preun):info chkconfig
|
Requires(preun):info chkconfig
|
||||||
Recommends: binutils-extra
|
|
||||||
|
|
||||||
%define _gnu %{nil}
|
%define _gnu %{nil}
|
||||||
# The higher of these two numbers determines the default ld.
|
# The higher of these two numbers determines the default ld.
|
||||||
@ -71,24 +70,11 @@ trip - Discards symbols.
|
|||||||
windmc - A Windows compatible message compiler.
|
windmc - A Windows compatible message compiler.
|
||||||
windres - A compiler for Windows resource files.
|
windres - A compiler for Windows resource files.
|
||||||
|
|
||||||
%package extra
|
|
||||||
Summary: extra package including debug tools.
|
|
||||||
Provides: binutils-extra = %{version}-%{release}
|
|
||||||
Requires: binutils = %{version}-%{release}
|
|
||||||
Requires(post): info coreutils chkconfig
|
|
||||||
Requires(preun): info chkconfig
|
|
||||||
|
|
||||||
%description extra
|
|
||||||
The extra package contains debug tools.
|
|
||||||
ld - the GNU linker.
|
|
||||||
objdump - Displays information from object files.
|
|
||||||
readelf - Displays information from any ELF format object file.
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: devel package including header files and libraries.
|
Summary: devel package including header files and libraries.
|
||||||
Provides: binutils-static = %{version}-%{release}
|
Provides: binutils-static = %{version}-%{release}
|
||||||
Requires: zlib-devel, binutils = %{version}-%{release}, coreutils
|
Requires: zlib-devel, binutils = %{version}-%{release}, coreutils
|
||||||
Requires: binutils-extra
|
|
||||||
Requires(post): info
|
Requires(post): info
|
||||||
Requires(preun):info
|
Requires(preun):info
|
||||||
|
|
||||||
@ -278,7 +264,7 @@ do
|
|||||||
cat $library.lang >> binutils.lang
|
cat $library.lang >> binutils.lang
|
||||||
done
|
done
|
||||||
|
|
||||||
%post extra
|
%post
|
||||||
%__rm -f %{_bindir}/ld
|
%__rm -f %{_bindir}/ld
|
||||||
%{_sbindir}/alternatives --install %{_bindir}/ld ld \
|
%{_sbindir}/alternatives --install %{_bindir}/ld ld \
|
||||||
%{_bindir}/ld.bfd %{ld_bfd_priority}
|
%{_bindir}/ld.bfd %{ld_bfd_priority}
|
||||||
@ -300,7 +286,7 @@ do
|
|||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/$info
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/$info
|
||||||
done
|
done
|
||||||
|
|
||||||
%preun extra
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.bfd
|
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.bfd
|
||||||
|
|
||||||
@ -324,9 +310,6 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun extra
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun help
|
%postun help
|
||||||
if [ -e %{_infodir}/binutils.info.gz ]
|
if [ -e %{_infodir}/binutils.info.gz ]
|
||||||
then
|
then
|
||||||
@ -350,18 +333,8 @@ fi
|
|||||||
%exclude %{_libdir}/libctf-nobfd.a
|
%exclude %{_libdir}/libctf-nobfd.a
|
||||||
%exclude %{_libdir}/libbfd.so
|
%exclude %{_libdir}/libbfd.so
|
||||||
%exclude %{_libdir}/libopcodes.so
|
%exclude %{_libdir}/libopcodes.so
|
||||||
%exclude %{_bindir}/objdump
|
|
||||||
%exclude %{_bindir}/readelf
|
|
||||||
%exclude %{_bindir}/nm
|
|
||||||
%config(noreplace) /etc/ld.so.conf.d/*
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files extra
|
|
||||||
%{_bindir}/ld.*
|
|
||||||
%{_bindir}/objdump
|
|
||||||
%{_bindir}/readelf
|
|
||||||
%{_bindir}/nm
|
|
||||||
%ghost %{_bindir}/ld
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_prefix}/include/*
|
%{_prefix}/include/*
|
||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
@ -379,6 +352,12 @@ fi
|
|||||||
%{_infodir}/bfd*info*
|
%{_infodir}/bfd*info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 15 2022 zoulin <zoulin13@h-partners.com> - 2.37-6
|
||||||
|
- Type:requirements
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix (obs) project build fail
|
||||||
|
|
||||||
* Sat Mar 12 2022 zoulin <zoulin13@h-partners.com> - 2.37-5
|
* Sat Mar 12 2022 zoulin <zoulin13@h-partners.com> - 2.37-5
|
||||||
- Type:requirements
|
- Type:requirements
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user