automatic version update by autodist [release 2.39-1mamba;Mon Aug 08 2022]

This commit is contained in:
Automatic Build System 2024-01-05 20:48:10 +01:00
parent feebe7696a
commit 0546416c8a

View File

@ -1,11 +1,13 @@
# cross platform binutils specfile
%define target_cpu %(echo %{_target_platform} | cut -d- -f1)
%ifnarch arm
%define gprof 1
%endif
%define pkgver %(echo %version | sed "s|[a-z]*$||")
Name: binutils
Version: 2.38
Version: 2.39
Release: 1mamba
Summary: GNU Binary Utility Development Utilities
Group: Development/Tools
@ -91,6 +93,8 @@ Use this package if you need cross platform builds for %{_target_platform} targe
%prep
%setup -q -n binutils-%{pkgver}
#-D -T
#:<< ___EOF
%if "%{_target_platform}" != "%{_host}"
%define _build_id_links none
%endif
@ -100,6 +104,7 @@ Use this package if you need cross platform builds for %{_target_platform} targe
#%patch12 -p1
%build
#:<< ___EOF
install -d binutils-build
CONFIGURE_ADD="--enable-gold \
--enable-plugins \
@ -149,6 +154,7 @@ esac
cd binutils-build
../configure \
--with-bugurl=https://bugs.openmamba.org/ \
--sysconfdir=%{_sysconfdir} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
@ -200,27 +206,9 @@ cp ./ld/NEWS NEWS.ld
cp ./gas/NEWS NEWS.gas
cp ./binutils/NEWS NEWS.binutils
%find_lang bfd
%find_lang binutils
%find_lang gas
%find_lang gold
%if "%gprof" == "1"
%find_lang gprof
%find_lang %{name} --all-name
%endif
%find_lang ld
%find_lang opcodes
> %{name}-all.lang
%if "%gprof" == "1"
extralang=gprof
%endif
for i in bfd binutils gas gold ld opcodes $extralang; do
cat ${i}.lang >> %{name}-all.lang
done
%endif
%if "%{_target_platform}" != "%{_host}"
# CROSS target
@ -236,7 +224,9 @@ rm -rf %{buildroot}%{_datadir}/info
rm -rf %{buildroot}%{_libdir}/libiberty.a
rm -rf %{buildroot}%{_libdir}/libctf*
rm -rf %{buildroot}%{_libdir}/bfd-plugins
rm -rf %{buildroot}%{_includedir}/ctf*.h
rm -rf %{buildroot}%{_libdir}/gprofng
rm -f %{buildroot}%{_includedir}/*.h
rm -f %{buildroot}%{_sysconfdir}/gprofng.rc
# No shared linking to these files outside binutils
rm -f %{buildroot}%{_prefix}/%{_target_platform}/lib/lib{bfd,opcodes}.so
@ -340,7 +330,7 @@ exit 0
exit 0
%if "%{_target_platform}" == "%{_host}"
%files -f %{name}-all.lang
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/addr2line
%{_bindir}/ar
@ -349,8 +339,11 @@ exit 0
%{_bindir}/dwp
%{_bindir}/elfedit
%{_bindir}/embedspu
%if "%gprof" == "1"
%{_bindir}/gprof
%if "%gprof" == "1"
%{_sysconfdir}/gprofng.rc
%{_bindir}/gp-*
%{_bindir}/gprofng
%endif
%{_bindir}/ld
%{_bindir}/ld.bfd
@ -372,8 +365,10 @@ exit 0
%{_mandir}/man1/c++filt.1*
%{_mandir}/man1/dlltool.1*
%{_mandir}/man1/elfedit.1*
%if "%gprof" == "1"
%{_mandir}/man1/gprof.1*
%if "%gprof" == "1"
%{_mandir}/man1/gp-*.1*
%{_mandir}/man1/gprofng.1*
%endif
%{_mandir}/man1/ld.1*
#%{_mandir}/man1/nlmconv.1.gz
@ -396,6 +391,10 @@ exit 0
%{_libdir}/libopcodes-%{version}*.so
%{_libdir}/libctf-nobfd.so.*
%{_libdir}/libctf.so.*
%if "%gprof" == "1"
%{_libdir}/gprofng/libgp-*.so
%{_libdir}/gprofng/libgprofng.so.*
%endif
%dir %{_libdir}/bfd-plugins
%{_libdir}/bfd-plugins/libdep.so
@ -412,6 +411,9 @@ exit 0
%{_libdir}/libctf.a
%{_libdir}/libctf.la
%{_libdir}/libctf.so
%if "%gprof" == "1"
%{_libdir}/gprofng/libgprofng.so
%endif
#%{_libdir}/libiberty.a
%else
%files -n cross-%{_target_platform}-%{name}
@ -428,6 +430,9 @@ exit 0
%endif
%changelog
* Mon Aug 08 2022 Automatic Build System <autodist@mambasoft.it> 2.39-1mamba
- automatic version update by autodist
* Fri Feb 11 2022 Automatic Build System <autodist@mambasoft.it> 2.38-1mamba
- automatic version update by autodist