]>
Commit | Line | Data |
---|---|---|
cd47b57c | 1 | Summary: Cross SPARC64 GNU binary utility development utilities - gcc |
76b6c756 ER |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - SPARC64 gcc |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - SPARC64 gcc | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla SPARC64 - gcc | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - SPARC64 gcc | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - SPARC64 gcc | |
27058b44 | 7 | Name: crosssparc64-gcc |
34eaf54e | 8 | Version: 4.0.2 |
99a9f5eb | 9 | Release: 2 |
27058b44 | 10 | Epoch: 1 |
11 | License: GPL | |
12 | Group: Development/Languages | |
34eaf54e PS |
13 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
14 | # Source0-md5: a659b8388cac9db2b13e056e574ceeb0 | |
f8cca8e9 PS |
15 | URL: http://gcc.gnu.org/ |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: bison | |
27058b44 | 19 | BuildRequires: crosssparc64-binutils |
096b4d46 | 20 | BuildRequires: fileutils >= 4.1.41 |
27058b44 | 21 | BuildRequires: flex |
096b4d46 | 22 | BuildRequires: texinfo >= 4.1 |
27058b44 | 23 | Requires: crosssparc64-binutils |
cf80e4d2 | 24 | Requires: gcc-dirs |
deef5eaf | 25 | Obsoletes: egcs64 |
20ecf00c | 26 | ExcludeArch: sparc64 |
27058b44 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
27058b44 | 29 | %define target sparc64-pld-linux |
27058b44 | 30 | %define arch %{_prefix}/%{target} |
02d3f62b PS |
31 | %define gccarch %{_libdir}/gcc/%{target} |
32 | %define gcclib %{gccarch}/%{version} | |
27058b44 | 33 | |
b1ef9fc0 | 34 | %define _noautostrip .*/libgc.*\\.a |
ce30febd | 35 | |
27058b44 | 36 | %description |
37 | This package contains a cross-gcc which allows the creation of | |
096b4d46 | 38 | binaries to be run on SPARC64 Linux on other machines. |
27058b44 | 39 | |
e62ddd5a 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 SPARC64 Linux zu generieren. | |
27058b44 | 43 | |
e62ddd5a 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 SPARC64. | |
27058b44 | 47 | |
d38ad507 PS |
48 | %package c++ |
49 | Summary: C++ support for crosssparc64-gcc | |
76b6c756 | 50 | Summary(pl.UTF-8): Obsługa C++ dla crosssparc64-gcc |
d38ad507 PS |
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 SPARC64. | |
56 | ||
e62ddd5a JR |
57 | %description c++ -l pl.UTF-8 |
58 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla SPARC64. | |
d38ad507 | 59 | |
27058b44 | 60 | %prep |
34eaf54e | 61 | %setup -q -n gcc-%{version} |
6ad91808 | 62 | |
27058b44 | 63 | %build |
4d583870 | 64 | cp -f /usr/share/automake/config.* . |
27058b44 | 65 | rm -rf obj-%{target} |
66 | install -d obj-%{target} | |
67 | cd obj-%{target} | |
68 | ||
69 | CFLAGS="%{rpmcflags}" \ | |
70 | CXXFLAGS="%{rpmcflags}" \ | |
f8453b7c JB |
71 | TEXCONFIG=false \ |
72 | ../configure \ | |
27058b44 | 73 | --prefix=%{_prefix} \ |
74 | --infodir=%{_infodir} \ | |
75 | --mandir=%{_mandir} \ | |
dcaa1726 JB |
76 | --bindir=%{_bindir} \ |
77 | --libdir=%{_libdir} \ | |
78 | --libexecdir=%{_libdir} \ | |
27058b44 | 79 | --disable-shared \ |
b08ffc32 | 80 | --disable-threads \ |
d38ad507 | 81 | --enable-languages="c,c++" \ |
5f46f597 PS |
82 | --enable-c99 \ |
83 | --enable-long-long \ | |
096b4d46 | 84 | --disable-nls \ |
bb55ce03 | 85 | --with-cpu=ultrasparc \ |
27058b44 | 86 | --with-gnu-as \ |
87 | --with-gnu-ld \ | |
096b4d46 | 88 | --with-mangler-in-ld \ |
27058b44 | 89 | --with-system-zlib \ |
096b4d46 | 90 | --enable-multilib \ |
b08ffc32 | 91 | --without-headers \ |
27058b44 | 92 | --without-x \ |
b08ffc32 JB |
93 | --target=%{target} \ |
94 | --host=%{_target_platform} \ | |
95 | --build=%{_target_platform} | |
27058b44 | 96 | |
251bc5ab | 97 | %{__make} all-gcc |
27058b44 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
27058b44 | 101 | |
251bc5ab | 102 | %{__make} -C obj-%{target} install-gcc \ |
27058b44 | 103 | DESTDIR=$RPM_BUILD_ROOT |
104 | ||
096b4d46 PS |
105 | install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib} |
106 | ||
b08ffc32 | 107 | # don't want this here |
27058b44 | 108 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a |
109 | ||
096b4d46 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 | ||
b08ffc32 | 122 | %if 0%{!?debug:1} |
28bd5ab5 PS |
123 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/32/libgcc.a |
124 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/32/libgcov.a | |
125 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcc.a | |
126 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcov.a | |
b08ffc32 | 127 | %endif |
27058b44 | 128 | |
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
27058b44 | 134 | %attr(755,root,root) %{_bindir}/%{target}-cpp |
251bc5ab | 135 | %attr(755,root,root) %{_bindir}/%{target}-gcc |
27058b44 | 136 | %dir %{gccarch} |
137 | %dir %{gcclib} | |
138 | %attr(755,root,root) %{gcclib}/cc1 | |
27058b44 | 139 | %attr(755,root,root) %{gcclib}/collect2 |
b08ffc32 JB |
140 | %dir %{gcclib}/32 |
141 | %{gcclib}/32/crt*.o | |
142 | %{gcclib}/32/libgcc.a | |
251bc5ab PS |
143 | %{gcclib}/crt*.o |
144 | %{gcclib}/libgcc.a | |
145 | %{gcclib}/specs* | |
27058b44 | 146 | %dir %{gcclib}/include |
147 | %{gcclib}/include/*.h | |
251bc5ab | 148 | %{_mandir}/man1/%{target}-cpp.1* |
27058b44 | 149 | %{_mandir}/man1/%{target}-gcc.1* |
d38ad507 PS |
150 | |
151 | %files c++ | |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_bindir}/%{target}-g++ | |
154 | %attr(755,root,root) %{gcclib}/cc1plus | |
155 | %{_mandir}/man1/%{target}-g++.1* |