# CodeSourcery releases are identified by a date, a release number, # and a package number for downloading from their web site %global cs_date 2012.09 %global cs_rel 63 %global cs_pkgnum 10925 %global processor_arch arm %global target %{processor_arch}-none-eabi Name: %{target}-binutils-cs Version: %{cs_date}.%{cs_rel} Release: 1%{?dist} Summary: GNU Binutils for cross-compilation for %{target} target Group: Development/Tools # 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} #we don't use orignal tarball, because it's HUGE Source0: binutils-%{cs_date}-%{cs_rel}.tar.bz2 #Source0 origin: #wget https://sourcery.mentor.com/GNUToolchain/package%{cs_pkgnum}/public/%{target}/%{processor_arch}-%{cs_date}-%{cs_rel}-%{target}.src.tar.bz2 #tar jxvf %{processor_arch}-%{cs_date}-%{cs_rel}-%{target}.src.tar.bz2 Source1: README.fedora BuildRequires: flex bison ppl-devel cloog-ppl-devel BuildRequires: texinfo texinfo-tex %description This is a cross-compilation version of GNU Binutils, which can be used to assemble and link binaries for the %{target} platform. This Binutils package is based on the CodeSourcery %{cs_date}-%{cs_rel} release, which includes improved ARM target support compared to the corresponding FSF release. CodeSourcery contributes their changes to the FSF, but it takes a while for them to get merged. For the ARM target, effectively CodeSourcery is upstream of FSF. %prep %setup -q -n binutils-%{cs_date} cp -p %{SOURCE1} . %build ./configure CFLAGS="$RPM_OPT_FLAGS" \ --target=%{target} \ --enable-interwork \ --enable-multilib \ --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}-%{version} \ --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,nlmconv,windres}.1 # we don't want these as we are a cross version rm -r %{buildroot}%{_infodir} rm %{buildroot}%{_libdir}/libiberty.a rmdir %{buildroot}%{_libdir} %files %defattr(-,root,root,-) %doc COPYING* ChangeLog README.fedora %{_prefix}/%{target} %{_bindir}/%{target}-* %{_mandir}/man1/%{target}-*.1.gz %changelog * Mon Dec 03 2012 Michal Hlavinka - 2012.09_63-1 - new spec for arm-none-eabi using CodeSourcery release