3 %bcond_with eabi # build with Embedded ABI support
5 Summary: Cross ARM GNU binary utility development utilities - binutils
6 Summary(es): Utilitarios para desarrollo de binarios de la GNU - ARM binutils
7 Summary(fr): Utilitaires de développement binaire de GNU - ARM binutils
8 Summary(pl): Skro¶ne narzêdzia programistyczne GNU dla ARM - binutils
9 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - ARM binutils
10 Summary(tr): GNU geliþtirme araçlarý - ARM binutils
11 Name: crossarm-binutils
13 Release: 1%{?with_eabi:eabi}
15 Group: Development/Tools
16 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
17 # Source0-md5: 46637559faa3157b189e0835a9bed08b
18 URL: http://sources.redhat.com/binutils/
19 BuildRequires: automake
23 %{?with_eabi:Provides: crossarm-binutils(eabi)}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define target arm-linux%{?with_eabi:-eabi}
28 %define arch %{_prefix}/%{target}
31 Binutils is a collection of binary utilities, including:
32 - ar - create, modify and extract from archives,
33 - nm - lists symbols from object files,
34 - objcopy - copy and translate object files,
35 - objdump - display information from object files,
36 - ranlib - generate an index for the contents of an archive,
37 - size - list the section sizes of an object or archive file,
38 - strings - list printable strings from files,
39 - strip - discard symbols,
40 - c++filt - a filter for demangling encoded C++ symbols,
41 - addr2line - convert addresses to file and line,
42 - nlmconv - convert object code into an NLM.
44 This package contains the cross version for ARM.
47 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
48 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
49 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
50 programów i bibliotek.
52 Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla ARM.
55 %setup -q -n binutils-%{version}
58 cp -f /usr/share/automake/config.sub .
60 # ldscripts won't be generated properly if SHELL is not bash...
61 CFLAGS="%{rpmcflags}" \
62 LDFLAGS="%{rpmldflags}" \
63 CONFIG_SHELL="/bin/bash" \
70 --infodir=%{_infodir} \
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_prefix}
82 prefix=$RPM_BUILD_ROOT%{_prefix} \
83 mandir=$RPM_BUILD_ROOT%{_mandir} \
84 infodir=$RPM_BUILD_ROOT%{_infodir} \
85 libdir=$RPM_BUILD_ROOT%{_libdir}
87 # remove these man pages unless we cross-build for win*/netware platforms.
88 # however, this should be done in Makefiles.
89 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
92 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_bindir}/%{target}-*
100 %attr(755,root,root) %{arch}/bin/*
103 %{arch}/lib/ldscripts/*
104 %{_mandir}/man?/%{target}-*