]>
Commit | Line | Data |
---|---|---|
59e47a65 | 1 | Summary: Cross MIPSel GNU binary utility development utilities - gcc |
32624514 ER |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - MIPSel gcc |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - MIPSel gcc | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla MIPSel - gcc | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - MIPSel gcc | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - MIPSel gcc | |
2dae1526 | 7 | Name: crossmipsel-gcc |
decdf5d1 | 8 | Version: 3.4.6 |
b3ab82d7 | 9 | Release: 1 |
2dae1526 MM |
10 | Epoch: 1 |
11 | License: GPL | |
12 | Group: Development/Languages | |
ffbf663f | 13 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
decdf5d1 | 14 | # Source0-md5: 4a21ac777d4b5617283ce488b808da7b |
2a7af6b4 JB |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
17 | BuildRequires: bison | |
b9c2815d | 18 | BuildRequires: crossmipsel-binutils >= 2.15.91.0.1-2 |
2dae1526 | 19 | BuildRequires: flex |
2dae1526 | 20 | BuildRequires: /bin/bash |
b9c2815d | 21 | Requires: crossmipsel-binutils >= 2.15.91.0.1-2 |
c5479e08 | 22 | Requires: gcc-dirs |
2dae1526 MM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
2dae1526 | 25 | %define target mipsel-pld-linux |
2dae1526 | 26 | %define arch %{_prefix}/%{target} |
decdf5d1 MP |
27 | %define gccarch %{_libdir}/gcc/%{target} |
28 | %define gcclib %{gccarch}/%{version} | |
29 | ||
30 | ||
31 | %define _noautostrip .*/libgc.*\\.a | |
2dae1526 MM |
32 | |
33 | %description | |
86ce9baf TP |
34 | This package contains a cross-gcc which allows the creation of |
35 | binaries to be run on little-endian Linux-MIPS (architecture | |
b9c2815d | 36 | "mipsel-linux") on other machines. |
86ce9baf | 37 | |
9b2db8e4 | 38 | %description -l de.UTF-8 |
39 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
40 | anderem Rechner Code für Linux-MIPS (auf little-Endian-Rechnern) zu | |
86ce9baf TP |
41 | generieren. |
42 | ||
9b2db8e4 | 43 | %description -l pl.UTF-8 |
44 | Ten pakiet zawiera skrośny gcc pozwalający na tworzenie na innych | |
45 | maszynach binariów do uruchamiania na little-endian MIPS (architektura | |
b9c2815d | 46 | "mipsel-linux"). |
2dae1526 MM |
47 | |
48 | %prep | |
49 | %setup -q -n gcc-%{version} | |
50 | ||
51 | %build | |
8cbae788 | 52 | cp -f /usr/share/automake/config.sub . |
86ce9baf | 53 | rm -rf obj-%{target} |
2dae1526 | 54 | install -d obj-%{target} |
86ce9baf | 55 | cd obj-%{target} |
2dae1526 MM |
56 | |
57 | CFLAGS="%{rpmcflags}" \ | |
58 | CXXFLAGS="%{rpmcflags}" \ | |
b9c2815d JB |
59 | TEXCONFIG=false \ |
60 | ../configure \ | |
2dae1526 MM |
61 | --prefix=%{_prefix} \ |
62 | --infodir=%{_infodir} \ | |
63 | --mandir=%{_mandir} \ | |
7262ec7b JB |
64 | --bindir=%{_bindir} \ |
65 | --libdir=%{_libdir} \ | |
66 | --libexecdir=%{_libdir} \ | |
b9c2815d | 67 | --includedir=%{arch}/include \ |
2dae1526 | 68 | --disable-shared \ |
b9c2815d JB |
69 | --disable-threads \ |
70 | --enable-languages="c" \ | |
2dae1526 MM |
71 | --with-gnu-as \ |
72 | --with-gnu-ld \ | |
decdf5d1 | 73 | --with-demangler-in-ld \ |
2dae1526 | 74 | --with-system-zlib \ |
decdf5d1 MP |
75 | --disable-multilib \ |
76 | --disable-nls \ | |
2dae1526 | 77 | --without-x \ |
b9c2815d JB |
78 | --build=%{_target_platform} \ |
79 | --host=%{_target_platform} \ | |
2dae1526 MM |
80 | --target=%{target} |
81 | ||
b9c2815d | 82 | %{__make} |
86ce9baf | 83 | |
2dae1526 MM |
84 | %install |
85 | rm -rf $RPM_BUILD_ROOT | |
2dae1526 | 86 | |
b9c2815d | 87 | %{__make} -C obj-%{target} install \ |
2dae1526 MM |
88 | DESTDIR=$RPM_BUILD_ROOT |
89 | ||
b9c2815d | 90 | # don't want target's lib in this place |
2dae1526 MM |
91 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a |
92 | ||
97f249bf | 93 | %if 0%{!?debug:1} |
2dae1526 | 94 | %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}/libgcc.a |
97f249bf | 95 | %endif |
2dae1526 MM |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
2dae1526 | 102 | %attr(755,root,root) %{_bindir}/%{target}-cpp |
b9c2815d JB |
103 | %attr(755,root,root) %{_bindir}/%{target}-gcc |
104 | %attr(755,root,root) %{_bindir}/%{target}-gcc-%{version} | |
105 | %attr(755,root,root) %{_bindir}/%{target}-gccbug | |
106 | %attr(755,root,root) %{_bindir}/%{target}-gcov | |
2dae1526 MM |
107 | %dir %{gccarch} |
108 | %dir %{gcclib} | |
109 | %attr(755,root,root) %{gcclib}/cc1 | |
2dae1526 | 110 | %attr(755,root,root) %{gcclib}/collect2 |
b9c2815d | 111 | %{gcclib}/crt*.o |
2dae1526 MM |
112 | %{gcclib}/libgcc.a |
113 | %{gcclib}/specs* | |
114 | %dir %{gcclib}/include | |
115 | %{gcclib}/include/*.h | |
2dae1526 | 116 | %{_mandir}/man1/%{target}-gcc.1* |
decdf5d1 MP |
117 | %{_mandir}/man1/%{target}-gcov.1* |
118 | %{_mandir}/man1/%{target}-cpp.1* |