]>
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 |
d9c9ad67 | 15 | BuildRequires: /bin/bash |
2a7af6b4 JB |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: bison | |
b9c2815d | 19 | BuildRequires: crossmipsel-binutils >= 2.15.91.0.1-2 |
2dae1526 | 20 | BuildRequires: flex |
989c9405 | 21 | BuildRequires: gettext-tools |
d9c9ad67 | 22 | BuildRequires: gtk+2-devel |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig | |
b9c2815d | 25 | Requires: crossmipsel-binutils >= 2.15.91.0.1-2 |
c5479e08 | 26 | Requires: gcc-dirs |
2dae1526 MM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
2dae1526 | 29 | %define target mipsel-pld-linux |
2dae1526 | 30 | %define arch %{_prefix}/%{target} |
decdf5d1 MP |
31 | %define gccarch %{_libdir}/gcc/%{target} |
32 | %define gcclib %{gccarch}/%{version} | |
33 | ||
decdf5d1 | 34 | %define _noautostrip .*/libgc.*\\.a |
2dae1526 MM |
35 | |
36 | %description | |
86ce9baf TP |
37 | This package contains a cross-gcc which allows the creation of |
38 | binaries to be run on little-endian Linux-MIPS (architecture | |
b9c2815d | 39 | "mipsel-linux") on other machines. |
86ce9baf | 40 | |
9b2db8e4 | 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 Linux-MIPS (auf little-Endian-Rechnern) zu | |
86ce9baf TP |
44 | generieren. |
45 | ||
9b2db8e4 | 46 | %description -l pl.UTF-8 |
47 | Ten pakiet zawiera skrośny gcc pozwalający na tworzenie na innych | |
48 | maszynach binariów do uruchamiania na little-endian MIPS (architektura | |
b9c2815d | 49 | "mipsel-linux"). |
2dae1526 MM |
50 | |
51 | %prep | |
52 | %setup -q -n gcc-%{version} | |
53 | ||
54 | %build | |
8cbae788 | 55 | cp -f /usr/share/automake/config.sub . |
86ce9baf | 56 | rm -rf obj-%{target} |
2dae1526 | 57 | install -d obj-%{target} |
86ce9baf | 58 | cd obj-%{target} |
2dae1526 MM |
59 | |
60 | CFLAGS="%{rpmcflags}" \ | |
61 | CXXFLAGS="%{rpmcflags}" \ | |
b9c2815d JB |
62 | TEXCONFIG=false \ |
63 | ../configure \ | |
2dae1526 MM |
64 | --prefix=%{_prefix} \ |
65 | --infodir=%{_infodir} \ | |
66 | --mandir=%{_mandir} \ | |
7262ec7b JB |
67 | --bindir=%{_bindir} \ |
68 | --libdir=%{_libdir} \ | |
69 | --libexecdir=%{_libdir} \ | |
b9c2815d | 70 | --includedir=%{arch}/include \ |
2dae1526 | 71 | --disable-shared \ |
b9c2815d JB |
72 | --disable-threads \ |
73 | --enable-languages="c" \ | |
2dae1526 MM |
74 | --with-gnu-as \ |
75 | --with-gnu-ld \ | |
decdf5d1 | 76 | --with-demangler-in-ld \ |
2dae1526 | 77 | --with-system-zlib \ |
decdf5d1 MP |
78 | --disable-multilib \ |
79 | --disable-nls \ | |
2dae1526 | 80 | --without-x \ |
b9c2815d JB |
81 | --build=%{_target_platform} \ |
82 | --host=%{_target_platform} \ | |
2dae1526 MM |
83 | --target=%{target} |
84 | ||
b9c2815d | 85 | %{__make} |
86ce9baf | 86 | |
2dae1526 MM |
87 | %install |
88 | rm -rf $RPM_BUILD_ROOT | |
2dae1526 | 89 | |
cfbdaeb0 | 90 | %{__make} -j1 -C obj-%{target} install \ |
2dae1526 MM |
91 | DESTDIR=$RPM_BUILD_ROOT |
92 | ||
b9c2815d | 93 | # don't want target's lib in this place |
2dae1526 MM |
94 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a |
95 | ||
97f249bf | 96 | %if 0%{!?debug:1} |
2dae1526 | 97 | %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}/libgcc.a |
97f249bf | 98 | %endif |
2dae1526 MM |
99 | |
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
2dae1526 | 105 | %attr(755,root,root) %{_bindir}/%{target}-cpp |
b9c2815d JB |
106 | %attr(755,root,root) %{_bindir}/%{target}-gcc |
107 | %attr(755,root,root) %{_bindir}/%{target}-gcc-%{version} | |
108 | %attr(755,root,root) %{_bindir}/%{target}-gccbug | |
109 | %attr(755,root,root) %{_bindir}/%{target}-gcov | |
2dae1526 MM |
110 | %dir %{gccarch} |
111 | %dir %{gcclib} | |
112 | %attr(755,root,root) %{gcclib}/cc1 | |
2dae1526 | 113 | %attr(755,root,root) %{gcclib}/collect2 |
b9c2815d | 114 | %{gcclib}/crt*.o |
2dae1526 MM |
115 | %{gcclib}/libgcc.a |
116 | %{gcclib}/specs* | |
117 | %dir %{gcclib}/include | |
118 | %{gcclib}/include/*.h | |
2dae1526 | 119 | %{_mandir}/man1/%{target}-gcc.1* |
decdf5d1 MP |
120 | %{_mandir}/man1/%{target}-gcov.1* |
121 | %{_mandir}/man1/%{target}-cpp.1* |