1 Summary: Cross AVR32 GNU binary utility development utilities - binutils
2 Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR32 binutils
3 Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR32 binutils
4 Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR32 - binutils
5 Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR32 binutils
6 Summary(tr.UTF-8): GNU geliştirme araçları - AVR32 binutils
7 Name: crossavr32-binutils
11 Group: Development/Tools
12 Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5: e26e2e06b6e4bf3acf1dc8688a94c0d1
14 #based on http://www.avr32linux.org/twiki/bin/viewfile/Main/DevelopmentTools?rev=1;filename=500-avr32.patch.gz
16 #http://www.avr32linux.org/twiki/bin/viewfile/Main/DevelopmentTools?rev=1;filename=501-avr32-sreldyn-fix.patch.gz
17 Patch1: %{name}-sreldyn-fix.patch
18 #http://www.avr32linux.org/twiki/bin/viewfile/Main/DevelopmentTools?rev=1;filename=502-avr32-bfd-dont-allow-direct-refs-to-bss.patch.gz
19 Patch2: %{name}-bfd-dont-allow-direct-refs-to-bss.patch
20 URL: http://sources.redhat.com/binutils/
21 BuildRequires: autoconf
22 BuildRequires: automake
26 BuildRequires: gettext-tools
28 BuildRequires: sparc32
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define target avr32-pld-linux
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,
54 konsolidator (linker), a także inne narzędzia do manipulowania
55 binarnymi plikami programów i bibliotek.
57 Ten pakiet zawiera wersję skrośną generującą kod dla platformy Atmel
61 %setup -q -n binutils-%{version}
68 cp /usr/share/automake/config.sub .
70 for i in bfd binutils gas ld opcodes
79 # ldscripts won't be generated properly if SHELL is not bash...
80 CFLAGS="%{rpmcflags}" \
81 LDFLAGS="%{rpmldflags}" \
82 CONFIG_SHELL="/bin/bash" \
91 --infodir=%{_infodir} \
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT%{_prefix}
103 prefix=$RPM_BUILD_ROOT%{_prefix} \
104 mandir=$RPM_BUILD_ROOT%{_mandir} \
105 infodir=$RPM_BUILD_ROOT%{_infodir} \
106 libdir=$RPM_BUILD_ROOT%{_libdir}
108 # remove these man pages unless we cross-build for win*/netware platforms.
109 # however, this should be done in Makefiles.
110 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
112 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
113 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
114 rm -rf $RPM_BUILD_ROOT%{_infodir}
117 rm -rf $RPM_BUILD_ROOT
120 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_bindir}/%{target}-*
125 %attr(755,root,root) %{arch}/bin/*
129 %{_mandir}/man?/%{target}-*
130 %{_prefix}/i686-pc-linux-gnu/%{target}