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 Group: Development/Tools
12 Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5: 09a8c5821a2dfdbb20665bc0bd680791
14 Patch0: %{name}-avr-size.patch
15 Patch1: %{name}-avr-coff.patch
16 Patch2: %{name}-new-sections.patch
17 Patch3: %{name}-data-origin.patch
18 Patch4: %{name}-xmega.patch
19 Patch5: %{name}-xmega2.patch
20 Patch6: %{name}-atmega32u6.patch
21 Patch7: %{name}-gcc44.patch
22 URL: http://sources.redhat.com/binutils/
23 BuildRequires: automake
27 BuildRequires: gettext-devel
28 BuildRequires: texinfo
30 BuildRequires: sparc32
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define arch %{_prefix}/%{target}
38 Binutils is a collection of binary utilities, including:
39 - ar - create, modify and extract from archives,
40 - nm - lists symbols from object files,
41 - objcopy - copy and translate object files,
42 - objdump - display information from object files,
43 - ranlib - generate an index for the contents of an archive,
44 - size - list the section sizes of an object or archive file,
45 - strings - list printable strings from files,
46 - strip - discard symbols,
47 - c++filt - a filter for demangling encoded C++ symbols,
48 - addr2line - convert addresses to file and line,
49 - nlmconv - convert object code into an NLM.
51 This package contains the cross version for Atmel AVR.
53 %description -l pl.UTF-8
54 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
55 programów. Znajdują się tutaj między innymi assembler, konsolidator
56 (linker), a także inne narzędzia do manipulowania binarnymi plikami
57 programów i bibliotek.
59 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
62 %setup -q -n binutils-%{version}
73 cp /usr/share/automake/config.sub .
75 # ldscripts won't be generated properly if SHELL is not bash...
76 CFLAGS="%{rpmcflags}" \
77 LDFLAGS="%{rpmldflags}" \
78 CONFIG_SHELL="/bin/bash" \
87 --infodir=%{_infodir} \
88 --host=%{_target_platform} \
89 --build=%{_target_platform} \
92 # We have to regenerate headers after patching.
93 %{__make} configure-host \
97 %{__make} -C bfd headers \
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_prefix}
110 prefix=$RPM_BUILD_ROOT%{_prefix} \
111 mandir=$RPM_BUILD_ROOT%{_mandir} \
112 infodir=$RPM_BUILD_ROOT%{_infodir} \
113 libdir=$RPM_BUILD_ROOT%{_libdir}
115 %{__make} install_libbfd DESTDIR=$RPM_BUILD_ROOT
118 %{__make} install_libopcodes DESTDIR=$RPM_BUILD_ROOT
121 # remove these man pages unless we cross-build for win*/netware platforms.
122 # however, this should be done in Makefiles.
123 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
125 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
126 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
127 rm -rf $RPM_BUILD_ROOT%{_infodir}
130 rm -rf $RPM_BUILD_ROOT
133 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/%{target}-*
138 %attr(755,root,root) %{arch}/bin/*
142 %{_mandir}/man?/%{target}-*