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.1.830
13 Patch100: 300-binutils-avr-size.patch
14 Patch101: 301-binutils-avr-coff.patch
15 Patch102: 302-binutils-as-dwarf.patch
16 Patch103: 303-binutils-dwarf2-AVRStudio-workaround.patch
17 Patch104: 304-binutils-bug13113.patch
18 Patch105: 305-binutils-new-usb-insns.patch
19 Patch106: 306-binutils-bug15573-AVRTC-419.patch
20 Patch107: 307-binutils-fix-AVRTC-424.patch
21 Patch108: 400-binutils-xmega.patch
22 Patch109: 401-binutils-avrtiny10.patch
23 Patch110: 402-binutils-at90pwm161.patch
24 Patch111: 403-binutils-new-devices.patch
25 Patch112: 404-binutils-attiny1634.patch
26 Patch113: 405-binutils-atmega48pa.patch
27 Patch114: 406-binutils-atxmega_16_32_a4u.patch
28 Patch115: 407-binutils-atxmega64_128_192_256a3u.patch
29 Patch116: 408-binutils-atmegarfr2_a2.patch
30 Patch117: 409-binutils-atmega165pa.patch
31 Patch118: 410-binutils-atxmega384c3.patch
32 Patch119: 412-binutils-atxmega128a4u.patch
33 Patch120: 413-binutils-atxmega64d4.patch
34 Patch121: 414-binutils-atmega164pa_168pa_32a_64a.patch
35 Patch122: 415-binutils-atxmega64_128_b3.patch
36 Patch123: 416-binutils-atxmega64b1.patch
37 Patch124: 417-binutils-atmega_8a_128a_1284.patch
38 Patch125: 418-binutils-atxmega64a4u.patch
39 Patch126: 419-binutils-atxmega128d4.patch
40 Patch127: 420-binutils-atmxt336s.patch
41 Patch128: 421-binutils-atxmega16c4_32c4_128c3_256c3.patch
42 Patch129: 422-binutils-atxmega384d3.patch
43 Patch130: 423-binutils-atmega48hvf.patch
44 Patch131: 424-binutils-atmega26hvg.patch
45 Patch132: 425-binutils-atmxt224_224e.patch
46 Patch133: 426-binutils-atxmega192c3.patch
47 Patch134: 427-binutils-atmxt112sl.patch
48 Patch135: 428-binutils-atxmega64c3.patch
49 Patch136: 429-binutils-ata6285_6286.patch
50 Patch137: 430-binutils-attiny828.patch
51 Patch138: 431-binutils-ata5790_5790N_5795.patch
52 Patch139: 432-binutils-ata5272_5505.patch
53 Patch140: 433-binutils-atmxt540s.patch
54 Patch141: 434-binutils-ata5831.patch
55 Patch142: 435-binutils-attiny841.patch
56 Patch143: 436-binutils-atxmega32_16_8e5.patch
57 Patch144: 500-binutils-bug13789.patch
58 Patch145: 501-binutils-modify-usb-xmega-isa.patch
59 Patch146: 502-binutils-add-config-section-tiny.patch
60 Patch147: 503-binutils-avrtc193-tiny.patch
61 Patch148: 504-binutils-avrtc530-backported.patch
62 Patch149: 505-binutils-avrtc446.patch
64 Group: Development/Tools
65 Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
66 # Source0-md5: ee0f10756c84979622b992a4a61ea3f5
67 URL: http://sources.redhat.com/binutils/
68 BuildRequires: automake
72 BuildRequires: gettext-devel
73 BuildRequires: gcc-c++
74 BuildRequires: perl-tools-pod
75 BuildRequires: texinfo
77 BuildRequires: sparc32
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82 %define arch %{_prefix}/%{target}
85 Binutils is a collection of binary utilities, including:
86 - ar - create, modify and extract from archives,
87 - nm - lists symbols from object files,
88 - objcopy - copy and translate object files,
89 - objdump - display information from object files,
90 - ranlib - generate an index for the contents of an archive,
91 - size - list the section sizes of an object or archive file,
92 - strings - list printable strings from files,
93 - strip - discard symbols,
94 - c++filt - a filter for demangling encoded C++ symbols,
95 - addr2line - convert addresses to file and line,
96 - nlmconv - convert object code into an NLM.
98 This package contains the cross version for Atmel AVR.
100 %description -l pl.UTF-8
101 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
102 programów. Znajdują się tutaj między innymi assembler, konsolidator
103 (linker), a także inne narzędzia do manipulowania binarnymi plikami
104 programów i bibliotek.
106 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
109 %setup -q -n binutils-%{version}
162 # Remove hacks for specific autoconf version.
163 echo > config/override.m4
168 for subdir in bfd binutils ld; do
170 %{__aclocal} -I.. -I../bfd -I../config
176 # ldscripts won't be generated properly if SHELL is not bash...
177 CFLAGS="%{rpmcflags}" \
178 LDFLAGS="%{rpmldflags}" \
179 CONFIG_SHELL="/bin/bash" \
187 --prefix=%{_prefix} \
188 --libdir=%{_libdir} \
189 --mandir=%{_mandir} \
190 --infodir=%{_infodir} \
191 --host=%{_target_platform} \
192 --build=%{_target_platform} \
195 # We have to regenerate headers after patching.
196 %{__make} configure-host \
200 %{__make} -C bfd headers \
209 rm -rf $RPM_BUILD_ROOT
210 install -d $RPM_BUILD_ROOT%{_prefix}
213 prefix=$RPM_BUILD_ROOT%{_prefix} \
214 mandir=$RPM_BUILD_ROOT%{_mandir} \
215 infodir=$RPM_BUILD_ROOT%{_infodir} \
216 libdir=$RPM_BUILD_ROOT%{_libdir}
218 # remove these man pages unless we cross-build for win*/netware platforms.
219 # however, this should be done in Makefiles.
220 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
222 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
223 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
224 rm -rf $RPM_BUILD_ROOT%{_infodir}
227 rm -rf $RPM_BUILD_ROOT
230 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_bindir}/%{target}-*
235 %attr(755,root,root) %{arch}/bin/*
239 %{_mandir}/man?/%{target}-*