automatic version update by autodist [release 2.44-1mamba;Fri Feb 07 2025]
This commit is contained in:
parent
c3942cd78c
commit
9f11366ffd
@ -7,7 +7,7 @@
|
|||||||
%define pkgver %(echo %version | sed "s|[a-z]*$||")
|
%define pkgver %(echo %version | sed "s|[a-z]*$||")
|
||||||
|
|
||||||
Name: binutils
|
Name: binutils
|
||||||
Version: 2.43.1
|
Version: 2.44
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: GNU Binary Utility Development Utilities
|
Summary: GNU Binary Utility Development Utilities
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
@ -87,7 +87,6 @@ Binutils is a collection of binary utilities, including:
|
|||||||
Use this package if you need cross platform builds for %{_target_platform} target.
|
Use this package if you need cross platform builds for %{_target_platform} target.
|
||||||
|
|
||||||
%if "%{_target_platform}" == "%{_host}"
|
%if "%{_target_platform}" == "%{_host}"
|
||||||
%debug_package
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -99,8 +98,6 @@ Use this package if you need cross platform builds for %{_target_platform} targe
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%patch 1 -p1
|
%patch 1 -p1
|
||||||
#%patch11 -p1
|
|
||||||
#%patch12 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#:<< ___EOF
|
#:<< ___EOF
|
||||||
@ -225,6 +222,7 @@ for i in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib strip readelf; do
|
|||||||
done
|
done
|
||||||
rm -rf %{buildroot}%{_datadir}/locale
|
rm -rf %{buildroot}%{_datadir}/locale
|
||||||
rm -rf %{buildroot}%{_datadir}/info
|
rm -rf %{buildroot}%{_datadir}/info
|
||||||
|
rm -f %{buildroot}%{_bindir}/gp-*
|
||||||
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}/libgprofng.*
|
rm -rf %{buildroot}%{_libdir}/libgprofng.*
|
||||||
@ -233,6 +231,7 @@ rm -rf %{buildroot}%{_libdir}/bfd-plugins
|
|||||||
rm -rf %{buildroot}%{_libdir}/gprofng
|
rm -rf %{buildroot}%{_libdir}/gprofng
|
||||||
rm -f %{buildroot}%{_includedir}/*.h
|
rm -f %{buildroot}%{_includedir}/*.h
|
||||||
rm -f %{buildroot}%{_sysconfdir}/gprofng.rc
|
rm -f %{buildroot}%{_sysconfdir}/gprofng.rc
|
||||||
|
rm -rf %{buildroot}%{_docdir}/gprofng
|
||||||
|
|
||||||
# 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
|
||||||
@ -275,15 +274,17 @@ if [ $1 -ge 1 ]; then
|
|||||||
# remove legacy alternatives
|
# remove legacy alternatives
|
||||||
/usr/sbin/update-alternatives --remove ld %{_bindir}/ld.bfd 2>/dev/null
|
/usr/sbin/update-alternatives --remove ld %{_bindir}/ld.bfd 2>/dev/null
|
||||||
/usr/sbin/update-alternatives --remove ld %{_bindir}/ld.gold 2>/dev/null
|
/usr/sbin/update-alternatives --remove ld %{_bindir}/ld.gold 2>/dev/null
|
||||||
|
/usr/sbin/update-alternatives --remove ld \
|
||||||
|
%{_prefix}/%{_target_platform}/bin/ld.gold
|
||||||
[ -L %{_prefix}/%{_target_platform}/bin/ld ] || rm -f %{_prefix}/%{_target_platform}/bin/ld
|
[ -L %{_prefix}/%{_target_platform}/bin/ld ] || rm -f %{_prefix}/%{_target_platform}/bin/ld
|
||||||
/usr/sbin/update-alternatives \
|
/usr/sbin/update-alternatives \
|
||||||
--install %{_prefix}/%{_target_platform}/bin/ld ld \
|
--install %{_prefix}/%{_target_platform}/bin/ld ld \
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.bfd 20
|
%{_prefix}/%{_target_platform}/bin/ld.bfd 20
|
||||||
/usr/sbin/update-alternatives \
|
# /usr/sbin/update-alternatives \
|
||||||
--install %{_prefix}/%{_target_platform}/bin/ld ld \
|
# --install %{_prefix}/%{_target_platform}/bin/ld ld \
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.gold 10
|
# %{_prefix}/%{_target_platform}/bin/ld.gold 10
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
@ -294,7 +295,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
%uninstall_info ${i}.info
|
%uninstall_info ${i}.info
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
@ -304,10 +305,10 @@ if [ $1 -eq 0 ]; then
|
|||||||
|
|
||||||
/usr/sbin/update-alternatives --remove ld \
|
/usr/sbin/update-alternatives --remove ld \
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.bfd
|
%{_prefix}/%{_target_platform}/bin/ld.bfd
|
||||||
/usr/sbin/update-alternatives --remove ld \
|
# /usr/sbin/update-alternatives --remove ld \
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.gold
|
# %{_prefix}/%{_target_platform}/bin/ld.gold
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
[ -e %{_prefix}/%{_target_platform}/bin/ld ] || ln -s /etc/alternatives/ld %{_prefix}/%{_target_platform}/bin/ld
|
[ -e %{_prefix}/%{_target_platform}/bin/ld ] || ln -s /etc/alternatives/ld %{_prefix}/%{_target_platform}/bin/ld
|
||||||
@ -319,24 +320,24 @@ if [ $1 -ge 1 ]; then
|
|||||||
/usr/sbin/update-alternatives \
|
/usr/sbin/update-alternatives \
|
||||||
--install %{_prefix}/%{_target_platform}/bin/ld %{_target_platform}-ld \
|
--install %{_prefix}/%{_target_platform}/bin/ld %{_target_platform}-ld \
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.bfd 20
|
%{_prefix}/%{_target_platform}/bin/ld.bfd 20
|
||||||
/usr/sbin/update-alternatives \
|
/usr/sbin/update-alternatives --remove %{_target_platform}-ld \
|
||||||
--install %{_prefix}/%{_target_platform}/bin/ld %{_target_platform}-ld \
|
%{_prefix}/%{_target_platform}/bin/ld.gold
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.gold 10
|
# /usr/sbin/update-alternatives \
|
||||||
|
# --install %{_prefix}/%{_target_platform}/bin/ld %{_target_platform}-ld \
|
||||||
|
# %{_prefix}/%{_target_platform}/bin/ld.gold 10
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%postun -n cross-%{_target_platform}-%{name}
|
%postun -n cross-%{_target_platform}-%{name}
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/usr/sbin/update-alternatives --remove %{_target_platform}-ld \
|
/usr/sbin/update-alternatives --remove %{_target_platform}-ld \
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.bfd
|
%{_prefix}/%{_target_platform}/bin/ld.bfd
|
||||||
/usr/sbin/update-alternatives --remove %{_target_platform}-ld \
|
|
||||||
%{_prefix}/%{_target_platform}/bin/ld.gold
|
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%posttrans -n cross-%{_target_platform}-%{name}
|
%posttrans -n cross-%{_target_platform}-%{name}
|
||||||
[ -e %{_prefix}/%{_target_platform}/bin/ld ] || ln -s /etc/alternatives/ld %{_prefix}/%{_target_platform}/bin/ld
|
[ -e %{_prefix}/%{_target_platform}/bin/ld ] || ln -s /etc/alternatives/ld %{_prefix}/%{_target_platform}/bin/ld
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%if "%{_target_platform}" == "%{_host}"
|
%if "%{_target_platform}" == "%{_host}"
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
@ -345,18 +346,16 @@ exit 0
|
|||||||
%{_bindir}/ar
|
%{_bindir}/ar
|
||||||
%{_bindir}/as
|
%{_bindir}/as
|
||||||
%{_bindir}/c++filt
|
%{_bindir}/c++filt
|
||||||
%{_bindir}/dwp
|
|
||||||
%{_bindir}/elfedit
|
%{_bindir}/elfedit
|
||||||
%{_bindir}/embedspu
|
%{_bindir}/embedspu
|
||||||
%{_bindir}/gprof
|
%{_bindir}/gprof
|
||||||
%if "%gprof" == "1"
|
%if "%gprof" == "1"
|
||||||
%{_sysconfdir}/gprofng.rc
|
%{_sysconfdir}/gprofng.rc
|
||||||
%{_bindir}/gp-*
|
%{_bindir}/gp-*
|
||||||
%{_bindir}/gprofng
|
%{_bindir}/gprofng*
|
||||||
%endif
|
%endif
|
||||||
%{_bindir}/ld
|
%{_bindir}/ld
|
||||||
%{_bindir}/ld.bfd
|
%{_bindir}/ld.bfd
|
||||||
%{_bindir}/ld.gold
|
|
||||||
%{_bindir}/nm
|
%{_bindir}/nm
|
||||||
%{_bindir}/objcopy
|
%{_bindir}/objcopy
|
||||||
%{_bindir}/objdump
|
%{_bindir}/objdump
|
||||||
@ -374,13 +373,8 @@ 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*
|
||||||
%{_mandir}/man1/gprof.1*
|
%{_mandir}/man1/gprof*.1*
|
||||||
%if "%gprof" == "1"
|
|
||||||
%{_mandir}/man1/gp-*.1*
|
|
||||||
%{_mandir}/man1/gprofng.1*
|
|
||||||
%endif
|
|
||||||
%{_mandir}/man1/ld.1*
|
%{_mandir}/man1/ld.1*
|
||||||
#%{_mandir}/man1/nlmconv.1.gz
|
|
||||||
%{_mandir}/man1/nm.1*
|
%{_mandir}/man1/nm.1*
|
||||||
%{_mandir}/man1/objcopy.1*
|
%{_mandir}/man1/objcopy.1*
|
||||||
%{_mandir}/man1/objdump.1*
|
%{_mandir}/man1/objdump.1*
|
||||||
@ -426,7 +420,7 @@ exit 0
|
|||||||
%{_libdir}/libgprofng.so
|
%{_libdir}/libgprofng.so
|
||||||
%{_libdir}/gprofng/libgp-collectorAPI.a
|
%{_libdir}/gprofng/libgp-collectorAPI.a
|
||||||
%endif
|
%endif
|
||||||
#%{_libdir}/libiberty.a
|
%{_docdir}/gprofng/examples.tar.gz
|
||||||
%else
|
%else
|
||||||
%files -n cross-%{_target_platform}-%{name}
|
%files -n cross-%{_target_platform}-%{name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -442,6 +436,9 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 07 2025 Automatic Build System <autodist@openmamba.org> 2.44-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Sun Aug 18 2024 Automatic Build System <autodist@openmamba.org> 2.43.1-1mamba
|
* Sun Aug 18 2024 Automatic Build System <autodist@openmamba.org> 2.43.1-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user