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 URL: http://sources.redhat.com/binutils/
22 BuildRequires: automake
26 BuildRequires: gettext-devel
27 BuildRequires: texinfo
29 BuildRequires: sparc32
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define arch %{_prefix}/%{target}
37 Binutils is a collection of binary utilities, including:
38 - ar - create, modify and extract from archives,
39 - nm - lists symbols from object files,
40 - objcopy - copy and translate object files,
41 - objdump - display information from object files,
42 - ranlib - generate an index for the contents of an archive,
43 - size - list the section sizes of an object or archive file,
44 - strings - list printable strings from files,
45 - strip - discard symbols,
46 - c++filt - a filter for demangling encoded C++ symbols,
47 - addr2line - convert addresses to file and line,
48 - nlmconv - convert object code into an NLM.
50 This package contains the cross version for Atmel AVR.
52 %description -l pl.UTF-8
53 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
54 programów. Znajdują się tutaj między innymi assembler, konsolidator
55 (linker), a także inne narzędzia do manipulowania binarnymi plikami
56 programów i bibliotek.
58 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
61 %setup -q -n binutils-%{version}
71 cp /usr/share/automake/config.sub .
73 # ldscripts won't be generated properly if SHELL is not bash...
74 CFLAGS="%{rpmcflags}" \
75 LDFLAGS="%{rpmldflags}" \
76 CONFIG_SHELL="/bin/bash" \
85 --infodir=%{_infodir} \
86 --host=%{_target_platform} \
87 --build=%{_target_platform} \
90 # We have to regenerate headers after patching.
91 %{__make} configure-host \
95 %{__make} -C bfd headers \
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT%{_prefix}
108 prefix=$RPM_BUILD_ROOT%{_prefix} \
109 mandir=$RPM_BUILD_ROOT%{_mandir} \
110 infodir=$RPM_BUILD_ROOT%{_infodir} \
111 libdir=$RPM_BUILD_ROOT%{_libdir}
113 %{__make} install_libbfd DESTDIR=$RPM_BUILD_ROOT
116 %{__make} install_libopcodes DESTDIR=$RPM_BUILD_ROOT
119 # remove these man pages unless we cross-build for win*/netware platforms.
120 # however, this should be done in Makefiles.
121 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
123 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
124 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
125 rm -rf $RPM_BUILD_ROOT%{_infodir}
128 rm -rf $RPM_BUILD_ROOT
131 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/%{target}-*
136 %attr(755,root,root) %{arch}/bin/*
140 %{_mandir}/man?/%{target}-*