1 Summary: Cross AVR GNU binary utility development utilities - gcc
2 Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR gcc
3 Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR gcc
4 Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR - gcc
5 Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR gcc
6 Summary(tr.UTF-8): GNU geliştirme araçları - AVR gcc
10 Patch0: %{name}-0b-constants.patch
11 Patch1: %{name}-attribute_alias.patch
12 Patch2: %{name}-bug25672.patch
13 Patch3: %{name}-dwarf.patch
14 Patch4: %{name}-libiberty-Makefile.in.patch
15 Patch5: %{name}-newdevices.patch
16 Patch6: %{name}-zz-atmega256x.patch
19 Group: Development/Languages
20 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
21 # Source0-md5: a4a3eb15c96030906d8494959eeda23c
22 BuildRequires: /bin/bash
23 BuildRequires: autoconf
25 BuildRequires: crossavr-binutils
27 Requires: crossavr-binutils
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define arch %{_prefix}/%{target}
33 %define gccarch %{_libdir}/gcc/%{target}
34 %define gcclib %{_libdir}/gcc/%{target}/%{version}
35 %define _noautostrip .*%{gcclib}.*/libgc.*\\.a
38 This package contains a cross-gcc which allows the creation of
39 binaries to be run on Atmel AVR on other machines.
41 %description -l de.UTF-8
42 Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem
43 anderem Rechner Code für Atmel AVR zu generieren.
45 %description -l pl.UTF-8
46 Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych
47 maszynach binariów do uruchamiania na Atmel AVR.
50 Summary: C++ support for avr-gcc
51 Summary(pl.UTF-8): Obsługa C++ dla avr-gcc
52 Group: Development/Languages
53 Requires: %{name} = %{epoch}:%{version}-%{release}
56 This package adds C++ support to the GNU Compiler Collection for AVR.
58 %description c++ -l pl.UTF-8
59 Ten pakiet dodaje obsługę C++ do kompilatora gcc dla AVR.
62 %setup -q -n gcc-%{version}
73 install -d obj-%{target}
76 CFLAGS="%{rpmcflags}" \
77 CXXFLAGS="%{rpmcflags}" \
81 --infodir=%{_infodir} \
85 --libexecdir=%{_libdir} \
88 --enable-languages="c,c++" \
95 --build=%{_target_platform} \
96 --host=%{_target_platform} \
99 %{__make} CFLAGS_FOR_TARGET="-Os"
102 rm -rf $RPM_BUILD_ROOT
104 %{__make} -C obj-%{target} install \
105 DESTDIR=$RPM_BUILD_ROOT
108 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
109 rm -rf $RPM_BUILD_ROOT%{_infodir}
110 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
111 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
112 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
113 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/{gcc,cpplib}.mo
114 rm -f $RPM_BUILD_ROOT%{gcclib}/include/fixed
115 rm -f $RPM_BUILD_ROOT%{gcclib}/include/README
116 rm -rf $RPM_BUILD_ROOT%{gcclib}/install-tools
119 # strip target libraries
120 %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}{,/avr*}/libg*.a
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_bindir}/%{target}-gcc*
129 %attr(755,root,root) %{_bindir}/%{target}-cpp
130 %attr(755,root,root) %{_bindir}/%{target}-gcov
134 %attr(755,root,root) %{gcclib}/cc1
135 %attr(755,root,root) %{gcclib}/collect2
138 %dir %{gcclib}/include
139 %{gcclib}/include/*.h
140 %{_mandir}/man1/%{target}-cpp.1*
141 %{_mandir}/man1/%{target}-gcc.1*
142 %{_mandir}/man1/%{target}-gcov.1*
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/%{target}-g++
147 %attr(755,root,root) %{_bindir}/%{target}-c++
148 %attr(755,root,root) %{gcclib}/cc1plus
149 %{_mandir}/man1/%{target}-g++.1*