1 Summary: Cross AVR GNU binary utility development utilities - binutils
2 Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR binutils
3 Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR binutils
4 Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR - binutils
5 Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR binutils
6 Summary(tr.UTF-8): GNU geliştirme araçları - AVR binutils
7 Name: crossavr-binutils
12 # Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.4.2
13 # http://distribute.atmel.no/tools/opensource/Atmel-AVR-Toolchain-3.4.2/avr/avr-patches.tar.gz
14 Patch100: 001-xmega-Makefile_am-typo.patch
15 Patch101: 002-tinycore-support.patch
16 Patch102: 003-RMW-insn-constriant.patch
17 Patch103: 004-new-part-supports.patch
18 Patch104: 005-additional-part-supports.patch
19 Patch105: 006-xmega-showuage-typo.patch
20 Patch106: 007-ata6289-architecture-correction.patch
21 Patch107: 008-add-usersig-section.patch
22 Patch108: 009-dwarf-relax-fix.patch
23 Patch109: 010-disable-demand-paging.patch
24 Patch110: 200-binutils-avr-size.patch
25 Patch111: 201-binutils-dwarf2-AVRStudio-workaround.patch
26 Patch112: 202-binutils-bug13113.patch
27 Patch113: 400-binutils-atmxt336s.patch
28 Patch114: 401-binutils-atmega48hvf.patch
29 Patch115: 402-binutils-atmega26hvg.patch
30 Patch116: 403-binutils-atmxt224_224e.patch
31 Patch117: 404-binutils-atmxt112sl.patch
32 Patch118: 405-binutils-atmxt540s.patch
33 Patch119: 406-binutils-ata5831.patch
34 Patch120: 407-binutils-attiny841.patch
35 Patch121: 408-binutils-atmegarfa2.patch
36 Patch122: 409-binutils-ata5790n.patch
37 Patch123: 410-binutils-atmega64hve2.patch
38 Patch124: 411-binutils-attiny474.patch
39 Patch125: 412-binutils-atmxts200.patch
40 Patch126: 500-binutils-avrtc530-backported.patch
42 Group: Development/Tools
43 Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
44 # Source0-md5: 33adb18c3048d057ac58d07a3f1adb38
45 URL: http://sources.redhat.com/binutils/
46 BuildRequires: automake
50 BuildRequires: gettext-devel
51 BuildRequires: gcc-c++
52 BuildRequires: perl-tools-pod
53 BuildRequires: texinfo
55 BuildRequires: sparc32
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 %define arch %{_prefix}/%{target}
63 Binutils is a collection of binary utilities, including:
64 - ar - create, modify and extract from archives,
65 - nm - lists symbols from object files,
66 - objcopy - copy and translate object files,
67 - objdump - display information from object files,
68 - ranlib - generate an index for the contents of an archive,
69 - size - list the section sizes of an object or archive file,
70 - strings - list printable strings from files,
71 - strip - discard symbols,
72 - c++filt - a filter for demangling encoded C++ symbols,
73 - addr2line - convert addresses to file and line,
74 - nlmconv - convert object code into an NLM.
76 This package contains the cross version for Atmel AVR.
78 %description -l pl.UTF-8
79 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
80 programów. Znajdują się tutaj między innymi assembler, konsolidator
81 (linker), a także inne narzędzia do manipulowania binarnymi plikami
82 programów i bibliotek.
84 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
87 %setup -q -n binutils-%{version}
117 # Remove hacks for specific autoconf version.
118 echo > config/override.m4
123 for subdir in bfd binutils ld; do
125 %{__aclocal} -I.. -I../bfd -I../config
131 # ldscripts won't be generated properly if SHELL is not bash...
132 CFLAGS="%{rpmcflags}" \
133 LDFLAGS="%{rpmldflags}" \
134 CONFIG_SHELL="/bin/bash" \
142 --prefix=%{_prefix} \
143 --libdir=%{_libdir} \
144 --mandir=%{_mandir} \
145 --infodir=%{_infodir} \
146 --host=%{_target_platform} \
147 --build=%{_target_platform} \
150 # We have to regenerate headers after patching.
151 %{__make} configure-host \
155 %{__make} -C bfd headers \
164 rm -rf $RPM_BUILD_ROOT
165 install -d $RPM_BUILD_ROOT%{_prefix}
168 prefix=$RPM_BUILD_ROOT%{_prefix} \
169 mandir=$RPM_BUILD_ROOT%{_mandir} \
170 infodir=$RPM_BUILD_ROOT%{_infodir} \
171 libdir=$RPM_BUILD_ROOT%{_libdir}
173 # remove these man pages unless we cross-build for win*/netware platforms.
174 # however, this should be done in Makefiles.
175 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
177 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
178 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
179 rm -rf $RPM_BUILD_ROOT%{_infodir}
182 rm -rf $RPM_BUILD_ROOT
185 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_bindir}/%{target}-*
190 %attr(755,root,root) %{arch}/bin/*
194 %{_mandir}/man?/%{target}-*