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