]>
Commit | Line | Data |
---|---|---|
3618b9ea | 1 | Summary: Cross ALPHA GNU binary utility development utilities - gcc |
a3e693d5 ER |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - ALPHA gcc |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - ALPHA gcc | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla ALPHA - gcc | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - ALPHA gcc | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - ALPHA gcc | |
3618b9ea | 7 | Name: crossalpha-gcc |
42973b60 | 8 | Version: 4.1.1 |
fa2eadb7 | 9 | Release: 3 |
3618b9ea | 10 | Epoch: 1 |
11 | License: GPL | |
12 | Group: Development/Languages | |
abc1c94a | 13 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
42973b60 | 14 | # Source0-md5: ad9f97a4d04982ccf4fd67cb464879f3 |
d70b1674 | 15 | %define _llh_ver 2.6.12.0 |
5abcdb5d | 16 | Source1: http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-%{_llh_ver}.tar.bz2 |
d70b1674 | 17 | # Source1-md5: eae2f562afe224ad50f65a6acfb4252c |
42973b60 | 18 | %define _glibc_ver 2.3.6 |
e9ed51a7 | 19 | Source2: ftp://sources.redhat.com/pub/glibc/releases/glibc-%{_glibc_ver}.tar.bz2 |
42973b60 | 20 | # Source2-md5: bfdce99f82d6dbcb64b7f11c05d6bc96 |
e9ed51a7 | 21 | Source3: ftp://sources.redhat.com/pub/glibc/releases/glibc-linuxthreads-%{_glibc_ver}.tar.bz2 |
42973b60 PS |
22 | # Source3-md5: d4eeda37472666a15cc1f407e9c987a9 |
23 | Patch0: gcc-pr25672.patch | |
51a68897 | 24 | URL: http://gcc.gnu.org/ |
d2075e26 | 25 | BuildRequires: autoconf |
51a68897 | 26 | BuildRequires: automake |
d2075e26 | 27 | BuildRequires: bison |
3618b9ea | 28 | BuildRequires: crossalpha-binutils |
e9ed51a7 | 29 | BuildRequires: fileutils >= 4.0.41 |
3618b9ea | 30 | BuildRequires: flex |
e9ed51a7 | 31 | BuildRequires: texinfo >= 4.1 |
3618b9ea | 32 | Requires: crossalpha-binutils |
33 | Requires: gcc-dirs | |
34 | ExcludeArch: alpha | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %define target alpha-pld-linux | |
3618b9ea | 38 | %define arch %{_prefix}/%{target} |
6aed8c46 PS |
39 | %define gccarch %{_libdir}/gcc/%{target} |
40 | %define gcclib %{gccarch}/%{version} | |
3618b9ea | 41 | |
050f0117 | 42 | %define _noautostrip .*/libgc.*\\.a |
3618b9ea | 43 | |
44 | %description | |
45 | This package contains a cross-gcc which allows the creation of | |
8e1f8fb2 | 46 | binaries to be run on ALPHA Linux on other machines. |
3618b9ea | 47 | |
b7be3b08 JR |
48 | %description -l de.UTF-8 |
49 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
50 | anderem Rechner Code für ALPHA Linux zu generieren. | |
3618b9ea | 51 | |
b7be3b08 JR |
52 | %description -l pl.UTF-8 |
53 | Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych | |
54 | maszynach binariów do uruchamiania na Linuksie ALPHA. | |
3618b9ea | 55 | |
e9ed51a7 PS |
56 | %package c++ |
57 | Summary: C++ support for crossalpha-gcc | |
a3e693d5 | 58 | Summary(pl.UTF-8): Obsługa C++ dla crossalpha-gcc |
e9ed51a7 PS |
59 | Group: Development/Languages |
60 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
61 | ||
62 | %description c++ | |
63 | This package adds C++ support to the GNU Compiler Collection for ALPHA. | |
64 | ||
b7be3b08 JR |
65 | %description c++ -l pl.UTF-8 |
66 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla ALPHA. | |
e9ed51a7 | 67 | |
3618b9ea | 68 | %prep |
abc1c94a | 69 | %setup -q -n gcc-%{version} -a1 -a2 -a3 |
42973b60 | 70 | %patch0 -p1 |
e9ed51a7 | 71 | mv linuxthreads* glibc-%{_glibc_ver} |
3618b9ea | 72 | |
73 | %build | |
5abcdb5d PS |
74 | FAKE_ROOT=$PWD/fake-root |
75 | ||
76 | rm -rf $FAKE_ROOT && install -d $FAKE_ROOT/usr/include | |
77 | cp -r linux-libc-headers-%{_llh_ver}/include/{asm-alpha,linux} $FAKE_ROOT/usr/include | |
78 | ln -s asm-alpha $FAKE_ROOT/usr/include/asm | |
79 | ||
e9ed51a7 | 80 | cd glibc-%{_glibc_ver} |
e8056669 | 81 | cp -f /usr/share/automake/config.* scripts |
5abcdb5d PS |
82 | rm -rf builddir && install -d builddir && cd builddir |
83 | ../configure \ | |
84 | --prefix=$FAKE_ROOT/usr \ | |
85 | --build=%{_target_platform} \ | |
bcd88c6d | 86 | --host=%{target} \ |
5abcdb5d | 87 | --disable-nls \ |
e9ed51a7 | 88 | --enable-add-ons=linuxthreads \ |
5abcdb5d PS |
89 | --with-headers=$FAKE_ROOT/usr/include \ |
90 | --disable-sanity-checks \ | |
91 | --enable-hacker-mode | |
92 | ||
93 | %{__make} sysdeps/gnu/errlist.c | |
94 | %{__make} install-headers | |
95 | ||
96 | install bits/stdio_lim.h $FAKE_ROOT/usr/include/bits | |
97 | touch $FAKE_ROOT/usr/include/gnu/stubs.h | |
98 | cd ../.. | |
99 | ||
e295afc5 | 100 | cp -f /usr/share/automake/config.* . |
3618b9ea | 101 | rm -rf obj-%{target} |
102 | install -d obj-%{target} | |
103 | cd obj-%{target} | |
104 | ||
105 | CFLAGS="%{rpmcflags}" \ | |
106 | CXXFLAGS="%{rpmcflags}" \ | |
6aed8c46 PS |
107 | TEXCONFIG=false \ |
108 | ../configure \ | |
3618b9ea | 109 | --prefix=%{_prefix} \ |
110 | --infodir=%{_infodir} \ | |
111 | --mandir=%{_mandir} \ | |
6aed8c46 PS |
112 | --bindir=%{_bindir} \ |
113 | --libdir=%{_libdir} \ | |
114 | --libexecdir=%{_libdir} \ | |
3618b9ea | 115 | --disable-shared \ |
6aed8c46 | 116 | --disable-threads \ |
e9ed51a7 | 117 | --enable-languages="c,c++" \ |
5abcdb5d PS |
118 | --enable-c99 \ |
119 | --enable-long-long \ | |
061c3d07 | 120 | --disable-nls \ |
3618b9ea | 121 | --with-gnu-as \ |
122 | --with-gnu-ld \ | |
e9ed51a7 | 123 | --with-demangler-in-ld \ |
3618b9ea | 124 | --with-system-zlib \ |
e9ed51a7 | 125 | --disable-multilib \ |
5abcdb5d | 126 | --with-sysroot=$FAKE_ROOT \ |
3618b9ea | 127 | --without-x \ |
128 | --target=%{target} \ | |
129 | --host=%{_target_platform} \ | |
130 | --build=%{_target_platform} | |
131 | ||
f297c01c | 132 | %{__make} all-gcc |
3618b9ea | 133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
3618b9ea | 136 | |
f297c01c | 137 | %{__make} -C obj-%{target} install-gcc \ |
3618b9ea | 138 | DESTDIR=$RPM_BUILD_ROOT |
139 | ||
e9ed51a7 PS |
140 | install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib} |
141 | ||
6aed8c46 | 142 | # don't want this here |
3618b9ea | 143 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a |
144 | ||
bd1ed452 PS |
145 | # include/ contains install-tools/include/* and headers that were fixed up |
146 | # by fixincludes, we don't want former | |
147 | gccdir=$RPM_BUILD_ROOT%{gcclib} | |
148 | mkdir $gccdir/tmp | |
149 | # we have to save these however | |
150 | mv -f $gccdir/include/syslimits.h $gccdir/tmp | |
151 | rm -rf $gccdir/include | |
152 | mv -f $gccdir/tmp $gccdir/include | |
153 | cp -f $gccdir/install-tools/include/*.h $gccdir/include | |
154 | # but we don't want anything more from install-tools | |
155 | rm -rf $gccdir/install-tools | |
156 | ||
6aed8c46 | 157 | %if 0%{!?debug:1} |
be43487a PS |
158 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcc.a |
159 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcov.a | |
6aed8c46 | 160 | %endif |
3618b9ea | 161 | |
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
061c3d07 | 165 | %files |
3618b9ea | 166 | %defattr(644,root,root,755) |
3618b9ea | 167 | %attr(755,root,root) %{_bindir}/%{target}-cpp |
f297c01c | 168 | %attr(755,root,root) %{_bindir}/%{target}-gcc |
3618b9ea | 169 | %dir %{gccarch} |
170 | %dir %{gcclib} | |
171 | %attr(755,root,root) %{gcclib}/cc1 | |
3618b9ea | 172 | %attr(755,root,root) %{gcclib}/collect2 |
6aed8c46 | 173 | %{gcclib}/crt*.o |
3618b9ea | 174 | %{gcclib}/libgcc.a |
175 | %{gcclib}/specs* | |
176 | %dir %{gcclib}/include | |
177 | %{gcclib}/include/*.h | |
f297c01c | 178 | %{_mandir}/man1/%{target}-cpp.1* |
3618b9ea | 179 | %{_mandir}/man1/%{target}-gcc.1* |
e9ed51a7 PS |
180 | |
181 | %files c++ | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_bindir}/%{target}-g++ | |
184 | %attr(755,root,root) %{gcclib}/cc1plus | |
185 | %{_mandir}/man1/%{target}-g++.1* |