#
-# Conditional build:
-%bcond_with bootstrap # for bootstraping
-#
+# Conditional build:
+%bcond_with bootstrap # for bootstraping
+#
Summary: Cross AVR GNU binary utility development utilities - gcc
Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR gcc
Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR gcc
Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR gcc
Summary(tr.UTF-8): GNU geliştirme araçları - AVR gcc
Name: crossavr-gcc
-Version: 4.2.4
+Version: 4.3.3
Release: 1
-Patch0: %{name}-0b-constants.patch
-Patch1: %{name}-attribute_alias.patch
-Patch2: %{name}-bug25672.patch
-Patch3: %{name}-dwarf.patch
-Patch4: %{name}-libiberty-Makefile.in.patch
-Patch5: %{name}-zz-atmega256x.patch
+Patch0: %{name}-attribute_alias.patch
+Patch1: %{name}-dwarf.patch
+Patch2: %{name}-libiberty-Makefile.in.patch
+Patch3: %{name}-bug-11259-v3.patch
+Patch4: %{name}-bug-spill-v4.patch
+Patch5: %{name}-bug-35013.patch
+Patch6: %{name}-libgcc16.patch
+Patch7: %{name}-bug-33009.patch
+Patch8: %{name}-mega256.patch
+Patch9: %{name}-mega256-additional.patch
+Patch10: %{name}-xmega-v9.patch
+Patch11: %{name}-xmega2.patch
+Patch12: %{name}-atmega32m1.patch
+Patch13: %{name}-atmega32c1.patch
+Patch14: %{name}-atmega32u4.patch
+Patch15: %{name}-attiny167.patch
+Patch16: %{name}-attiny13a.patch
+Patch17: %{name}-atmega32u6.patch
+Patch18: %{name}-osmain.patch
+Patch19: %{name}-builtins-v6.patch
Epoch: 1
License: GPL
Group: Development/Languages
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
-# Source0-md5: d79f553e7916ea21c556329eacfeaa16
+# Source0-md5: cc3c5565fdb9ab87a05ddb106ba0bd1f
BuildRequires: /bin/bash
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: crossavr-binutils
BuildRequires: flex
+BuildRequires: gmp-devel >= 4.1
+BuildRequires: mpfr-devel >= 2.3.0
Requires: crossavr-binutils >= 2.15.91.0.2
-%{!?with_boostrap:Requires: crossavr-libc}
+%{!?with_bootstrap:Requires: crossavr-libc}
Requires: gcc-dirs
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch2 -p0
%patch3 -p0
%patch4 -p0
-%patch5 -p1
+%patch5 -p0
+%patch6 -p0
+%patch7 -p0
+%patch8 -p0
+%patch9 -p0
+%patch10 -p0
+%patch11 -p0
+%patch12 -p0
+%patch13 -p0
+%patch14 -p0
+%patch15 -p0
+%patch16 -p0
+%patch17 -p0
+%patch18 -p0
+%patch19 -p0
%build
rm -rf obj-%{target}
%{__make} -C obj-%{target} install \
DESTDIR=$RPM_BUILD_ROOT
+# move fixed includes to proper place
+cp $RPM_BUILD_ROOT%{gcclib}/include-fixed/*.h $RPM_BUILD_ROOT%{gcclib}/include
+
# don't want it here
rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
rm -rf $RPM_BUILD_ROOT%{_infodir}
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/{gcc,cpplib}.mo
-rm -f $RPM_BUILD_ROOT%{gcclib}/include/fixed
-rm -f $RPM_BUILD_ROOT%{gcclib}/include/README
+rm -rf $RPM_BUILD_ROOT%{gcclib}/include-fixed
rm -rf $RPM_BUILD_ROOT%{gcclib}/install-tools
%if 0%{!?debug:1}