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