]>
Commit | Line | Data |
---|---|---|
7a59e371 | 1 | Summary: Cross PPC GNU binary utility development utilities - gcc |
617296a3 ER |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - PPC gcc |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - PPC gcc | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla PPC - gcc | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - PPC gcc | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - PPC gcc | |
7a59e371 | 7 | Name: crossppc-gcc |
73fbda0b | 8 | Version: 4.0.2 |
9 | Release: 2 | |
7a59e371 | 10 | Epoch: 1 |
11 | License: GPL | |
12 | Group: Development/Languages | |
feaade00 | 13 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
73fbda0b | 14 | # Source0-md5: a659b8388cac9db2b13e056e574ceeb0 |
15 | Patch0: gcc-pr25715.patch | |
5ed6cabc | 16 | URL: http://gcc.gnu.org/ |
0d8f2eb6 JB |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
19 | BuildRequires: bison | |
7a59e371 | 20 | BuildRequires: crossppc-binutils |
0a6b1fae | 21 | BuildRequires: fileutils >= 4.0.41 |
7a59e371 | 22 | BuildRequires: flex |
0a6b1fae | 23 | BuildRequires: texinfo >= 4.1 |
7a59e371 | 24 | Requires: crossppc-binutils |
d9f9f444 | 25 | Requires: gcc-dirs |
c02c6191 | 26 | ExcludeArch: ppc |
7a59e371 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
7a59e371 | 29 | %define target ppc-pld-linux |
7a59e371 | 30 | %define arch %{_prefix}/%{target} |
f8eaf6b0 PS |
31 | %define gccarch %{_libdir}/gcc/%{target} |
32 | %define gcclib %{gccarch}/%{version} | |
7a59e371 | 33 | |
8b251c15 | 34 | %define _noautostrip .*/libgc.*\\.a |
7a59e371 | 35 | |
36 | %description | |
37 | This package contains a cross-gcc which allows the creation of | |
c57feb42 | 38 | binaries to be run on PPC Linux on other machines. |
7a59e371 | 39 | |
b03213de JR |
40 | %description -l de.UTF-8 |
41 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
42 | anderem Rechner Code für PPC Linux zu generieren. | |
7a59e371 | 43 | |
b03213de JR |
44 | %description -l pl.UTF-8 |
45 | Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych | |
46 | maszynach binariów do uruchamiania na Linuksie PPC. | |
7a59e371 | 47 | |
e67d0236 JB |
48 | %package c++ |
49 | Summary: C++ support for crossppc-gcc | |
617296a3 | 50 | Summary(pl.UTF-8): Obsługa C++ dla crossppc-gcc |
e67d0236 JB |
51 | Group: Development/Languages |
52 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
53 | ||
54 | %description c++ | |
55 | This package adds C++ support to the GNU Compiler Collection for PPC. | |
56 | ||
b03213de JR |
57 | %description c++ -l pl.UTF-8 |
58 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla PPC. | |
e67d0236 | 59 | |
7a59e371 | 60 | %prep |
c5df9c8d | 61 | %setup -q -n gcc-%{version} |
f8eaf6b0 | 62 | %patch0 -p1 |
7a59e371 | 63 | |
64 | %build | |
5be0d86f | 65 | cp -f /usr/share/automake/config.* . |
73fbda0b | 66 | rm -rf obj-%{target} |
67 | install -d obj-%{target} | |
68 | cd obj-%{target} | |
7a59e371 | 69 | |
70 | CFLAGS="%{rpmcflags}" \ | |
73fbda0b | 71 | CXXFLAGS="%{rpmcflags}" \ |
beb83fe9 JB |
72 | TEXCONFIG=false \ |
73 | ../configure \ | |
7a59e371 | 74 | --prefix=%{_prefix} \ |
75 | --infodir=%{_infodir} \ | |
76 | --mandir=%{_mandir} \ | |
6f87cee4 | 77 | --bindir=%{_bindir} \ |
73fbda0b | 78 | --libdir=%{_libdir} \ |
79 | --libexecdir=%{_libdir} \ | |
7a59e371 | 80 | --disable-shared \ |
0a6b1fae | 81 | --disable-threads \ |
c5df9c8d | 82 | --without-headers \ |
fcba1d67 | 83 | --enable-languages="c,c++" \ |
f8eaf6b0 PS |
84 | --enable-c99 \ |
85 | --enable-long-long \ | |
0a6b1fae | 86 | --disable-nls \ |
7a59e371 | 87 | --with-gnu-as \ |
88 | --with-gnu-ld \ | |
0a6b1fae | 89 | --with-demangler-in-ld \ |
7a59e371 | 90 | --with-system-zlib \ |
73fbda0b | 91 | --disable-multilib \ |
7a59e371 | 92 | --without-x \ |
fcba1d67 | 93 | --target=%{target} \ |
a3ee301c JB |
94 | --host=%{_target_platform} \ |
95 | --build=%{_target_platform} | |
7a59e371 | 96 | |
73fbda0b | 97 | %{__make} all-gcc |
7a59e371 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
7a59e371 | 101 | |
73fbda0b | 102 | %{__make} -C obj-%{target} install-gcc \ |
7a59e371 | 103 | DESTDIR=$RPM_BUILD_ROOT |
104 | ||
73fbda0b | 105 | install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib} |
b082b857 | 106 | |
e67d0236 | 107 | # don't want this here |
7a59e371 | 108 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a |
109 | ||
0a6b1fae PS |
110 | # include/ contains install-tools/include/* and headers that were fixed up |
111 | # by fixincludes, we don't want former | |
112 | gccdir=$RPM_BUILD_ROOT%{gcclib} | |
113 | mkdir $gccdir/tmp | |
114 | # we have to save these however | |
115 | mv -f $gccdir/include/syslimits.h $gccdir/tmp | |
116 | rm -rf $gccdir/include | |
117 | mv -f $gccdir/tmp $gccdir/include | |
118 | cp -f $gccdir/install-tools/include/*.h $gccdir/include | |
119 | # but we don't want anything more from install-tools | |
120 | rm -rf $gccdir/install-tools | |
121 | ||
e67d0236 | 122 | %if 0%{!?debug:1} |
2a6a8a87 PS |
123 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcc.a |
124 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcov.a | |
e67d0236 | 125 | %endif |
7a59e371 | 126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_bindir}/%{target}-gcc | |
133 | %attr(755,root,root) %{_bindir}/%{target}-cpp | |
7a59e371 | 134 | %dir %{gccarch} |
135 | %dir %{gcclib} | |
136 | %attr(755,root,root) %{gcclib}/cc1 | |
7a59e371 | 137 | %attr(755,root,root) %{gcclib}/collect2 |
8d61bd52 | 138 | %{gcclib}/*crt*.o |
7a59e371 | 139 | %{gcclib}/libgcc.a |
140 | %{gcclib}/specs* | |
141 | %dir %{gcclib}/include | |
142 | %{gcclib}/include/*.h | |
8d61bd52 | 143 | %{_mandir}/man1/%{target}-cpp.1* |
1c08fb98 | 144 | %{_mandir}/man1/%{target}-gcc.1* |
e67d0236 JB |
145 | |
146 | %files c++ | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_bindir}/%{target}-g++ | |
e67d0236 | 149 | %attr(755,root,root) %{gcclib}/cc1plus |
8d61bd52 | 150 | %{_mandir}/man1/%{target}-g++.1* |