]>
Commit | Line | Data |
---|---|---|
281bac7a | 1 | Summary: Cross AVR GNU binary utility development utilities - gcc |
c7d51c5d ER |
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 | |
40ea5eb2 | 7 | Name: crossavr-gcc |
7e1921e9 | 8 | Version: 4.1.1 |
fb147daf | 9 | Release: 1 |
40ea5eb2 WK |
10 | Epoch: 1 |
11 | License: GPL | |
12 | Group: Development/Languages | |
6b88a121 | 13 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
7e1921e9 | 14 | # Source0-md5: ad9f97a4d04982ccf4fd67cb464879f3 |
40ea5eb2 WK |
15 | BuildRequires: autoconf |
16 | BuildRequires: /bin/bash | |
fdd61bcf JB |
17 | BuildRequires: bison |
18 | BuildRequires: crossavr-binutils | |
19 | BuildRequires: flex | |
40ea5eb2 | 20 | Requires: crossavr-binutils |
c2bc48fa | 21 | Requires: gcc-dirs |
40ea5eb2 WK |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
40ea5eb2 | 24 | %define target avr |
40ea5eb2 | 25 | %define arch %{_prefix}/%{target} |
df3c6f23 JB |
26 | %define gccarch %{_libdir}/gcc/%{target} |
27 | %define gcclib %{_libdir}/gcc/%{target}/%{version} | |
ef8212dd | 28 | %define _noautostrip .*%{gcclib}.*/libgc.*\\.a |
40ea5eb2 WK |
29 | |
30 | %description | |
31 | This package contains a cross-gcc which allows the creation of | |
7f5526fe | 32 | binaries to be run on Atmel AVR on other machines. |
40ea5eb2 | 33 | |
76648510 | 34 | %description -l de.UTF-8 |
35 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
36 | anderem Rechner Code für Atmel AVR zu generieren. | |
40ea5eb2 | 37 | |
76648510 | 38 | %description -l pl.UTF-8 |
39 | Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych | |
40 | maszynach binariów do uruchamiania na Atmel AVR. | |
40ea5eb2 | 41 | |
1c790698 | 42 | %package c++ |
fdd61bcf | 43 | Summary: C++ support for avr-gcc |
c7d51c5d | 44 | Summary(pl.UTF-8): Obsługa C++ dla avr-gcc |
fdd61bcf | 45 | Group: Development/Languages |
aaeaf91a | 46 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1c790698 | 47 | |
48 | %description c++ | |
49 | This package adds C++ support to the GNU Compiler Collection for AVR. | |
50 | ||
76648510 | 51 | %description c++ -l pl.UTF-8 |
52 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla AVR. | |
1c790698 | 53 | |
40ea5eb2 WK |
54 | %prep |
55 | %setup -q -n gcc-%{version} | |
56 | ||
57 | %build | |
58 | rm -rf obj-%{target} | |
59 | install -d obj-%{target} | |
60 | cd obj-%{target} | |
61 | ||
62 | CFLAGS="%{rpmcflags}" \ | |
63 | CXXFLAGS="%{rpmcflags}" \ | |
fdd61bcf JB |
64 | TEXCONFIG=false \ |
65 | ../configure \ | |
40ea5eb2 WK |
66 | --prefix=%{_prefix} \ |
67 | --infodir=%{_infodir} \ | |
68 | --mandir=%{_mandir} \ | |
df3c6f23 JB |
69 | --bindir=%{_bindir} \ |
70 | --libdir=%{_libdir} \ | |
71 | --libexecdir=%{_libdir} \ | |
40ea5eb2 | 72 | --disable-shared \ |
69b7b918 | 73 | --disable-libssp \ |
1c790698 | 74 | --enable-languages="c,c++" \ |
40ea5eb2 WK |
75 | --with-gnu-as \ |
76 | --with-gnu-ld \ | |
77 | --with-system-zlib \ | |
78 | --with-multilib \ | |
79 | --without-x \ | |
ef8212dd JB |
80 | --build=%{_target_platform} \ |
81 | --host=%{_target_platform} \ | |
40ea5eb2 WK |
82 | --target=%{target} |
83 | ||
69b7b918 | 84 | %{__make} CFLAGS_FOR_TARGET="-Os" |
40ea5eb2 WK |
85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
40ea5eb2 | 88 | |
ef8212dd | 89 | %{__make} -C obj-%{target} install \ |
40ea5eb2 WK |
90 | DESTDIR=$RPM_BUILD_ROOT |
91 | ||
ef8212dd JB |
92 | # don't want it here |
93 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
40ea5eb2 | 94 | |
ef8212dd | 95 | %if 0%{!?debug:1} |
df3c6f23 JB |
96 | # strip target libraries |
97 | %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}{,/avr*}/libg*.a | |
98 | %endif | |
1c790698 | 99 | |
40ea5eb2 WK |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
1c790698 | 103 | %files |
40ea5eb2 | 104 | %defattr(644,root,root,755) |
1c790698 | 105 | %attr(755,root,root) %{_bindir}/%{target}-gcc* |
106 | %attr(755,root,root) %{_bindir}/%{target}-cpp | |
107 | %attr(755,root,root) %{_bindir}/%{target}-gcov | |
40ea5eb2 WK |
108 | %dir %{gccarch} |
109 | %dir %{gcclib} | |
110 | %attr(755,root,root) %{gcclib}/cc1 | |
40ea5eb2 | 111 | %attr(755,root,root) %{gcclib}/collect2 |
df3c6f23 | 112 | %{gcclib}/libg*.a |
f1442436 | 113 | %{gcclib}/%{target}* |
40ea5eb2 WK |
114 | %dir %{gcclib}/include |
115 | %{gcclib}/include/*.h | |
df3c6f23 | 116 | %{_mandir}/man1/%{target}-cpp.1* |
40ea5eb2 | 117 | %{_mandir}/man1/%{target}-gcc.1* |
df3c6f23 | 118 | %{_mandir}/man1/%{target}-gcov.1* |
1c790698 | 119 | |
120 | %files c++ | |
121 | %defattr(644,root,root,755) | |
122 | %attr(755,root,root) %{_bindir}/%{target}-g++ | |
123 | %attr(755,root,root) %{_bindir}/%{target}-c++ | |
124 | %attr(755,root,root) %{gcclib}/cc1plus | |
125 | %{_mandir}/man1/%{target}-g++.1* |