]>
Commit | Line | Data |
---|---|---|
717e7f89 | 1 | # |
34198772 | 2 | # TODO: |
3 | # - fix ada build errors | |
4 | # - provide as full gcc 3.x as possible without conflicting with gcc 4.x | |
800b60c2 JB |
5 | # - should be named gcc3.4 or so, gcc3 is too ambiguous |
6 | # (there were 4 different ABIs and very different compatibility issues) | |
34198772 | 7 | # |
717e7f89 | 8 | # Conditional build: |
9 | %bcond_without cxx | |
10 | %bcond_with fortran | |
11 | %bcond_with ada # build without ADA support | |
12 | %bcond_with java # build without Java support | |
13 | %bcond_with objc # build without ObjC support | |
14 | %bcond_with ssp # build with stack-smashing protector support | |
15 | %bcond_with multilib # build with multilib support | |
16 | %ifnarch amd64 ppc64 s390x sparc64 | |
17 | %undefine with_multilib | |
18 | %endif | |
19 | # | |
20 | Summary: GNU Compiler Collection: the C compiler and shared files | |
0d25e837 | 21 | Summary(es.UTF-8): Colección de compiladores GNU: el compilador C y ficheros compartidos |
22 | Summary(pl.UTF-8): Kolekcja kompilatorów GNU: kompilator C i pliki współdzielone | |
23 | Summary(pt_BR.UTF-8): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados | |
717e7f89 | 24 | Name: gcc3 |
25 | Version: 3.4.6 | |
26 | Release: 1 | |
27 | License: GPL | |
28 | Group: Development/Languages | |
29 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 | |
30 | # Source0-md5: 4a21ac777d4b5617283ce488b808da7b | |
31 | Source2: http://www.trl.ibm.com/projects/security/ssp/gcc2_95_3/gcc_stack_protect.m4.gz | |
32 | # Source2-md5: 07d93ad5fc07ca44cdaba46c658820de | |
33 | Source3: %{name}-gcc_visibility.m4 | |
34 | Patch0: %{name}-info.patch | |
35 | Patch1: %{name}-nolocalefiles.patch | |
36 | Patch2: %{name}-ada-link-new-libgnat.patch | |
37 | Patch3: %{name}-nodebug.patch | |
38 | Patch4: %{name}-ssp.patch | |
39 | Patch5: %{name}-ada-link.patch | |
40 | Patch6: %{name}-pr15666.patch | |
41 | # | |
42 | # -fvisibility={default|internal|hidden|protected} | |
43 | # | |
44 | # Set the default ELF image symbol visibility to the specified option. | |
45 | # All symbols will be marked with this unless overrided within the code. | |
46 | # Using this feature can very substantially improve linking and load times | |
47 | # of shared object libraries, produce more optimised code, provide near-perfect | |
48 | # API export and prevent symbol clashes. It is strongly recommended that you | |
49 | # use this in any shared objects you distribute. | |
50 | # | |
51 | # -fvisibility-inlines-hidden | |
52 | # | |
53 | # Causes all inlined methods to be marked with __attribute__((visibility("hidden"))) | |
54 | # so that they do not appear in the export table of a DSO and do not require a PLT | |
55 | # indirection when used within the DSO. Enabling this option can have a dramatic | |
56 | # effect on load and link times of a DSO as it massively reduces the size | |
57 | # of the dynamic export table when the library makes heavy use of templates. | |
58 | # While it can cause bloating through duplication of code within each DSO | |
59 | # where it is used, often the wastage is less than the considerable space | |
60 | # occupied by a long symbol name in the export table which is typical when using | |
61 | # templates and namespaces. | |
62 | # | |
63 | # How to Write Shared Libraries: http://people.redhat.com/drepper/dsohowto.pdf | |
64 | # | |
65 | Patch7: %{name}-visibility.patch | |
66 | Patch8: %{name}-cxxabi.patch | |
67 | Patch9: %{name}-pr-rh.patch | |
68 | # | |
69 | Patch20: %{name}-ada-bootstrap.patch | |
70 | URL: http://gcc.gnu.org/ | |
71 | BuildRequires: autoconf | |
72 | BuildRequires: automake | |
73 | BuildRequires: binutils >= 2:2.15.91.0.2 | |
74 | BuildRequires: bison | |
75 | BuildRequires: fileutils >= 4.0.41 | |
76 | BuildRequires: flex | |
77 | %if %{with ada} | |
78 | BuildRequires: gcc(ada) | |
79 | BuildRequires: gcc-ada | |
80 | %endif | |
81 | BuildRequires: gettext-devel | |
82 | BuildRequires: glibc-devel >= 2.2.5-20 | |
83 | BuildRequires: perl-devel | |
84 | BuildRequires: texinfo >= 4.1 | |
85 | BuildRequires: zlib-devel | |
86 | Requires: binutils >= 2:2.15.91.0.2 | |
87 | Requires: gcc-dirs >= 1.0-3 | |
88 | Provides: cpp = %{epoch}:%{version}-%{release} | |
89 | %{?with_ada:Provides: gcc(ada)} | |
90 | %{?with_ssp:Provides: gcc(ssp)} | |
91 | Conflicts: glibc-devel < 2.2.5-20 | |
92 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
93 | ||
94 | %define _slibdir /%{_lib} | |
95 | %ifarch amd64 ppc64 s390x sparc64 | |
96 | %define _slibdir32 /lib | |
97 | %define _libdir32 /usr/lib | |
98 | %endif | |
99 | %ifarch sparc64 | |
100 | %define rpmcflags -O2 -mtune=ultrasparc | |
101 | %endif | |
102 | ||
103 | %description | |
104 | A compiler aimed at integrating all the optimizations and features | |
105 | necessary for a high-performance and stable development environment. | |
106 | ||
107 | This package contains the C compiler and some files shared by various | |
108 | parts of the GNU Compiler Collection. In order to use another GCC | |
109 | compiler you will need to install the appropriate subpackage. | |
110 | ||
0d25e837 | 111 | %description -l es.UTF-8 |
717e7f89 | 112 | Un compilador que intenta integrar todas las optimalizaciones y |
0d25e837 | 113 | características necesarias para un entorno de desarrollo eficaz y |
717e7f89 | 114 | estable. |
115 | ||
116 | Este paquete contiene el compilador de C y unos ficheros compartidos | |
0d25e837 | 117 | por varias partes de la colección de compiladores GNU (GCC). Para usar |
118 | otro compilador de GCC será necesario que instale el subpaquete | |
717e7f89 | 119 | adecuado. |
120 | ||
0d25e837 | 121 | %description -l pl.UTF-8 |
122 | Kompilator, posiadający duże możliwości optymalizacyjne niezbędne do | |
717e7f89 | 123 | wyprodukowania szybkiego i stabilnego kodu wynikowego. |
124 | ||
0d25e837 | 125 | Ten pakiet zawiera kompilator C i pliki współdzielone przez różne |
126 | części kolekcji kompilatorów GNU (GCC). Żeby używać innego kompilatora | |
127 | z GCC, trzeba zainstalować odpowiedni podpakiet. | |
717e7f89 | 128 | |
0d25e837 | 129 | %description -l pt_BR.UTF-8 |
130 | Este pacote adiciona infraestrutura básica e suporte a linguagem C ao | |
717e7f89 | 131 | GNU Compiler Collection. |
132 | ||
133 | %package libgcc | |
134 | Summary: Shared gcc library | |
0d25e837 | 135 | Summary(es.UTF-8): Biblioteca compartida de gcc |
136 | Summary(pl.UTF-8): Biblioteka gcc | |
137 | Summary(pt_BR.UTF-8): Biblioteca runtime para o GCC | |
717e7f89 | 138 | Group: Libraries |
139 | ||
140 | %description libgcc | |
141 | Shared gcc library. | |
142 | ||
0d25e837 | 143 | %description libgcc -l es.UTF-8 |
717e7f89 | 144 | Biblioteca compartida de gcc. |
145 | ||
0d25e837 | 146 | %description libgcc -l pl.UTF-8 |
717e7f89 | 147 | Biblioteka dynamiczna gcc. |
148 | ||
0d25e837 | 149 | %description libgcc -l pt_BR.UTF-8 |
717e7f89 | 150 | Biblioteca runtime para o GCC. |
151 | ||
152 | %package c++ | |
153 | Summary: C++ support for gcc | |
0d25e837 | 154 | Summary(es.UTF-8): Soporte de C++ para gcc |
155 | Summary(pl.UTF-8): Obsługa C++ dla gcc | |
156 | Summary(pt_BR.UTF-8): Suporte C++ para o gcc | |
717e7f89 | 157 | Group: Development/Languages |
158 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
159 | ||
160 | %description c++ | |
161 | This package adds C++ support to the GNU Compiler Collection. It | |
162 | includes support for most of the current C++ specification, including | |
163 | templates and exception handling. It does not include a standard C++ | |
164 | library, which is available separately. | |
165 | ||
0d25e837 | 166 | %description c++ -l de.UTF-8 |
167 | Dieses Paket enthält die C++-Unterstützung für den | |
168 | GNU-Compiler-Collection. Es unterstützt die aktuelle | |
717e7f89 | 169 | C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine |
170 | C++-Standard-Library ist nicht enthalten - sie ist getrennt | |
0d25e837 | 171 | erhältlich. |
717e7f89 | 172 | |
0d25e837 | 173 | %description c++ -l es.UTF-8 |
174 | Este paquete añade soporte de C++ al GCC (colección de compiladores | |
175 | GNU). Ello incluye el soporte para la mayoría de la especificación | |
717e7f89 | 176 | actual de C++, incluyendo plantillas y manejo de excepciones. No |
0d25e837 | 177 | incluye la biblioteca estándar de C++, la que es disponible separada. |
717e7f89 | 178 | |
0d25e837 | 179 | %description c++ -l fr.UTF-8 |
717e7f89 | 180 | Ce package ajoute un support C++ a la collection de compilateurs GNU. |
0d25e837 | 181 | Il comprend un support pour la plupart des spécifications actuelles de |
182 | C++, dont les modéles et la gestion des exceptions. Il ne comprend pas | |
183 | une bibliothéque C++ standard, qui est disponible séparément. | |
717e7f89 | 184 | |
0d25e837 | 185 | %description c++ -l pl.UTF-8 |
186 | Ten pakiet dodaje obsługę C++ do kompilatora gcc. Ma wsparcie dla | |
187 | dużej ilości obecnych specyfikacji C++, nie zawiera natomiast | |
188 | standardowych bibliotek C++, które są w oddzielnym pakiecie. | |
717e7f89 | 189 | |
0d25e837 | 190 | %description c++ -l pt_BR.UTF-8 |
717e7f89 | 191 | Este pacote adiciona suporte C++ para o gcc. |
192 | ||
0d25e837 | 193 | %description c++ -l tr.UTF-8 |
194 | Bu paket, GNU C derleyicisine C++ desteği ekler. 'Template'ler ve | |
195 | aykırı durum işleme gibi çoğu güncel C++ tanımlarına uyar. Standart | |
196 | C++ kitaplığı bu pakette yer almaz. | |
717e7f89 | 197 | |
198 | %package objc | |
199 | Summary: Objective C support for gcc | |
0d25e837 | 200 | Summary(de.UTF-8): Objektive C-Unterstützung für gcc |
201 | Summary(es.UTF-8): Soporte de Objective C para gcc | |
202 | Summary(fr.UTF-8): Gestion d'Objective C pour gcc | |
203 | Summary(pl.UTF-8): Obsługa obiektowego C dla kompilatora gcc | |
204 | Summary(tr.UTF-8): gcc için Objective C desteği | |
717e7f89 | 205 | Group: Development/Languages |
206 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
207 | Requires: %{name}-libobjc = %{epoch}:%{version}-%{release} | |
208 | ||
209 | %description objc | |
210 | This package adds Objective C support to the GNU Compiler Collection. | |
211 | Objective C is a object oriented derivative of the C language, mainly | |
212 | used on systems running NeXTSTEP. This package does not include the | |
213 | standard objective C object library. | |
214 | ||
0d25e837 | 215 | %description objc -l de.UTF-8 |
216 | Dieses Paket ergänzt den GNU-Compiler-Collection durch | |
717e7f89 | 217 | Objective-C-Support. Objective C ist ein objektorientiertes Derivat |
218 | von C, das zur Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt. | |
219 | Die Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets. | |
220 | ||
0d25e837 | 221 | %description objc -l es.UTF-8 |
222 | Este paquete añade soporte de Objective C al GCC (colección de | |
717e7f89 | 223 | compiladores GNU). Objective C es un lenguaje orientado a objetos |
224 | derivado de C, principalmente usado en sistemas que funcionan bajo | |
0d25e837 | 225 | NeXTSTEP. El paquete no incluye la biblioteca de objetos estándar de |
717e7f89 | 226 | Objective C. |
227 | ||
0d25e837 | 228 | %description objc -l fr.UTF-8 |
717e7f89 | 229 | Ce package ajoute un support Objective C a la collection de |
0d25e837 | 230 | compilateurs GNU. L'Objective C est un langage orienté objetdérivé du |
231 | langage C, principalement utilisé sur les systèmes NeXTSTEP. Ce | |
232 | package n'inclue pas la bibliothéque Objective C standard. | |
233 | ||
234 | %description objc -l pl.UTF-8 | |
235 | Ten pakiet dodaje obsługę obiektowego C do kompilatora gcc. Obiektowe | |
236 | C (objc) jest zorientowaną obiektowo pochodną języka C, używaną | |
237 | głównie w systemach używających NeXTSTEP. W pakiecie nie ma | |
238 | standardowej biblioteki objc (która znajduje się w osobnym pakiecie). | |
239 | ||
240 | %description objc -l tr.UTF-8 | |
241 | Bu paket, GNU C derleyicisine Objective C desteği ekler. Objective C, | |
242 | C dilinin nesne yönelik bir türevidir ve NeXTSTEP altında çalışan | |
243 | sistemlerde yaygın olarak kullanılır. Standart Objective C nesne | |
244 | kitaplığı bu pakette yer almaz. | |
717e7f89 | 245 | |
246 | %package libobjc | |
247 | Summary: Objective C Libraries | |
0d25e837 | 248 | Summary(es.UTF-8): Bibliotecas de Objective C |
249 | Summary(pl.UTF-8): Biblioteki Obiektowego C | |
717e7f89 | 250 | Group: Libraries |
251 | ||
252 | %description libobjc | |
253 | Objective C Libraries. | |
254 | ||
0d25e837 | 255 | %description libobjc -l es.UTF-8 |
717e7f89 | 256 | Bibliotecas de Objective C. |
257 | ||
0d25e837 | 258 | %description libobjc -l pl.UTF-8 |
717e7f89 | 259 | Biblioteki Obiektowego C. |
260 | ||
261 | %package libobjc-static | |
262 | Summary: Static Objective C Libraries | |
0d25e837 | 263 | Summary(es.UTF-8): Bibliotecas estáticas de Objective C |
264 | Summary(pl.UTF-8): Statyczne Biblioteki Obiektowego C | |
717e7f89 | 265 | Group: Development/Libraries |
266 | Requires: %{name}-libobjc = %{epoch}:%{version}-%{release} | |
267 | ||
268 | %description libobjc-static | |
269 | Static Objective C Libraries. | |
270 | ||
0d25e837 | 271 | %description libobjc-static -l es.UTF-8 |
272 | Bibliotecas estáticas de Objective C. | |
717e7f89 | 273 | |
0d25e837 | 274 | %description libobjc-static -l pl.UTF-8 |
717e7f89 | 275 | Statyczne biblioteki Obiektowego C. |
276 | ||
277 | %package g77 | |
278 | Summary: Fortran 77 support for gcc | |
0d25e837 | 279 | Summary(es.UTF-8): Soporte de Fortran 77 para gcc |
280 | Summary(pl.UTF-8): Obsługa Fortranu 77 dla gcc | |
281 | Summary(pt_BR.UTF-8): Suporte Fortran 77 para o GCC | |
717e7f89 | 282 | Group: Development/Languages/Fortran |
283 | Requires: %{name}-libg2c = %{epoch}:%{version}-%{release} | |
284 | ||
285 | %description g77 | |
286 | This package adds support for compiling Fortran 77 programs with the | |
287 | GNU compiler. | |
288 | ||
0d25e837 | 289 | %description g77 -l es.UTF-8 |
290 | Este paquete añade soporte para compilar programas escritos en Fortran | |
717e7f89 | 291 | 77 con el compilador GNU. |
292 | ||
0d25e837 | 293 | %description g77 -l pl.UTF-8 |
294 | Ten pakiet dodaje obsługę Fortranu 77 do kompilatora gcc. Jest | |
295 | potrzebny do kompilowania programów pisanych w języku Fortran 77. | |
717e7f89 | 296 | |
0d25e837 | 297 | %description g77 -l pt_BR.UTF-8 |
717e7f89 | 298 | Suporte Fortran 77 para o GCC. |
299 | ||
300 | %package libg2c | |
301 | Summary: Fortran 77 Libraries | |
0d25e837 | 302 | Summary(es.UTF-8): Bibliotecas de Fortran 77 |
303 | Summary(pl.UTF-8): Biblioteki Fortranu 77 | |
717e7f89 | 304 | Group: Libraries |
305 | ||
306 | %description libg2c | |
307 | Fortran 77 Libraries. | |
308 | ||
0d25e837 | 309 | %description libg2c -l es.UTF-8 |
717e7f89 | 310 | Bibliotecas de Fortran 77. |
311 | ||
0d25e837 | 312 | %description libg2c -l pl.UTF-8 |
717e7f89 | 313 | Biblioteki Fortranu 77. |
314 | ||
315 | %package libg2c-static | |
316 | Summary: Static Fortran 77 Libraries | |
0d25e837 | 317 | Summary(es.UTF-8): Bibliotecas estáticas de Fortran 77 |
318 | Summary(pl.UTF-8): Statyczne Biblioteki Fortranu 77 | |
717e7f89 | 319 | Group: Development/Libraries |
320 | Requires: %{name}-libg2c = %{epoch}:%{version}-%{release} | |
321 | ||
322 | %description libg2c-static | |
323 | Static Fortran 77 Libraries. | |
324 | ||
0d25e837 | 325 | %description libg2c -l es.UTF-8 |
326 | Bibliotecas estáticas de Fortran 77. | |
717e7f89 | 327 | |
0d25e837 | 328 | %description libg2c-static -l pl.UTF-8 |
717e7f89 | 329 | Statyczne biblioteki Fortranu 77. |
330 | ||
331 | %package java | |
332 | Summary: Java support for gcc | |
0d25e837 | 333 | Summary(es.UTF-8): Soporte de Java para gcc |
334 | Summary(pl.UTF-8): Obsługa Javy dla gcc | |
717e7f89 | 335 | Group: Development/Languages/Java |
336 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
337 | Requires: %{name}-libgcj = %{epoch}:%{version}-%{release} | |
338 | Requires: %{name}-libgcj-devel = %{epoch}:%{version}-%{release} | |
339 | Requires: java-shared | |
340 | Provides: gcj = %{epoch}:%{version}-%{release} | |
341 | ||
342 | %description java | |
343 | This package adds experimental support for compiling Java(tm) programs | |
344 | and bytecode into native code. To use this you will also need the | |
345 | libgcj package. | |
346 | ||
0d25e837 | 347 | %description java -l es.UTF-8 |
348 | Este paquete añade soporte experimental para compilar programas | |
349 | Java(tm) y su bytecode en código nativo. Para usarlo también va a | |
717e7f89 | 350 | necesitar el paquete libgcj. |
351 | ||
0d25e837 | 352 | %description java -l pl.UTF-8 |
353 | Wsparcie dla kompilowania programów Java(tm) zarówno do bajt-kodu jak | |
354 | i do natywnego kodu. Dodatkowo wymagany jest pakiet libgcj, aby można | |
355 | było przeprowadzić kompilację. | |
717e7f89 | 356 | |
357 | %package java-tools | |
358 | Summary: Shared java tools | |
0d25e837 | 359 | Summary(es.UTF-8): Herramientas compartidas de Java |
360 | Summary(pl.UTF-8): Współdzielone narzędzia javy | |
717e7f89 | 361 | Group: Development/Languages/Java |
362 | Provides: jar = %{epoch}:%{version}-%{release} | |
363 | Provides: java-shared | |
364 | Obsoletes: fastjar | |
365 | Obsoletes: jar | |
366 | Obsoletes: java-shared | |
367 | ||
368 | %description java-tools | |
369 | This package contains tools that are common for every Java(tm) | |
370 | implementation, such as rmic or jar. | |
371 | ||
0d25e837 | 372 | %description java-tools -l es.UTF-8 |
717e7f89 | 373 | Este paquete contiene herramientas que son comunes para cada |
0d25e837 | 374 | implementación de Java(tm), como rmic o jar. |
717e7f89 | 375 | |
0d25e837 | 376 | %description java-tools -l pl.UTF-8 |
377 | Pakiet ten zawiera narzędzia wspólne dla każdej implementacji | |
717e7f89 | 378 | Javy(tm), takie jak rmic czy jar. |
379 | ||
380 | %package libgcj | |
381 | Summary: Java Class Libraries | |
0d25e837 | 382 | Summary(es.UTF-8): Bibliotecas de clases de Java |
383 | Summary(pl.UTF-8): Biblioteki Klas Javy | |
717e7f89 | 384 | Group: Libraries |
385 | Requires: zlib | |
386 | ||
387 | %description libgcj | |
388 | Java Class Libraries. | |
389 | ||
0d25e837 | 390 | %description libgcj -l es.UTF-8 |
717e7f89 | 391 | Bibliotecas de clases de Java. |
392 | ||
0d25e837 | 393 | %description libgcj -l pl.UTF-8 |
717e7f89 | 394 | Biblioteki Klas Javy. |
395 | ||
396 | %package libgcj-devel | |
397 | Summary: Development files for Java Class Libraries | |
0d25e837 | 398 | Summary(es.UTF-8): Ficheros de desarrollo para las bibliotecas de clases de Java |
399 | Summary(pl.UTF-8): Pliki nagłówkowe dla Bibliotek Klas Javy | |
717e7f89 | 400 | Group: Development/Libraries |
401 | Requires: %{name}-java = %{epoch}:%{version}-%{release} | |
402 | Requires: %{name}-libgcj = %{epoch}:%{version}-%{release} | |
403 | ||
404 | %description libgcj-devel | |
405 | Development files for Java Class Libraries. | |
406 | ||
0d25e837 | 407 | %description libgcj-devel -l es.UTF-8 |
717e7f89 | 408 | Ficheros de desarrollo para las bibliotecas de clases de Java. |
409 | ||
0d25e837 | 410 | %description libgcj-devel -l pl.UTF-8 |
411 | Pliki nagłówkowe dla Bibliotek Klas Javy. | |
717e7f89 | 412 | |
413 | %package libgcj-static | |
414 | Summary: Static Java Class Libraries | |
0d25e837 | 415 | Summary(es.UTF-8): Bibliotecas estáticas de clases de Java |
416 | Summary(pl.UTF-8): Statyczne Biblioteki Klas Javy | |
717e7f89 | 417 | Group: Development/Libraries |
418 | Requires: %{name}-libgcj-devel = %{epoch}:%{version}-%{release} | |
419 | Requires: %{name}-libstdc++-devel = %{epoch}:%{version}-%{release} | |
420 | ||
421 | %description libgcj-static | |
422 | Static Java Class Libraries. | |
423 | ||
0d25e837 | 424 | %description libgcj-static -l es.UTF-8 |
425 | Bibliotecas estáticas de clases de Java. | |
717e7f89 | 426 | |
0d25e837 | 427 | %description libgcj-static -l pl.UTF-8 |
717e7f89 | 428 | Statyczne Biblioteki Klas Javy. |
429 | ||
430 | %package libstdc++ | |
431 | Summary: GNU c++ library | |
0d25e837 | 432 | Summary(es.UTF-8): Biblioteca C++ de GNU |
433 | Summary(pl.UTF-8): Biblioteki GNU C++ | |
434 | Summary(pt_BR.UTF-8): Biblioteca C++ GNU | |
717e7f89 | 435 | Group: Libraries |
436 | ||
437 | %description libstdc++ | |
438 | This is the GNU implementation of the standard C++ libraries, along | |
439 | with additional GNU tools. This package includes the shared libraries | |
440 | necessary to run C++ applications. | |
441 | ||
0d25e837 | 442 | %description libstdc++ -l de.UTF-8 |
717e7f89 | 443 | Dies ist die GNU-Implementierung der Standard-C++-Libraries mit |
0d25e837 | 444 | weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von |
717e7f89 | 445 | C++-Anwendungen erforderlichen gemeinsam genutzten Libraries. |
446 | ||
0d25e837 | 447 | %description libstdc++ -l es.UTF-8 |
448 | Este es el soporte de las bibliotecas padrón del C++, junto con | |
717e7f89 | 449 | herramientas GNU adicionales. El paquete incluye las bibliotecas |
450 | compartidas necesarias para ejecutar aplicaciones C++. | |
451 | ||
0d25e837 | 452 | %description libstdc++ -l fr.UTF-8 |
453 | Ceci est l'implémentation GNU des librairies C++ standard, ainsi que | |
454 | des outils GNU supplémentaires. Ce package comprend les librairies | |
455 | partagées nécessaires à l'exécution d'application C++. | |
717e7f89 | 456 | |
0d25e837 | 457 | %description libstdc++ -l pl.UTF-8 |
458 | Pakiet ten zawiera biblioteki będące implementacją standardowych | |
459 | bibliotek C++. Znajdują się w nim biblioteki dynamiczne niezbędne do | |
717e7f89 | 460 | uruchomienia aplikacji napisanych w C++. |
461 | ||
0d25e837 | 462 | %description libstdc++ -l pt_BR.UTF-8 |
463 | Este pacote é uma implementação da biblioteca padrão C++ v3, um | |
464 | subconjunto do padrão ISO 14882. | |
717e7f89 | 465 | |
0d25e837 | 466 | %description libstdc++ -l tr.UTF-8 |
467 | Bu paket, standart C++ kitaplıklarının GNU gerçeklemesidir ve C++ | |
468 | uygulamalarının koşturulması için gerekli kitaplıkları içerir. | |
717e7f89 | 469 | |
470 | %package libstdc++-devel | |
471 | Summary: Header files and documentation for C++ development | |
0d25e837 | 472 | Summary(de.UTF-8): Header-Dateien zur Entwicklung mit C++ |
473 | Summary(es.UTF-8): Ficheros de cabecera y documentación para desarrollo C++ | |
474 | Summary(fr.UTF-8): Fichiers d'en-tête et biblitothèques pour développer en C++ | |
475 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki standardowej C++ | |
476 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para o desenvolvimento em C++ | |
477 | Summary(tr.UTF-8): C++ ile program geliştirmek için gerekli dosyalar | |
717e7f89 | 478 | Group: Development/Libraries |
479 | Requires: %{name}-c++ = %{epoch}:%{version}-%{release} | |
480 | Requires: %{name}-libstdc++ = %{epoch}:%{version}-%{release} | |
481 | Requires: glibc-devel | |
482 | ||
483 | %description libstdc++-devel | |
484 | This is the GNU implementation of the standard C++ libraries. This | |
485 | package includes the header files needed for C++ development and | |
486 | library documentation. | |
487 | ||
0d25e837 | 488 | %description libstdc++-devel -l es.UTF-8 |
489 | Este es el soporte de las bibliotecas padrón del lenguaje C++. Este | |
490 | paquete incluye los archivos de inclusión y bibliotecas necesarios | |
717e7f89 | 491 | para desarrollo de programas en lenguaje C++. |
492 | ||
0d25e837 | 493 | %description libstdc++-devel -l pl.UTF-8 |
494 | Pakiet ten zawiera biblioteki będące implementacją standardowych | |
495 | bibliotek C++. Znajdują się w nim pliki nagłówkowe wykorzystywane przy | |
496 | programowaniu w języku C++ oraz dokumentacja biblioteki standardowej. | |
717e7f89 | 497 | |
0d25e837 | 498 | %description libstdc++-devel -l pt_BR.UTF-8 |
499 | Este pacote inclui os arquivos de inclusão e bibliotecas necessárias | |
717e7f89 | 500 | para desenvolvimento de programas C++. |
501 | ||
502 | %package libstdc++-static | |
503 | Summary: Static C++ standard library | |
0d25e837 | 504 | Summary(es.UTF-8): Biblioteca estándar estática de C++ |
505 | Summary(pl.UTF-8): Statyczna biblioteka standardowa C++ | |
717e7f89 | 506 | Group: Development/Libraries |
507 | Requires: %{name}-libstdc++-devel = %{epoch}:%{version}-%{release} | |
508 | ||
509 | %description libstdc++-static | |
510 | Static C++ standard library. | |
511 | ||
0d25e837 | 512 | %description libstdc++-static -l es.UTF-8 |
513 | Biblioteca estándar estática de C++. | |
717e7f89 | 514 | |
0d25e837 | 515 | %description libstdc++-static -l pl.UTF-8 |
717e7f89 | 516 | Statyczna biblioteka standardowa C++. |
517 | ||
518 | %package libffi | |
519 | Summary: Foreign Function Interface library | |
0d25e837 | 520 | Summary(es.UTF-8): Biblioteca de interfaz de funciones ajenas |
521 | Summary(pl.UTF-8): Biblioteka zewnętrznych wywołań funkcji | |
717e7f89 | 522 | Group: Libraries |
523 | ||
524 | %description libffi | |
525 | The libffi library provides a portable, high level programming | |
526 | interface to various calling conventions. This allows a programmer to | |
527 | call any function specified by a call interface description at run | |
528 | time. | |
529 | ||
0d25e837 | 530 | %description libffi -l es.UTF-8 |
531 | La biblioteca libffi provee una interfaz portable de programación de | |
717e7f89 | 532 | alto nivel para varias convenciones de llamada. Ello permite que un |
0d25e837 | 533 | programador llame una función cualquiera especificada por una |
534 | descripción de interfaz de llamada en el tiempo de ejecución. | |
717e7f89 | 535 | |
0d25e837 | 536 | %description libffi -l pl.UTF-8 |
537 | Biblioteka libffi dostarcza przenośnego, wysokopoziomowego | |
538 | międzymordzia do różnych konwencji wywołań funkcji. Pozwala to | |
539 | programiście wywoływać dowolne funkcje podając konwencję wywołania w | |
717e7f89 | 540 | czasie wykonania. |
541 | ||
542 | %package libffi-devel | |
543 | Summary: Development files for Foreign Function Interface library | |
0d25e837 | 544 | Summary(es.UTF-8): Ficheros de desarrollo para libffi |
545 | Summary(pl.UTF-8): Pliki nagłówkowe dla libffi | |
717e7f89 | 546 | Group: Development/Libraries |
547 | Requires: %{name}-libffi = %{epoch}:%{version}-%{release} | |
548 | ||
549 | %description libffi-devel | |
550 | Development files for Foreign Function Interface library. | |
551 | ||
0d25e837 | 552 | %description libffi-devel -l es.UTF-8 |
717e7f89 | 553 | Ficheros de desarrollo para libffi. |
554 | ||
0d25e837 | 555 | %description libffi-devel -l pl.UTF-8 |
556 | Pliki nagłówkowe dla libffi. | |
717e7f89 | 557 | |
558 | %package libffi-static | |
559 | Summary: Static Foreign Function Interface library | |
0d25e837 | 560 | Summary(es.UTF-8): Biblioteca libffi estática |
561 | Summary(pl.UTF-8): Statyczna biblioteka libffi | |
717e7f89 | 562 | Group: Development/Libraries |
563 | Requires: %{name}-libffi-devel = %{epoch}:%{version}-%{release} | |
564 | ||
565 | %description libffi-static | |
566 | Static Foreign Function Interface library. | |
567 | ||
0d25e837 | 568 | %description libffi-static -l es.UTF-8 |
569 | Biblioteca libffi estática. | |
717e7f89 | 570 | |
0d25e837 | 571 | %description libffi-static -l pl.UTF-8 |
717e7f89 | 572 | Statyczna biblioteka libffi. |
573 | ||
574 | %package ada | |
575 | Summary: Ada support for gcc | |
0d25e837 | 576 | Summary(es.UTF-8): Soporte de Ada para gcc |
577 | Summary(pl.UTF-8): Obsługa Ady do gcc | |
717e7f89 | 578 | Group: Development/Languages |
579 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
580 | Requires: %{name}-libgnat = %{epoch}:%{version}-%{release} | |
581 | ||
582 | %description ada | |
583 | This package adds experimental support for compiling Ada programs. | |
584 | ||
0d25e837 | 585 | %description ada -l es.UTF-8 |
586 | Este paquete añade soporte experimental para compilar programas en | |
717e7f89 | 587 | Ada. |
588 | ||
0d25e837 | 589 | %description ada -l pl.UTF-8 |
590 | Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w | |
717e7f89 | 591 | Adzie. |
592 | ||
593 | %package libgnat | |
594 | Summary: Ada standard libraries | |
0d25e837 | 595 | Summary(es.UTF-8): Bibliotecas estándares de Ada |
596 | Summary(pl.UTF-8): Biblioteki standardowe dla Ady | |
717e7f89 | 597 | Group: Libraries |
598 | ||
599 | %description libgnat | |
600 | This package contains shared libraries needed to run programs written | |
601 | in Ada. | |
602 | ||
0d25e837 | 603 | %description libgnat -l es.UTF-8 |
717e7f89 | 604 | Este paquete contiene las bibliotecas compartidas necesarias para |
605 | ejecutar programas escritos en Ada. | |
606 | ||
0d25e837 | 607 | %description libgnat -l pl.UTF-8 |
608 | Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów | |
717e7f89 | 609 | napisanych w Adzie. |
610 | ||
611 | %package libgnat-static | |
612 | Summary: Static Ada standard libraries | |
0d25e837 | 613 | Summary(pl.UTF-8): Statyczne biblioteki standardowe dla Ady |
717e7f89 | 614 | Group: Libraries |
615 | ||
616 | %description libgnat-static | |
617 | This package contains static libraries for programs written in Ada. | |
618 | ||
0d25e837 | 619 | %description libgnat-static -l pl.UTF-8 |
620 | Ten pakiet zawiera biblioteki statyczne dla programów napisanych w | |
717e7f89 | 621 | Adzie. |
622 | ||
623 | %prep | |
624 | %setup -q -n gcc-%{version} | |
625 | ||
626 | %patch0 -p1 | |
627 | %patch1 -p1 | |
628 | %patch2 -p1 | |
629 | %{!?debug:%patch3 -p1} | |
630 | %{?with_ssp:%patch4 -p1} | |
631 | %patch5 -p1 | |
632 | %patch6 -p0 | |
633 | %patch7 -p1 | |
634 | %patch8 -p0 | |
635 | %patch9 -p0 | |
636 | ||
637 | %ifarch alpha ia64 | |
638 | # needed for bootstrap using gcc 3.3.x on alpha | |
639 | # and even using the same 3.4.x(!) (but not Debian's 3.3.x) on ia64 | |
640 | %patch20 -p2 | |
641 | %endif | |
642 | ||
643 | # because we distribute modified version of gcc... | |
644 | perl -pi -e 's/(version.*)";/$1 %{?with_ssp:SSP }(PLD Linux)";/' gcc/version.c | |
645 | perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c | |
646 | ||
647 | mv ChangeLog ChangeLog.general | |
648 | ||
649 | %build | |
650 | # because pr16276 patch modifies configure.ac | |
651 | cd gcc | |
652 | %{__autoconf} | |
653 | cd .. | |
654 | cp -f /usr/share/automake/config.sub . | |
655 | ||
656 | rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform} | |
657 | ||
658 | CC="%{__cc}" | |
659 | ||
660 | %if %{with multilib} | |
661 | cat > gcc64 <<"EOF" | |
662 | #!/bin/sh | |
663 | exec /usr/bin/gcc -m64 "$@" | |
664 | EOF | |
665 | chmod +x gcc64 | |
666 | CC=`pwd`/gcc64 | |
667 | %endif | |
668 | ||
669 | CFLAGS="%{rpmcflags}" \ | |
670 | CXXFLAGS="%{rpmcflags}" \ | |
671 | CC="$CC" \ | |
672 | TEXCONFIG=false \ | |
673 | ../configure \ | |
674 | --prefix=%{_prefix} \ | |
675 | --libdir=%{_libdir} \ | |
676 | --libexecdir=%{_libdir} \ | |
677 | --infodir=%{_infodir} \ | |
678 | --mandir=%{_mandir} \ | |
679 | --program-suffix="3" \ | |
680 | --enable-version-specific-runtime-libs \ | |
681 | --enable-shared \ | |
682 | --enable-threads=posix \ | |
683 | --enable-__cxa_atexit \ | |
684 | --enable-languages="c%{?with_cxx:,c++}%{?with_fortran:,f77}%{?with_objc:,objc}%{?with_ada:,ada}%{?with_java:,java}" \ | |
685 | --enable-c99 \ | |
686 | --enable-long-long \ | |
687 | %ifnarch ppc | |
688 | %if %{without multilib} | |
689 | --disable-multilib \ | |
690 | %endif | |
691 | %endif | |
692 | --enable-nls \ | |
693 | --with-gnu-as \ | |
694 | --with-gnu-ld \ | |
695 | --with-system-zlib \ | |
696 | --with-slibdir=%{_slibdir} \ | |
697 | --without-x \ | |
698 | %{_target_platform} | |
699 | ||
700 | PATH=$PATH:/sbin:%{_sbindir} | |
701 | ||
702 | cd .. | |
703 | # - on alpha stage1 needs -O0 for 3.3->3.4 bootstrap (gnat from 3.3 is seriously broken) | |
704 | # - on ia64 use bootstrap-lean as profiledbootstrap is broken (PR 13882, 15836, 16108) | |
705 | %{__make} -C obj-%{_target_platform} \ | |
706 | %ifarch ia64 | |
707 | bootstrap-lean \ | |
708 | %else | |
709 | profiledbootstrap \ | |
710 | %endif | |
711 | GCJFLAGS="%{rpmcflags}" \ | |
712 | BOOT_CFLAGS="%{rpmcflags}" \ | |
713 | %ifarch alpha | |
714 | STAGE1_CFLAGS="%{rpmcflags} -O0" \ | |
715 | %else | |
716 | STAGE1_CFLAGS="%{rpmcflags}" \ | |
717 | %endif | |
718 | LDFLAGS_FOR_TARGET="%{rpmldflags}" \ | |
719 | mandir=%{_mandir} \ | |
720 | infodir=%{_infodir} | |
721 | ||
722 | %if %{with ada} | |
723 | # cannot build it in parallel | |
724 | for tgt in gnatlib-shared gnattools gnatlib; do | |
725 | %{__make} -C obj-%{_target_platform}/gcc $tgt \ | |
726 | BOOT_CFLAGS="%{rpmcflags}" \ | |
727 | LDFLAGS_FOR_TARGET="%{rpmldflags}" \ | |
728 | mandir=%{_mandir} \ | |
729 | infodir=%{_infodir} | |
730 | done | |
731 | %endif | |
732 | ||
733 | %install | |
734 | rm -rf $RPM_BUILD_ROOT | |
735 | install -d $RPM_BUILD_ROOT{/lib,%{_aclocaldir},%{_datadir},%{_infodir}} | |
736 | ||
737 | cd obj-%{_target_platform} | |
738 | PATH=$PATH:/sbin:%{_sbindir} | |
739 | ||
740 | %{__make} -j1 install \ | |
741 | mandir=%{_mandir} \ | |
742 | infodir=%{_infodir} \ | |
743 | DESTDIR=$RPM_BUILD_ROOT | |
744 | ||
745 | %ifarch sparc64 | |
746 | ln -f $RPM_BUILD_ROOT%{_bindir}/sparc64-pld-linux-gcc \ | |
747 | $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc | |
748 | %endif | |
749 | ||
750 | ln -sf gcc3 $RPM_BUILD_ROOT%{_bindir}/cc3 | |
751 | echo ".so gcc3.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc3.1 | |
752 | ||
753 | %if %{with fortran} | |
754 | ln -sf g773 $RPM_BUILD_ROOT%{_bindir}/f773 | |
755 | echo ".so g773.1" > $RPM_BUILD_ROOT%{_mandir}/man1/f773.1 | |
756 | %endif | |
757 | ||
758 | %if %{with ada} | |
759 | # move ada shared libraries to proper place... | |
760 | mv -f $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/adalib/*.so.1 \ | |
761 | $RPM_BUILD_ROOT%{_libdir} | |
762 | # check if symlink to be made is valid | |
763 | test -f $RPM_BUILD_ROOT%{_libdir}/libgnat3.so.1 | |
764 | ln -sf libgnat3.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat3.so | |
765 | ln -sf libgnarl3.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl3.so | |
766 | ln -sf libgnat3.so $RPM_BUILD_ROOT%{_libdir}/libgnat3.so | |
767 | ln -sf libgnarl3.so $RPM_BUILD_ROOT%{_libdir}/libgnarl3.so | |
768 | %endif | |
769 | ||
770 | cd .. | |
771 | ||
772 | %if %{with java} | |
773 | install -d java-doc | |
774 | cp -f libjava/doc/cni.sgml libjava/READ* java-doc | |
775 | cp -f fastjar/README java-doc/README.fastjar | |
776 | cp -f libffi/README java-doc/README.libffi | |
777 | cp -f libffi/LICENSE java-doc/LICENSE.libffi | |
778 | %endif | |
779 | ||
780 | %if %{with objc} | |
781 | cp -f libobjc/README gcc/objc/README.libobjc | |
782 | %endif | |
783 | ||
784 | # include/ contains install-tools/include/* and headers that were fixed up | |
785 | # by fixincludes, we don't want former | |
786 | gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/) | |
787 | mkdir $gccdir/tmp | |
788 | # we have to save these however | |
789 | mv -f $gccdir/include/syslimits.h $gccdir/tmp | |
790 | %{?with_cxx:mv -f $gccdir/include/c++ $gccdir/tmp} | |
791 | %{?with_fortran:mv -f $gccdir/include/g2c.h $gccdir/tmp} | |
792 | %{?with_objc:mv -f $gccdir/include/objc $gccdir/tmp} | |
793 | %{?with_java:mv -f $gccdir/include/{libffi/ffitarget.h,gcj} $gccdir/tmp} | |
794 | rm -rf $gccdir/include | |
795 | mv -f $gccdir/tmp $gccdir/include | |
796 | cp $gccdir/install-tools/include/*.h $gccdir/include | |
797 | # but we don't want anything more from install-tools | |
798 | rm -rf $gccdir/install-tools | |
799 | ||
800 | %if %{with multilib} | |
801 | ln -sf %{_slibdir}/libgcc_s.so.1 $gccdir/libgcc_s.so | |
802 | ln -sf %{_slibdir32}/libgcc_s.so.1 $gccdir/libgcc_s_32.so | |
803 | %endif | |
804 | ||
805 | %if %{with ssp} | |
806 | zcat %{SOURCE2} > $RPM_BUILD_ROOT%{_aclocaldir}/gcc_stack_protect.m4 | |
807 | %endif | |
808 | install %{SOURCE3} $RPM_BUILD_ROOT%{_aclocaldir}/gcc_visibility.m4 | |
809 | ||
810 | %clean | |
811 | rm -rf $RPM_BUILD_ROOT | |
812 | ||
813 | %post | |
814 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
815 | ||
816 | %postun | |
817 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
818 | ||
819 | %post g77 | |
820 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
821 | ||
822 | %postun g77 | |
823 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
824 | ||
825 | %post java | |
826 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
827 | ||
828 | %postun java | |
829 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
830 | ||
831 | %post -p /sbin/ldconfig libgcc | |
832 | %postun -p /sbin/ldconfig libgcc | |
833 | %post -p /sbin/ldconfig libstdc++ | |
834 | %postun -p /sbin/ldconfig libstdc++ | |
835 | %post -p /sbin/ldconfig libobjc | |
836 | %postun -p /sbin/ldconfig libobjc | |
837 | %post -p /sbin/ldconfig libg2c | |
838 | %postun -p /sbin/ldconfig libg2c | |
839 | %post -p /sbin/ldconfig libgcj | |
840 | %postun -p /sbin/ldconfig libgcj | |
841 | %post -p /sbin/ldconfig libgnat | |
842 | %postun -p /sbin/ldconfig libgnat | |
843 | %post -p /sbin/ldconfig libffi | |
844 | %postun -p /sbin/ldconfig libffi | |
845 | ||
846 | %files | |
847 | %defattr(644,root,root,755) | |
848 | %doc ChangeLog.general MAINTAINERS NEWS bugs.html faq.html | |
849 | %doc gcc/{ChangeLog,ONEWS,README.Portability} | |
850 | %dir %{_libdir}/gcc/*/* | |
851 | %dir %{_libdir}/gcc/*/*/include | |
852 | %{?with_ssp:%{_aclocaldir}/gcc_stack_protect.m4} | |
853 | %{_aclocaldir}/gcc_visibility.m4 | |
854 | ||
855 | %attr(755,root,root) %{_bindir}/*-gcc* | |
856 | %attr(755,root,root) %{_bindir}/gcc3 | |
857 | %attr(755,root,root) %{_bindir}/gccbug3 | |
858 | %attr(755,root,root) %{_bindir}/gcov3 | |
859 | %attr(755,root,root) %{_bindir}/cc3 | |
860 | %attr(755,root,root) %{_bindir}/cpp3 | |
861 | ||
862 | %{_mandir}/man1/cc3.1* | |
863 | %{_mandir}/man1/cpp3.1* | |
864 | %{_mandir}/man1/gcc3.1* | |
865 | %{_mandir}/man1/gcov3.1* | |
866 | ||
867 | %attr(755,root,root) %{_slibdir}/lib*.so | |
868 | %ifarch ia64 | |
869 | %{_slibdir}/libunwind.a | |
870 | %endif | |
871 | %{_libdir}/gcc/*/*/libgcov.a | |
872 | %{_libdir}/gcc/*/*/libgcc.a | |
873 | %{_libdir}/gcc/*/*/libgcc_eh.a | |
874 | %{_libdir}/gcc/*/*/specs | |
875 | %{_libdir}/gcc/*/*/crt*.o | |
876 | %if %{with multilib} | |
877 | %attr(755,root,root) %{_libdir}/gcc/*/*/libgcc_s*.so | |
878 | %{_libdir}/gcc/*/*/32/libgcc.a | |
879 | %{_libdir}/gcc/*/*/32/libgcc_eh.a | |
880 | %{_libdir}/gcc/*/*/32/libgcov.a | |
881 | %{_libdir}/gcc/*/*/32/crt*.o | |
882 | %endif | |
883 | %ifarch ppc | |
884 | %{_libdir}/gcc/*/*/ecrt*.o | |
885 | %{_libdir}/gcc/*/*/ncrt*.o | |
886 | %{_libdir}/gcc/*/*/nof | |
887 | %dir %{_libdir}/nof | |
888 | %endif | |
889 | %attr(755,root,root) %{_libdir}/gcc/*/*/cc1 | |
890 | %attr(755,root,root) %{_libdir}/gcc/*/*/collect2 | |
891 | ||
892 | %{_libdir}/gcc/*/*/include/*.h | |
893 | %{?with_fortran:%exclude %{_libdir}/gcc/*/*/include/g2c.h} | |
894 | ||
895 | %files libgcc | |
896 | %defattr(644,root,root,755) | |
897 | %attr(755,root,root) %{_slibdir}*/lib*.so.* | |
898 | %if %{with multilib} | |
899 | %attr(755,root,root) %{_slibdir32}/lib*.so.* | |
900 | %endif | |
901 | ||
902 | %if %{with cxx} | |
903 | %files c++ | |
904 | %defattr(644,root,root,755) | |
905 | %doc gcc/cp/{ChangeLog,NEWS} | |
906 | %attr(755,root,root) %{_bindir}/g++3 | |
907 | %attr(755,root,root) %{_bindir}/*-g++3 | |
908 | %attr(755,root,root) %{_bindir}/c++3 | |
909 | %attr(755,root,root) %{_bindir}/*-c++3 | |
910 | %attr(755,root,root) %{_libdir}/gcc/*/*/cc1plus | |
911 | %{_libdir}/gcc/*/*/libsupc++.la | |
912 | %{_libdir}/gcc/*/*/libsupc++.a | |
913 | %ifarch ppc | |
914 | %{_libdir}/gcc/*/*/nof/libsupc++.la | |
915 | %{_libdir}/gcc/*/*/nof/libsupc++.a | |
916 | %endif | |
917 | %if %{with multilib} | |
918 | %{_libdir32}/gcc/*/*/libsupc++.la | |
919 | %{_libdir32}/gcc/*/*/libsupc++.a | |
920 | %endif | |
921 | %{_mandir}/man1/g++3.1* | |
922 | ||
923 | %files libstdc++ | |
924 | %defattr(644,root,root,755) | |
925 | %doc libstdc++-v3/{ChangeLog,README} | |
926 | %attr(755,root,root) %{_libdir}/gcc/*/*/libstdc++.so.*.*.* | |
927 | %ifarch ppc | |
928 | %attr(755,root,root) %{_libdir}/nof/gcc/*/*/libstdc++.so.*.*.* | |
929 | %endif | |
930 | %if %{with multilib} | |
931 | %attr(755,root,root) %{_libdir32}/gcc/*/*/libstdc++.so.*.*.* | |
932 | %endif | |
933 | ||
934 | %files libstdc++-devel | |
935 | %defattr(644,root,root,755) | |
936 | %doc libstdc++-v3/docs/html | |
937 | %{_libdir}/gcc/*/*/include/c++ | |
938 | %attr(755,root,root) %{_libdir}/gcc/*/*/libstdc++.so | |
939 | %{_libdir}/gcc/*/*/libstdc++.la | |
940 | %ifarch ppc | |
941 | %attr(755,root,root) %{_libdir}/gcc/*/*/nof/libstdc++.so | |
942 | %{_libdir}/gcc/*/*/nof/libstdc++.la | |
943 | %endif | |
944 | %if %{with multilib} | |
945 | %attr(755,root,root) %{_libdir32}/gcc/*/*/libstdc++.so | |
946 | %{_libdir32}/gcc/*/*/libstdc++.la | |
947 | %endif | |
948 | ||
949 | %files libstdc++-static | |
950 | %defattr(644,root,root,755) | |
951 | %{_libdir}/gcc/*/*/libstdc++.a | |
952 | %ifarch ppc | |
953 | %{_libdir}/gcc/*/*/nof/libstdc++.a | |
954 | %endif | |
955 | %if %{with multilib} | |
956 | %{_libdir32}/gcc/*/*/libstdc++.a | |
957 | %endif | |
958 | %endif | |
959 | ||
960 | %if %{with objc} | |
961 | %files objc | |
962 | %defattr(644,root,root,755) | |
963 | %doc gcc/objc/README | |
964 | %attr(755,root,root) %{_libdir}/gcc/*/*/cc1obj | |
965 | %attr(755,root,root) %{_libdir}/libobjc.so | |
966 | %{_libdir}/libobjc.la | |
967 | %ifarch ppc | |
968 | %attr(755,root,root) %{_libdir}/nof/libobjc.so | |
969 | %{_libdir}/nof/libobjc.la | |
970 | %endif | |
971 | %if %{with multilib} | |
972 | %attr(755,root,root) %{_libdir32}/libobjc.so | |
973 | %{_libdir32}/libobjc.la | |
974 | %endif | |
975 | %{_libdir}/gcc/*/*/include/objc | |
976 | ||
977 | %files libobjc | |
978 | %defattr(644,root,root,755) | |
979 | %doc libobjc/{ChangeLog,README*} | |
980 | %attr(755,root,root) %{_libdir}/libobjc.so.*.*.* | |
981 | %ifarch ppc | |
982 | %attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.* | |
983 | %endif | |
984 | %if %{with multilib} | |
985 | %attr(755,root,root) %{_libdir32}/libobjc.so.*.*.* | |
986 | %endif | |
987 | ||
988 | %files libobjc-static | |
989 | %defattr(644,root,root,755) | |
990 | %{_libdir}/libobjc.a | |
991 | %ifarch ppc | |
992 | %{_libdir}/nof/libobjc.a | |
993 | %endif | |
994 | %if %{with multilib} | |
995 | %{_libdir32}/libobjc.a | |
996 | %endif | |
997 | %endif | |
998 | ||
999 | %if %{with fortran} | |
1000 | %files g77 | |
1001 | %defattr(644,root,root,755) | |
1002 | %doc gcc/f/{BUGS,ChangeLog,NEWS} | |
1003 | %attr(755,root,root) %{_bindir}/g77-* | |
1004 | %attr(755,root,root) %{_bindir}/f77 | |
1005 | #%{_infodir}/g77* | |
1006 | %attr(755,root,root) %{_libdir}/gcc/*/*/f771 | |
1007 | %{_libdir}/libfrtbegin.a | |
1008 | %{_libdir}/libg2c.la | |
1009 | %attr(755,root,root) %{_libdir}/libg2c.so | |
1010 | %ifarch ppc | |
1011 | %{_libdir}/nof/libfrtbegin.a | |
1012 | %{_libdir}/nof/libg2c.la | |
1013 | %attr(755,root,root) %{_libdir}/nof/libg2c.so | |
1014 | %endif | |
1015 | %if %{with multilib} | |
1016 | %{_libdir32}/libfrtbegin.a | |
1017 | %{_libdir32}/libg2c.la | |
1018 | %attr(755,root,root) %{_libdir32}/libg2c.so | |
1019 | %endif | |
1020 | %{_libdir}/gcc/*/*/include/g2c.h | |
1021 | %{_mandir}/man1/g77.1* | |
1022 | %{_mandir}/man1/f77.1* | |
1023 | ||
1024 | %files libg2c | |
1025 | %defattr(644,root,root,755) | |
1026 | %doc libf2c/{ChangeLog,README,TODO} | |
1027 | %attr(755,root,root) %{_libdir}/libg2c.so.*.*.* | |
1028 | %ifarch ppc | |
1029 | %attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.* | |
1030 | %endif | |
1031 | %if %{with multilib} | |
1032 | %attr(755,root,root) %{_libdir32}/libg2c.so.*.*.* | |
1033 | %endif | |
1034 | ||
1035 | %files libg2c-static | |
1036 | %defattr(644,root,root,755) | |
1037 | %{_libdir}/libg2c.a | |
1038 | %ifarch ppc | |
1039 | %{_libdir}/nof/libg2c.a | |
1040 | %endif | |
1041 | %if %{with multilib} | |
1042 | %{_libdir32}/libg2c.a | |
1043 | %endif | |
1044 | %endif | |
1045 | ||
1046 | %if %{with java} | |
1047 | %files java | |
1048 | %defattr(644,root,root,755) | |
1049 | %doc gcc/java/ChangeLog java-doc/* | |
1050 | %attr(755,root,root) %{_bindir}/gcj* | |
1051 | %attr(755,root,root) %{_bindir}/gij | |
1052 | %attr(755,root,root) %{_bindir}/jcf-dump | |
1053 | %attr(755,root,root) %{_bindir}/jv-* | |
1054 | %attr(755,root,root) %{_bindir}/grepjar | |
1055 | %attr(755,root,root) %{_bindir}/*-gcj* | |
1056 | %attr(755,root,root) %{_libdir}/gcc/*/*/jc1 | |
1057 | %attr(755,root,root) %{_libdir}/gcc/*/*/jvgenmain | |
1058 | %{_infodir}/gcj* | |
1059 | %{_mandir}/man1/jcf-* | |
1060 | %{_mandir}/man1/jv-* | |
1061 | %{_mandir}/man1/gij* | |
1062 | %{_mandir}/man1/gcj* | |
1063 | %{_mandir}/man1/grepjar* | |
1064 | ||
1065 | %files java-tools | |
1066 | %defattr(644,root,root,755) | |
1067 | %attr(755,root,root) %{_bindir}/rmi* | |
1068 | %attr(755,root,root) %{_bindir}/jar | |
1069 | %{_mandir}/man1/rmi* | |
1070 | %{_mandir}/man1/jar* | |
1071 | %{_infodir}/fastjar* | |
1072 | ||
1073 | %files libgcj | |
1074 | %defattr(644,root,root,755) | |
1075 | %doc libjava/{ChangeLog,LIBGCJ_LICENSE,NEWS,README,THANKS} | |
1076 | %attr(755,root,root) %{_bindir}/addr2name.awk | |
1077 | %attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.* | |
1078 | %attr(755,root,root) %{_libdir}/lib-org*.so.*.*.* | |
1079 | %ifarch ppc | |
1080 | %attr(755,root,root) %{_libdir}/nof/lib*cj*.so.* | |
1081 | %endif | |
1082 | %{_libdir}/logging.properties | |
1083 | ||
1084 | %files libgcj-devel | |
1085 | %defattr(644,root,root,755) | |
1086 | %{_includedir}/java | |
1087 | %{_includedir}/javax | |
1088 | %{_includedir}/gcj | |
1089 | %{_includedir}/j*.h | |
1090 | %{_includedir}/gnu/* | |
1091 | %{_libdir}/gcc/*/*/include/gcj | |
1092 | %dir %{_libdir}/security | |
1093 | %{_libdir}/security/* | |
1094 | %dir %{_datadir}/java | |
1095 | %{_datadir}/java/libgcj*.jar | |
1096 | %{_libdir}/lib*cj.spec | |
1097 | %{_libdir}/lib*cj*.la | |
1098 | %attr(755,root,root) %{_libdir}/lib*cj*.so | |
1099 | %attr(755,root,root) %{_libdir}/lib-org-*.so | |
1100 | %{_libdir}/lib-org-*.la | |
1101 | %ifarch ppc | |
1102 | %{_libdir}/nof/lib*cj*.la | |
1103 | %attr(755,root,root) %{_libdir}/nof/lib*cj*.so | |
1104 | %endif | |
1105 | %{_pkgconfigdir}/libgcj.pc | |
1106 | ||
1107 | %files libgcj-static | |
1108 | %defattr(644,root,root,755) | |
1109 | %{_libdir}/lib*cj*.a | |
1110 | %{_libdir}/lib-org-*.a | |
1111 | %ifarch ppc | |
1112 | %{_libdir}/nof/lib*cj*.a | |
1113 | %endif | |
1114 | ||
1115 | %files libffi | |
1116 | %defattr(644,root,root,755) | |
1117 | %doc libffi/{ChangeLog,ChangeLog.libgcj,LICENSE,README} | |
1118 | %attr(755,root,root) %{_libdir}/libffi-*.so | |
1119 | ||
1120 | %files libffi-devel | |
1121 | %defattr(644,root,root,755) | |
1122 | %{_libdir}/gcc/*/*/include/ffitarget.h | |
1123 | %attr(755,root,root) %{_libdir}/libffi.so | |
1124 | %{_libdir}/libffi.la | |
1125 | %{_includedir}/ffi.h | |
1126 | ||
1127 | %files libffi-static | |
1128 | %defattr(644,root,root,755) | |
1129 | %{_libdir}/libffi.a | |
1130 | %endif | |
1131 | ||
1132 | %if %{with ada} | |
1133 | %files ada | |
1134 | %defattr(644,root,root,755) | |
1135 | %doc gcc/ada/ChangeLog | |
1136 | %attr(755,root,root) %{_bindir}/gnat* | |
1137 | %attr(755,root,root) %{_bindir}/gpr* | |
1138 | %attr(755,root,root) %{_libdir}/libgnarl*.so | |
1139 | %attr(755,root,root) %{_libdir}/libgnat*.so | |
1140 | %attr(755,root,root) %{_libdir}/gcc/*/*/gnat1 | |
1141 | %{_libdir}/gcc/*/*/adainclude | |
1142 | %dir %{_libdir}/gcc/*/*/adalib | |
1143 | %{_libdir}/gcc/*/*/adalib/*.ali | |
1144 | %{_libdir}/gcc/*/*/adalib/g-trasym.o | |
1145 | %{_libdir}/gcc/*/*/adalib/libgccprefix.a | |
1146 | %ifarch %{ix86} | |
1147 | %{_libdir}/gcc/*/*/adalib/libgmem.a | |
1148 | %endif | |
1149 | %{_datadir}/gnat | |
1150 | %{_infodir}/gnat* | |
1151 | ||
1152 | %files libgnat | |
1153 | %defattr(644,root,root,755) | |
1154 | %attr(755,root,root) %{_libdir}/libgnarl*.so.1 | |
1155 | %attr(755,root,root) %{_libdir}/libgnat*.so.1 | |
1156 | ||
1157 | %files libgnat-static | |
1158 | %defattr(644,root,root,755) | |
1159 | %{_libdir}/gcc/*/*/adalib/libgnarl.a | |
1160 | %{_libdir}/gcc/*/*/adalib/libgnat.a | |
1161 | %endif |