Summary: Cross AVR GNU binary utility development utilities - binutils
-Summary(es): Utilitarios para desarrollo de binarios de la GNU - AVR binutils
-Summary(fr): Utilitaires de développement binaire de GNU - AVR binutils
-Summary(pl): Skro¶ne narzêdzia programistyczne GNU dla AVR - binutils
-Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - AVR binutils
-Summary(tr): GNU geliþtirme araçlarý - AVR binutils
+Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR binutils
+Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR binutils
+Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR - binutils
+Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR binutils
+Summary(tr.UTF-8): GNU geliştirme araçları - AVR binutils
Name: crossavr-binutils
-Version: 2.14.90.0.8
+Version: 2.19.1
Release: 1
License: GPL
Group: Development/Tools
-Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
-# Source0-md5: 3e28792a585e14b57838cd24130a24dd
+Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
+# Source0-md5: 09a8c5821a2dfdbb20665bc0bd680791
+Patch0: %{name}-avr-size.patch
+Patch1: %{name}-avr-coff.patch
+Patch2: %{name}-new-sections.patch
+Patch3: %{name}-data-origin.patch
+Patch4: %{name}-xmega.patch
+Patch5: %{name}-xmega2.patch
+Patch6: %{name}-atmega32u6.patch
+Patch7: %{name}-gcc44.patch
URL: http://sources.redhat.com/binutils/
+BuildRequires: automake
BuildRequires: bash
BuildRequires: bison
BuildRequires: flex
BuildRequires: gettext-devel
-BuildRequires: perl-devel
+BuildRequires: texinfo
%ifarch sparc sparc32
BuildRequires: sparc32
%endif
This package contains the cross version for Atmel AVR.
-%description -l pl
-Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
-programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
-(linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
-programów i bibliotek.
+%description -l pl.UTF-8
+Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
+programów. Znajdują się tutaj między innymi assembler, konsolidator
+(linker), a także inne narzędzia do manipulowania binarnymi plikami
+programów i bibliotek.
-Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla Atmel AVR.
+Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
%prep
%setup -q -n binutils-%{version}
+%patch0 -p0
+%patch1 -p0
+%patch2 -p0
+%patch3 -p0
+%patch4 -p0
+%patch5 -p0
+%patch6 -p0
+%patch7 -p1
%build
+cp /usr/share/automake/config.sub .
+
# ldscripts won't be generated properly if SHELL is not bash...
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}" \
./configure \
--disable-shared \
--prefix=%{_prefix} \
- --infodir=%{_infodir} \
+ --libdir=%{_libdir} \
--mandir=%{_mandir} \
+ --infodir=%{_infodir} \
+ --host=%{_target_platform} \
+ --build=%{_target_platform} \
--target=%{target}
+# We have to regenerate headers after patching.
+%{__make} configure-host \
+ tooldir=%{_prefix} \
+ EXEEXT=""
+
+%{__make} -C bfd headers \
+ tooldir=%{_prefix} \
+ EXEEXT=""
+
%{__make} all \
tooldir=%{_prefix} \
EXEEXT=""
%{__make} install \
prefix=$RPM_BUILD_ROOT%{_prefix} \
mandir=$RPM_BUILD_ROOT%{_mandir} \
- infodir=$RPM_BUILD_ROOT%{_infodir}
+ infodir=$RPM_BUILD_ROOT%{_infodir} \
+ libdir=$RPM_BUILD_ROOT%{_libdir}
+cd bfd
+%{__make} install_libbfd DESTDIR=$RPM_BUILD_ROOT
+cd ..
+cd opcodes
+%{__make} install_libopcodes DESTDIR=$RPM_BUILD_ROOT
+cd ..
+
+# remove these man pages unless we cross-build for win*/netware platforms.
+# however, this should be done in Makefiles.
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
+
+rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
+rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
+rm -rf $RPM_BUILD_ROOT%{_infodir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README
%attr(755,root,root) %{_bindir}/%{target}-*
+%dir %{arch}
%dir %{arch}/bin
%attr(755,root,root) %{arch}/bin/*
%dir %{arch}/lib