]>
Commit | Line | Data |
---|---|---|
9121b4da | 1 | Summary: Cross-egcs for mipsel-linux on i386 systems |
af9d9ef8 ER |
2 | Summary(de.UTF-8): Cross-egcs zur Erzeugung von little-Endian MIPS-Code auf i386 |
3 | Summary(pl.UTF-8): egcs kompilujący skrośnie na mipsel-linux | |
9121b4da | 4 | Name: crossmipsel-egcs |
5 | Version: 1.0.2 | |
6 | Release: 1 | |
7 | License: GPL | |
8 | Group: Development/Languages | |
9121b4da | 9 | #Source0: ftp://gcc.gnu.org/pub/gcc/releases/egcs-1.1.2/egcs-1.1.2.tar.bz2 |
d321c304 | 10 | Source0: ftp://gcc.gnu.org/pub/gcc/old-releases/egcs/egcs-1.0.2.tar.bz2 |
1c01f598 | 11 | # Source0-md5: b3e6777ae0f03534a02a485b0841e514 |
9121b4da | 12 | Source1: mipsel-cross-egcs.sh |
13 | Patch0: egcs-1.0.2-libio.patch | |
14 | Patch1: egcs-1.0.2-hjl.patch | |
15 | Patch2: egcs-1.0.2-rth1.patch | |
16 | Patch3: egcs-1.0.2-rth2.patch | |
17 | Patch4: egcs-1.0.2-rth3.patch | |
18 | Patch5: egcs-1.0.2-rth4.patch | |
19 | Patch6: egcs-1.0.2-hjl2.patch | |
20 | Patch7: egcs-1.0.2-jim.patch | |
21 | Patch8: egcs-1.0.2-haifa.patch | |
22 | Patch9: egcs-1.0.1-objcbackend.patch | |
23 | Patch10: egcs-1.0.2-mips.patch | |
24 | Requires: crossmipsel-binutils >= 2.8.1 | |
5f063f90 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9121b4da | 26 | |
27 | %define _prefix /opt/mipsel | |
1f823064 | 28 | %define _infodir %{_prefix}/info |
9121b4da | 29 | |
30 | %description | |
31 | This package contains a cross-egcs which allows the creation of | |
32 | binaries to be run on little-endian Linux-MIPS (architecture | |
33 | "mipsel-linux") on i386-machines. Currently this is only a first-stage | |
34 | compiler, i.e. it can compile a Linux kernel, but not user space | |
35 | applications. | |
36 | ||
8830a4bc JR |
37 | %description -l de.UTF-8 |
38 | Dieses Paket enthält einen Cross-egcs, der es erlaubt, auf einem | |
39 | i386-Rechner Code für Linux-MIPS (auf little-Endian-Rechnern) zu | |
9121b4da | 40 | generieren. Derzeit existiert nur die erste Compiler-Stufe, d.h. der |
41 | Compiler ist in der Lage, einen Linux-Kernel zu kompilieren, jedoch | |
42 | noch keine Anwendungsprogramme. | |
43 | ||
8830a4bc JR |
44 | %description -l pl.UTF-8 |
45 | Ten pakiet zawiera cross-egcs pozwalający na robienie binariów do | |
5f063f90 | 46 | uruchamiania na little-endian MIPS (architektura "mipsel-linux") na |
c7b301df | 47 | maszynach i386. Aktualnie jest to tylko kompilator pierwszego etapu, |
8830a4bc | 48 | którym można skompilować jądro Linuksa, ale nie aplikacje. |
9121b4da | 49 | |
50 | %prep | |
51 | %setup -q -n egcs-1.0.2 | |
52 | %patch0 -p1 | |
53 | %patch1 -p1 | |
54 | %patch2 -p1 | |
55 | %patch3 -p1 | |
56 | %patch4 -p1 | |
57 | %patch5 -p1 | |
58 | %patch6 -p1 | |
59 | %patch7 -p1 | |
60 | %patch8 -p1 | |
61 | %patch9 -p1 | |
62 | %patch10 -p1 | |
63 | ||
64 | %build | |
65 | %configure --with-newlib --target=mipsel-linux | |
66 | cd gcc | |
67 | %{__make} LANGUAGES="c" | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
5f063f90 | 71 | install -d $RPM_BUILD_ROOT{/etc/profile.d,%{_prefix}} |
9121b4da | 72 | |
73 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/ | |
74 | ||
75 | cd gcc | |
76 | %{__make} LANGUAGES="c" prefix=$RPM_BUILD_ROOT%{_prefix} exec_prefix=$RPM_BUILD_ROOT%{_prefix} install | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %config /etc/profile.d/* | |
84 | %attr(755,root,root) %{_bindir}/mipsel-linux-gcc | |
85 | %dir %{_libdir}/gcc-lib | |
86 | %dir %{_libdir}/gcc-lib/mipsel-linux | |
87 | %dir %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27 | |
88 | %dir %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/include | |
89 | %dir %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/eb | |
90 | %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/eb/libgcc.a | |
91 | %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/include/* | |
92 | %attr(755,root,root) %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/cc1 | |
93 | %attr(755,root,root) %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/ld | |
94 | %attr(755,root,root) %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/cpp | |
95 | %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/specs | |
96 | %{_libdir}/gcc-lib/mipsel-linux/egcs-2.90.27/*.[oa] | |
97 | %{_mandir}/man*/* | |
d9d23313 | 98 | %{_infodir}/*.info* |