%global processor_arch arm %global target %{processor_arch}-none-eabi Name: %{target}-binutils-cs Epoch: 1 Version: 2.32 Release: 1%{?dist} Summary: GNU Binutils for cross-compilation for %{target} target # Most of the sources are licensed under GPLv3+ with these exceptions: # LGPLv2+ bfd/hosts/x86-64linux.h, include/demangle.h, include/xregex2.h, # GPLv2+ gprof/cg_print.h # BSD gprof/cg_arcs.h, gprof/utils.c, ld/elf-hints-local.h, # Public Domain libiberty/memmove.c License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD URL: http://www.codesourcery.com/sgpp/lite/%{processor_arch} Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{version}.tar.xz Source1: README.fedora Patch7: binutils-2.24-dirtravel.patch BuildRequires: gcc flex bison ppl-devel cloog BuildRequires: texinfo texinfo-tex perl-podlators Provides: %{target}-binutils = %{version} %description This is a cross-compilation version of GNU Binutils, which can be used to assemble and link binaries for the %{target} platform. Binutils is a collection of binary utilities, including ar (for creating, modifying and extracting from archives), as (a family of GNU assemblers), gprof (for displaying call graph profile data), ld (the GNU linker), nm (for listing symbols from object files), objcopy (for copying and translating object files), objdump (for displaying information from object files), ranlib (for generating an index for the contents of an archive), readelf (for displaying detailed information about binary files), size (for listing the section sizes of an object or archive file), strings (for listing printable strings from files), strip (for discarding symbols), and addr2line (for converting addresses to file and line). %prep %setup -q -n binutils-%{version} cp -p %{SOURCE1} . rm -rf gdb sim %build ./configure CFLAGS="$RPM_OPT_FLAGS" \ --target=%{target} \ --enable-interwork \ --enable-multilib \ --enable-plugins \ --disable-nls \ --disable-shared \ --disable-threads \ --with-gcc --with-gnu-as --with-gnu-ld \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --with-docdir=share/doc/%{name} \ --disable-werror \ --with-pkgversion="Fedora %{version}-%{release}" \ --with-bugurl="https://bugzilla.redhat.com/" make %{?_smp_mflags} %check make check %install make install DESTDIR=%{buildroot} # these are for win targets only rm %{buildroot}%{_mandir}/man1/%{target}-{dlltool,windres}.1 # we don't want these as we are a cross version rm -r %{buildroot}%{_infodir} %files %license COPYING* %doc ChangeLog README.fedora %{_prefix}/%{target} %{_bindir}/%{target}-* %{_mandir}/man1/%{target}-*.1.gz %changelog * Mon Feb 04 2019 Michal Hlavinka - 1:2.32-1 - updated to 2.32 * Thu Jan 31 2019 Fedora Release Engineering - 1:2.30-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1:2.30-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Mar 07 2018 Michal Hlavinka - 1:2.30-2 - add gcc buildrequire * Tue Feb 06 2018 Michal Hlavinka - 1:2.30-1 - updated to 2.30 * Wed Aug 02 2017 Fedora Release Engineering - 1:2.28-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1:2.28-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 02 2017 Michal Hlavinka - 1:2.28-1 - updated to 2.28 * Fri Feb 10 2017 Fedora Release Engineering - 1:2.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Nov 13 2016 Michal Hlavinka - 1:2.27-1 - updated to 2.27 * Tue Jun 28 2016 Michal Hlavinka - 1:2.26-1 - update binutils to 2.26 * Wed Feb 03 2016 Fedora Release Engineering - 1:2.25-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1:2.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun May 31 2015 Michal Hlavinka - 1:2.25-1 - updated to vanila 2.25 * Thu Nov 13 2014 Michal Hlavinka - 2014.05.28-3 - fix CVE-2014-8738: out of bounds memory write * Wed Nov 12 2014 Michal Hlavinka - 2014.05.28-2 - fix directory traversal vulnerability (#1162657) - fix CVE-2014-8501: out-of-bounds write when parsing specially crafted PE executable - fix CVE-2014-8502: heap overflow in objdump - fix CVE-2014-8503: stack overflow in objdump when parsing specially crafted ihex file - fix CVE-2014-8504: stack overflow in the SREC parser * Wed Aug 20 2014 Michal Hlavinka - 2014.05.28-1 - updated to 2014.05-28 * Fri Aug 15 2014 Fedora Release Engineering - 2013.11.24-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2013.11.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Jan 13 2014 Michal Hlavinka - 2013.11.24-1 - updated to 2013.11-24 * Wed Aug 21 2013 Michal Hlavinka - 2013.05.23-1 - updated to 2013.05-23 * Thu Aug 08 2013 Michal Hlavinka - 2012.09.63-5 - use unversioned docdir (#993677) * Sat Aug 03 2013 Fedora Release Engineering - 2012.09.63-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 20 2013 Michal Hlavinka - 2012.09.63-3 - add provides, so we can combine CodeSourcery and upstream versions * Wed Feb 20 2013 Michal Hlavinka - 2012.09.63-2 - make it build with new texinfo * Mon Dec 03 2012 Michal Hlavinka - 2012.09.63-1 - new spec for arm-none-eabi using CodeSourcery release