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.3.1.481.
12 Patch100: 300-binutils-2.20.1-avr-size.patch
13 Patch101: 301-binutils-2.20.1-avr-coff.patch
14 Patch102: 302-binutils-2.20.1-new-sections.patch
15 Patch103: 303-binutils-2.20.1-as-dwarf.patch
16 Patch104: 304-binutils-2.20.1-dwarf2-AVRStudio-workaround.patch
17 Patch105: 305-binutils-2.20.1-assembler-options.patch
18 Patch106: 400-binutils-2.20.1-xmega.patch
19 Patch107: 401-binutils-2.20.1-new-devices.patch
20 Patch108: 402-binutils-2.20.1-avrtiny10.patch
21 Patch109: 403-binutils-2.20.1-xmega128a1u-64a1u.patch
22 Patch110: 404-binutils-2.20.1-atxmega32x1.patch
23 Patch111: 405-binutils-2.20.1-atxmega128b1.patch
24 Patch112: 406-binutils-2.20.1-atxmega256a3bu.patch
25 Patch113: 407-binutils-2.20.1-at90pwm161.patch
26 Patch114: 408-binutils-2.20.1-atmega16hvb-32hvb.patch
27 Patch115: 409-binutils-2.20.1-atmega32_5_50_90_pa.patch
28 Patch116: 410-binutils-2.20.1-attiny1634.patch
29 Patch117: 411-binutils-2.20.1-atmega48pa.patch
30 Patch118: 412-binutils-2.20.1-atxmega_16_32_a4u.patch
31 Patch119: 413-binutils-2.20.1-atxmega64_128_192_256a3u.patch
32 Patch120: 414-binutils-2.20.1-atmegarfr2_a2.patch
33 Patch121: 415-binutils-2.20.1-atmega165pa.patch
34 Patch122: 416-binutils-2.20.1-atxmega384c3.patch
35 Patch123: 417-binutils-2.20.1-attiny80.patch
36 Patch124: 418-binutils-2.20.1-atxmega128a4u.patch
37 Patch125: 419-binutils-2.20.1-atxmega64d4.patch
38 Patch126: 420-binutils-2.20.1-atmega164pa_168pa_32a_64a.patch
39 Patch127: 421-binutils-2.20.1-atxmega64_128_b3.patch
40 Patch128: 422-binutils-2.20.1-atxmega64b1.patch
41 Patch129: 423-binutils-2.20.1-atmega_8a_128a_1284.patch
42 Patch130: 424-binutils-2.20.1-atxmega64a4u.patch
43 Patch131: 425-binutils-2.20.1-atxmega128d4.patch
44 Patch132: 426-binutils-2.20.1-atmxt336s.patch
45 Patch133: 427-binutils-2.20.1-atxmega16c4_32c4_128c3_256c3.patch
46 Patch134: 428-binutils-2.20.1-atxmega384d3.patch
47 Patch135: 429-binutils-2.20.1-atmega48hvf.patch
48 Patch136: 430-binutils-2.20.1-atmega26hvg.patch
49 Patch137: 431-binutils-2.20.1-atmxt224_224e.patch
50 Patch138: 431-binutils-2.20.1-atxmega192c3.patch
51 Patch139: 500-binutils-2.20.1-bug13789.patch
52 Patch140: 501-binutils-2.20.1-bug13113.patch
54 Group: Development/Tools
55 Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
56 # Source0-md5: 2b9dc8f2b7dbd5ec5992c6e29de0b764
57 URL: http://sources.redhat.com/binutils/
58 BuildRequires: automake
62 BuildRequires: gettext-devel
63 BuildRequires: perl-tools-pod
64 BuildRequires: texinfo
66 BuildRequires: sparc32
68 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71 %define arch %{_prefix}/%{target}
74 Binutils is a collection of binary utilities, including:
75 - ar - create, modify and extract from archives,
76 - nm - lists symbols from object files,
77 - objcopy - copy and translate object files,
78 - objdump - display information from object files,
79 - ranlib - generate an index for the contents of an archive,
80 - size - list the section sizes of an object or archive file,
81 - strings - list printable strings from files,
82 - strip - discard symbols,
83 - c++filt - a filter for demangling encoded C++ symbols,
84 - addr2line - convert addresses to file and line,
85 - nlmconv - convert object code into an NLM.
87 This package contains the cross version for Atmel AVR.
89 %description -l pl.UTF-8
90 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
91 programów. Znajdują się tutaj między innymi assembler, konsolidator
92 (linker), a także inne narzędzia do manipulowania binarnymi plikami
93 programów i bibliotek.
95 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
98 %setup -q -n binutils-%{version}
142 cp /usr/share/automake/config.sub .
144 # ldscripts won't be generated properly if SHELL is not bash...
145 CFLAGS="%{rpmcflags}" \
146 LDFLAGS="%{rpmldflags}" \
147 CONFIG_SHELL="/bin/bash" \
154 --prefix=%{_prefix} \
155 --libdir=%{_libdir} \
156 --mandir=%{_mandir} \
157 --infodir=%{_infodir} \
158 --host=%{_target_platform} \
159 --build=%{_target_platform} \
162 # We have to regenerate headers after patching.
163 %{__make} configure-host \
167 %{__make} -C bfd headers \
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT%{_prefix}
180 prefix=$RPM_BUILD_ROOT%{_prefix} \
181 mandir=$RPM_BUILD_ROOT%{_mandir} \
182 infodir=$RPM_BUILD_ROOT%{_infodir} \
183 libdir=$RPM_BUILD_ROOT%{_libdir}
185 # remove these man pages unless we cross-build for win*/netware platforms.
186 # however, this should be done in Makefiles.
187 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
189 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
190 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
191 rm -rf $RPM_BUILD_ROOT%{_infodir}
194 rm -rf $RPM_BUILD_ROOT
197 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_bindir}/%{target}-*
202 %attr(755,root,root) %{arch}/bin/*
206 %{_mandir}/man?/%{target}-*