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