# # 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(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla 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 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 Epoch: 1 License: GPL Group: Development/Languages Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 # Source0-md5: d79f553e7916ea21c556329eacfeaa16 BuildRequires: /bin/bash BuildRequires: autoconf BuildRequires: bison BuildRequires: crossavr-binutils BuildRequires: flex Requires: crossavr-binutils >= 2.15.91.0.2 %{!?with_boostrap:Requires: crossavr-libc} Requires: gcc-dirs BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define target avr %define arch %{_prefix}/%{target} %define gccarch %{_libdir}/gcc/%{target} %define gcclib %{_libdir}/gcc/%{target}/%{version} %define _noautostrip .*%{gcclib}.*/libgc.*\\.a %description This package contains a cross-gcc which allows the creation of binaries to be run on Atmel AVR on other machines. %description -l de.UTF-8 Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem anderem Rechner Code für Atmel AVR zu generieren. %description -l pl.UTF-8 Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych maszynach binariów do uruchamiania na Atmel AVR. %package c++ Summary: C++ support for avr-gcc Summary(pl.UTF-8): Obsługa C++ dla avr-gcc Group: Development/Languages Requires: %{name} = %{epoch}:%{version}-%{release} %description c++ This package adds C++ support to the GNU Compiler Collection for AVR. %description c++ -l pl.UTF-8 Ten pakiet dodaje obsługę C++ do kompilatora gcc dla AVR. %prep %setup -q -n gcc-%{version} %patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p1 %build rm -rf obj-%{target} install -d obj-%{target} cd obj-%{target} CFLAGS="%{rpmcflags}" \ CXXFLAGS="%{rpmcflags}" \ TEXCONFIG=false \ ../configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --bindir=%{_bindir} \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --disable-shared \ --disable-libssp \ --enable-languages="c,c++" \ --with-dwarf2 \ --with-gnu-as \ --with-gnu-ld \ --with-system-zlib \ --with-multilib \ --without-x \ --build=%{_target_platform} \ --host=%{_target_platform} \ --target=%{target} %{__make} CFLAGS_FOR_TARGET="-Os" %install rm -rf $RPM_BUILD_ROOT %{__make} -C obj-%{target} install \ DESTDIR=$RPM_BUILD_ROOT # 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/fsf-funding.7 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}/install-tools %if 0%{!?debug:1} # strip target libraries %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}{,/avr*}/libg*.a %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/%{target}-gcc* %attr(755,root,root) %{_bindir}/%{target}-cpp %attr(755,root,root) %{_bindir}/%{target}-gcov %dir %{gccarch} %dir %{gcclib} %attr(755,root,root) %{gcclib}/cc1 %attr(755,root,root) %{gcclib}/collect2 %{gcclib}/libg*.a %{gcclib}/%{target}* %dir %{gcclib}/include %{gcclib}/include/*.h %{_mandir}/man1/%{target}-cpp.1* %{_mandir}/man1/%{target}-gcc.1* %{_mandir}/man1/%{target}-gcov.1* %files c++ %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/%{target}-g++ %attr(755,root,root) %{_bindir}/%{target}-c++ %attr(755,root,root) %{gcclib}/cc1plus %{_mandir}/man1/%{target}-g++.1*