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: 9cdfb9d6ec0578c166d3beae5e15c4e5
14 Patch0: %{name}-avr-size.patch
15 Patch1: %{name}-avr-coff.patch
16 Patch2: %{name}-new-sections.patch
17 Patch3: %{name}-xmega.patch
18 Patch4: %{name}-new-devices.patch
19 URL: http://sources.redhat.com/binutils/
20 BuildRequires: automake
24 BuildRequires: gettext-devel
25 BuildRequires: perl-tools-pod
26 BuildRequires: texinfo
28 BuildRequires: sparc32
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define arch %{_prefix}/%{target}
36 Binutils is a collection of binary utilities, including:
37 - ar - create, modify and extract from archives,
38 - nm - lists symbols from object files,
39 - objcopy - copy and translate object files,
40 - objdump - display information from object files,
41 - ranlib - generate an index for the contents of an archive,
42 - size - list the section sizes of an object or archive file,
43 - strings - list printable strings from files,
44 - strip - discard symbols,
45 - c++filt - a filter for demangling encoded C++ symbols,
46 - addr2line - convert addresses to file and line,
47 - nlmconv - convert object code into an NLM.
49 This package contains the cross version for Atmel AVR.
51 %description -l pl.UTF-8
52 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
53 programów. Znajdują się tutaj między innymi assembler, konsolidator
54 (linker), a także inne narzędzia do manipulowania binarnymi plikami
55 programów i bibliotek.
57 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
60 %setup -q -n binutils-%{version}
68 cp /usr/share/automake/config.sub .
70 # ldscripts won't be generated properly if SHELL is not bash...
71 CFLAGS="%{rpmcflags}" \
72 LDFLAGS="%{rpmldflags}" \
73 CONFIG_SHELL="/bin/bash" \
82 --infodir=%{_infodir} \
83 --host=%{_target_platform} \
84 --build=%{_target_platform} \
87 # We have to regenerate headers after patching.
88 %{__make} configure-host \
92 %{__make} -C bfd headers \
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{_prefix}
105 prefix=$RPM_BUILD_ROOT%{_prefix} \
106 mandir=$RPM_BUILD_ROOT%{_mandir} \
107 infodir=$RPM_BUILD_ROOT%{_infodir} \
108 libdir=$RPM_BUILD_ROOT%{_libdir}
110 # remove these man pages unless we cross-build for win*/netware platforms.
111 # however, this should be done in Makefiles.
112 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
114 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
115 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
116 rm -rf $RPM_BUILD_ROOT%{_infodir}
119 rm -rf $RPM_BUILD_ROOT
122 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_bindir}/%{target}-*
127 %attr(755,root,root) %{arch}/bin/*
131 %{_mandir}/man?/%{target}-*