3 # _without_ada - build without ADA support
4 # _without_java - build without Java support
5 # _without_objc - build without objc support
6 # _with_bootstrap - don't BR gcc(ada) (temporary for Ac upgrade bootstrap)
7 # _with_pp - build with ProPolice
9 %define DASHED_SNAP %{nil}
10 %define SNAP %(echo %{DASHED_SNAP} | sed -e "s#-##g")
11 %define GCC_VERSION 3.3.2
12 %define KSI_VERSION 1.1.0.1567
14 Summary: GNU Compiler Collection
15 Summary(es): Colección de compiladores GNU
16 Summary(pl): Kolekcja Kompilatorów GNU
17 Summary(pt_BR): Coleção dos compiladores GNU
19 Version: %{GCC_VERSION}
23 Group: Development/Languages
24 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{GCC_VERSION}/%{name}-%{GCC_VERSION}.tar.bz2
25 # Source0-md5: 65999f654102f5438ac8562d13a6eced
26 Source1: ftp://ftp.pld-linux.org/people/malekith/ksi/ksi-%{KSI_VERSION}.tar.gz
27 # Source1-md5: 66f07491b44f06928fd95b0e65bb8cd3
28 Source2: http://ep09.kernel.pl/~djrzulf/gcc33/%{name}-non-english-man-pages.tar.bz2
29 # Source2-md5: 4736f3422ddfb808423b745629acc321
30 Patch0: %{name}-info.patch
31 Patch1: %{name}-paths.patch
32 Patch2: %{name}-nolocalefiles.patch
33 Patch3: %{name}-ada-link-new-libgnat.patch
34 # -- stolen patches from RH --
35 Patch10: gcc32-ada-link.patch
36 Patch11: gcc32-boehm-gc-libs.patch
37 Patch12: gcc32-bogus-inline.patch
38 Patch13: gcc32-c++-nrv-test.patch
39 Patch14: gcc32-c++-tsubst-asm.patch
40 Patch15: gcc32-debug-pr7241.patch
41 Patch16: gcc32-duplicate-decl.patch
42 Patch17: gcc32-dwarf2-pr6381.patch
43 Patch18: gcc32-dwarf2-pr6436-test.patch
44 Patch19: gcc32-fde-merge-compat.patch
45 Patch20: gcc32-i386-memtest-test.patch
46 Patch21: gcc32-inline-label.patch
47 Patch22: gcc32-java-no-rpath.patch
48 Patch23: gcc32-test-rh65771.patch
49 Patch24: gcc32-test-rotate.patch
50 Patch25: %{name}-3.3.1-propolice.patch
51 BuildRequires: autoconf
52 BuildRequires: binutils >= 2.14
54 BuildRequires: fileutils >= 4.0.41
56 %{!?_without_ada:%{!?_with_bootstrap:BuildRequires: gcc(ada)}}
57 %{!?_without_ada:BuildRequires: gcc-ada}
58 BuildRequires: glibc-devel >= 2.2.5-20
59 BuildRequires: perl-devel
60 BuildRequires: texinfo >= 4.1
61 BuildRequires: zlib-devel
62 BuildRequires: gettext-devel
63 Requires: binutils >= 2.14
64 Requires: cpp = %{epoch}:%{GCC_VERSION}
65 Requires: libgcc = %{epoch}:%{GCC_VERSION}
66 %{!?_without_ada:Provides: gcc(ada)}
67 Conflicts: glibc-devel < 2.2.5-20
68 URL: http://gcc.gnu.org/
69 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 %define _slibdir64 /lib64
74 %define _libdir /usr/lib
75 %define rpmcflags -O2 -mtune=ultrasparc
79 A compiler aimed at integrating all the optimizations and features
80 necessary for a high-performance and stable development environment.
83 Un compilador destinado a la integración de todas las
84 optimalizaciónes y características necesarias para un entorno de
85 desarrollo eficaz y estable.
88 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
89 wyprodukowania szybkiego i stablinego kodu wynikowego.
92 Este pacote adiciona infraestrutura básica e suporte a linguagem C
93 ao GNU Compiler Collection.
96 Summary: Shared gcc library
97 Summary(es): Biblioteca compartida de gcc
98 Summary(pl): Biblioteka gcc
99 Summary(pt_BR): Biblioteca runtime para o GCC
101 Version: %{GCC_VERSION}
104 %description -n libgcc
107 %description -n libgcc -l es
108 Biblioteca compartida de gcc.
110 %description -n libgcc -l pl
111 Biblioteka dynamiczna gcc.
113 %description -n libgcc -l pt_BR
114 Biblioteca runtime para o GCC.
117 Summary: C++ support for gcc
118 Summary(es): Soporte de C++ para gcc
119 Summary(pl): Obs³uga C++ dla gcc
120 Summary(pt_BR): Suporte C++ para o gcc
121 Group: Development/Languages
124 Requires: gcc = %{epoch}:%{GCC_VERSION}
127 This package adds C++ support to the GNU Compiler Collection. It includes
128 support for most of the current C++ specification, including templates
129 and exception handling. It does not include a standard C++ library,
130 which is available separately.
132 %description c++ -l de
133 Dieses Paket enthält die C++-Unterstützung für den GNU-Compiler-Collection. Es
134 unterstützt die aktuelle C++-Spezifikation, inkl. Templates und
135 Ausnahmeverarbeitung. Eine C++-Standard-Library ist nicht enthalten -
136 sie ist getrennt erhältlich.
138 %description c++ -l es
139 Este paquete añade soporte de C++ al GCC (colección de compiladores GNU).
140 Ello incluye el soporte para la mayoría de la especificación actual de C++,
141 incluyendo plantillas y manejo de excepciones. No incluye la biblioteca estándar
142 de C++, la que es disponible separada.
144 %description c++ -l fr
145 Ce package ajoute un support C++ a la collection de compilateurs GNU. Il comprend un
146 support pour la plupart des spécifications actuelles de C++, dont les
147 modéles et la gestion des exceptions. Il ne comprend pas une
148 bibliothéque C++ standard, qui est disponible séparément.
150 %description c++ -l pl
151 Ten pakiet dodaje obs³ugê C++ do kompilatora gcc. Ma wsparcie dla
152 du¿ej ilo¶ci obecnych specyfikacji C++, nie zawiera natomiast
153 standardowych bibliotek C++, które s± w oddzielnym pakiecie.
155 %description c++ -l pt_BR
156 Este pacote adiciona suporte C++ para o gcc.
158 %description c++ -l tr
159 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
160 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
161 C++ kitaplýðý bu pakette yer almaz.
164 Summary: Objective C support for gcc
165 Summary(de): Objektive C-Unterstützung für gcc
166 Summary(es): Soporte de Objective C para gcc
167 Summary(fr): Gestion d'Objective C pour gcc
168 Summary(pl): Obs³uga obiektowego C dla kompilatora gcc
169 Summary(tr): gcc için Objective C desteði
170 Group: Development/Languages
173 Requires: libobjc = %{epoch}:%{GCC_VERSION}
174 Requires: gcc = %{epoch}:%{GCC_VERSION}
177 This package adds Objective C support to the GNU Compiler Collection. Objective
178 C is a object oriented derivative of the C language, mainly used on
179 systems running NeXTSTEP. This package does not include the standard
180 objective C object library.
182 %description objc -l de
183 Dieses Paket ergänzt den GNU-Compiler-Collection durch Objective-C-Support.
184 Objective C ist ein objektorientiertes Derivat von C, das zur
185 Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt. Die
186 Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
188 %description objc -l es
189 Este paquete añade soporte de Objective C al GCC (colección de compiladores
190 GNU). Objective C es un lenguaje orientado a objetos derivado de C, principalmente
191 usado en sistemas que funcionan bajo NeXTSTEP. El paquete no incluye la
192 biblioteca de objetos estándar de Objective C.
194 %description objc -l fr
195 Ce package ajoute un support Objective C a la collection de compilateurs GNU.
196 L'Objective C est un langage orienté objetdérivé du langage C,
197 principalement utilisé sur les systèmes NeXTSTEP. Ce package n'inclue
198 pas la bibliothéque Objective C standard.
200 %description objc -l pl
201 Ten pakiet dodaje obs³ugê obiektowego C do kompilatora gcc. Obiektowe
202 C (objc) jest zorientowan± obiektowo pochodn± jêzyka C, u¿ywan±
203 g³ównie w systemach u¿ywaj±cych NeXTSTEP. W pakiecie nie ma
204 standardowej biblioteki objc (która znajduje siê w osobnym pakiecie).
206 %description objc -l tr
207 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
208 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
209 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
210 kitaplýðý bu pakette yer almaz.
213 Summary: Objective C Libraries
214 Summary(es): Bibliotecas de Objective C
215 Summary(pl): Biblioteki Obiektowego C
217 Version: %{GCC_VERSION}
220 %description -n libobjc
221 Objective C Libraries.
223 %description -n libobjc -l es
224 Bibliotecas de Objective C.
226 %description -n libobjc -l pl
227 Biblioteki Obiektowego C.
229 %package -n libobjc-static
230 Summary: Static Objective C Libraries
231 Summary(es): Bibliotecas estáticas de Objective C
232 Summary(pl): Statyczne Biblioteki Obiektowego C
233 Group: Development/Libraries
234 Version: %{GCC_VERSION}
235 Requires: libobjc = %{epoch}:%{GCC_VERSION}
237 %description -n libobjc-static
238 Static Objective C Libraries.
240 %description -n libobjc-static -l es
241 Bibliotecas estáticas de Objective C.
243 %description -n libobjc-static -l pl
244 Statyczne biblioteki Obiektowego C.
247 Summary: Fortran 77 support for gcc
248 Summary(es): Soporte de Fortran 77 para gcc
249 Summary(pl): Obs³uga Fortranu 77 dla gcc
250 Summary(pt_BR): Suporte Fortran 77 para o GCC
251 Group: Development/Languages/Fortran
252 Version: %{GCC_VERSION}
254 Requires: libg2c = %{epoch}:%{GCC_VERSION}
257 This package adds support for compiling Fortran 77 programs with the
260 %description g77 -l es
261 Este paquete añade soporte para compilar programas escritos en Fortran 77
262 con el compilador GNU.
264 %description g77 -l pl
265 Ten pakiet dodaje obs³ugê Fortranu 77 do kompilatora gcc. Jest
266 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
268 %description g77 -l pt_BR
269 Suporte Fortran 77 para o GCC.
272 Summary: Fortran 77 Libraries
273 Summary(es): Bibliotecas de Fortran 77
274 Summary(pl): Biblioteki Fortranu 77
276 Version: %{GCC_VERSION}
278 %description -n libg2c
279 Fortran 77 Libraries.
281 %description -n libg2c -l es
282 Bibliotecas de Fortran 77.
284 %description -n libg2c -l pl
285 Biblioteki Fortranu 77.
287 %package -n libg2c-static
288 Summary: Static Fortran 77 Libraries
289 Summary(es): Bibliotecas estáticas de Fortran 77
290 Summary(pl): Statyczne Biblioteki Fortranu 77
291 Group: Development/Libraries
292 Version: %{GCC_VERSION}
293 Requires: libg2c = %{epoch}:%{GCC_VERSION}
295 %description -n libg2c-static
296 Static Fortran 77 Libraries.
298 %description -n libg2c -l es
299 Bibliotecas estáticas de Fortran 77.
301 %description -n libg2c-static -l pl
302 Statyczne biblioteki Fortranu 77.
305 Summary: Java support for gcc
306 Summary(es): Soporte de Java para gcc
307 Summary(pl): Obs³uga Javy dla gcc
308 Group: Development/Languages/Java
309 Version: %{GCC_VERSION}
310 Requires: %{name} = %{epoch}:%{version}
311 Requires: libgcj >= 3.0.0
312 Requires: libgcj-devel >= 3.0.0
313 Requires: java-shared
314 Provides: gcj = %{epoch}:%{GCC_VERSION}-%{release}
317 This package adds experimental support for compiling Java(tm) programs
318 and bytecode into native code. To use this you will also need the
321 %description java -l es
322 Este paquete añade soporte experimental para compilar programas Java(tm)
323 y su bytecode en código nativo. Para usarlo también va a necesitar
326 %description java -l pl
327 Wsparcie dla kompilowania programów Java(tm) zrówno do bajt-kodu jak i
328 do natywnego kodu. Dodatkowo wymagany jest pakiet libgcj, aby mo¿na
329 by³o przeprowadziæ kompilacjê.
332 Summary: Shared java tools
333 Summary(es): Herramientas compartidas de Java
334 Summary(pl): Wspó³dzielone narzêdzia javy
335 Group: Development/Languages/Java
336 Version: %{GCC_VERSION}
337 Provides: jar = %{epoch}:%{GCC_VERSION}-%{release}
338 Provides: java-shared
340 Obsoletes: java-shared
343 %description java-tools
344 This package contains tools that are common for every Java(tm) implementation,
347 %description java-tools -l es
348 Este paquete contiene herramientas que son comunes para cada implementación de
349 Java(tm), como rmic o jar.
351 %description java-tools -l pl
352 Pakiet ten zawiera narzêdzia wspólne dla ka¿dej implementacji Javy(tm), takie
356 Summary: Java Class Libraries
357 Summary(es): Bibliotecas de clases de Java
358 Summary(pl): Biblioteki Klas Javy
360 Version: %{GCC_VERSION}
364 %description -n libgcj
365 Java Class Libraries.
367 %description -n libgcj -l es
368 Bibliotecas de clases de Java.
370 %description -n libgcj -l pl
371 Biblioteki Klas Javy.
373 %package -n libgcj-devel
374 Summary: Development files for Java Class Libraries
375 Summary(es): Ficheros de desarrollo para las bibliotecas de clases de Java
376 Summary(pl): Pliki nag³ówkowe dla Bibliotek Klas Javy
377 Group: Development/Libraries
378 Version: %{GCC_VERSION}
379 Requires: libgcj = %{epoch}:%{GCC_VERSION}
380 Requires: %{name}-java
381 Obsoletes: libgcj3-devel
383 %description -n libgcj-devel
384 Development files for Java Class Libraries.
386 %description -n libgcj-devel -l es
387 Ficheros de desarrollo para las bibliotecas de clases de Java.
389 %description -n libgcj-devel -l pl
390 Pliki nag³ówkowe dla Bibliotek Klas Javy.
392 %package -n libgcj-static
393 Summary: Static Java Class Libraries
394 Summary(es): Bibliotecas estáticas de clases de Java
395 Summary(pl): Statyczne Biblioteki Klas Javy
396 Group: Development/Libraries
397 Version: %{GCC_VERSION}
398 Requires: libstdc++-devel = %{epoch}:%{GCC_VERSION}
399 Requires: libgcj-devel = %{epoch}:%{GCC_VERSION}
401 %description -n libgcj-static
402 Static Java Class Libraries.
404 %description -n libgcj-static -l es
405 Bibliotecas estáticas de clases de Java.
407 %description -n libgcj-static -l pl
408 Statyczne Biblioteki Klas Javy.
410 %package -n libstdc++
411 Summary: GNU c++ library
412 Summary(es): Biblioteca C++ de GNU
413 Summary(pl): Biblioteki GNU C++
414 Summary(pt_BR): Biblioteca C++ GNU
416 Version: %{GCC_VERSION}
418 Obsoletes: libstdc++3
420 %description -n libstdc++
421 This is the GNU implementation of the standard C++ libraries, along
422 with additional GNU tools. This package includes the shared libraries
423 necessary to run C++ applications.
425 %description -n libstdc++ -l de
426 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
427 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
428 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
430 %description -n libstdc++ -l es
431 Este es el soporte de las bibliotecas padrón del C++, junto con
432 herramientas GNU adicionales. El paquete incluye las bibliotecas
433 compartidas necesarias para ejecutar aplicaciones C++.
435 %description -n libstdc++ -l fr
436 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
437 des outils GNU supplémentaires. Ce package comprend les librairies
438 partagées nécessaires à l'exécution d'application C++.
440 %description -n libstdc++ -l pl
441 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
442 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
443 uruchomienia aplikacji napisanych w C++.
445 %description -n libstdc++ -l pt_BR
446 Este pacote é uma implementação da biblioteca padrão C++ v3, um
447 subconjunto do padrão ISO 14882.
449 %description -n libstdc++ -l tr
450 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
451 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
453 %package -n libstdc++-devel
454 Summary: Header files and documentation for C++ development
455 Summary(de): Header-Dateien zur Entwicklung mit C++
456 Summary(es): Ficheros de cabecera y documentación para desarrollo C++
457 Summary(fr): Fichiers d'en-tête et biblitothèques pour développer en C++
458 Summary(pl): Pliki nag³ówkowe i dokumentacja do biblioteki standardowej C++
459 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento em C++
460 Summary(tr): C++ ile program geliþtirmek için gerekli dosyalar
461 Group: Development/Libraries
462 Version: %{GCC_VERSION}
463 Requires: libstdc++ = %{epoch}:%{GCC_VERSION}
464 Requires: %{name}-c++ = %{epoch}:%{GCC_VERSION}
465 Obsoletes: libg++-devel
466 Obsoletes: libstdc++3-devel
468 %description -n libstdc++-devel
469 This is the GNU implementation of the standard C++ libraries. This
470 package includes the header files needed for C++ development and
471 library documentation.
473 %description -n libstdc++-devel -l es
474 Este es el soporte de las bibliotecas padrón del lenguaje C++. Este paquete
475 incluye los archivos de inclusión y bibliotecas necesarios para desarrollo de
476 programas en lenguaje C++.
478 %description -n libstdc++-devel -l pl
479 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
480 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
481 programowaniu w jêzyku C++ oraz dokumentacja biblioteki standardowej.
483 %description -n libstdc++-devel -l pt_BR
484 Este pacote inclui os arquivos de inclusão e bibliotecas necessárias para
485 desenvolvimento de programas C++.
487 %package -n libstdc++-static
488 Summary: Static C++ standard library
489 Summary(es): Biblioteca estándar estática de C++
490 Summary(pl): Statyczna biblioteka standardowa C++
491 Group: Development/Libraries
492 Version: %{GCC_VERSION}
493 Requires: libstdc++-devel = %{epoch}:%{GCC_VERSION}
495 %description -n libstdc++-static
496 Static C++ standard library.
498 %description -n libstdc++-static -l es
499 Biblioteca estándar estática de C++.
501 %description -n libstdc++-static -l pl
502 Statycza biblioteka standardowa C++.
505 Summary: Foreign Function Interface library
506 Summary(es): Biblioteca de interfaz de funciones ajenas
507 Summary(pl): Biblioteka zewnêtrznych wywo³añ funkcji
509 Version: %{GCC_VERSION}
511 %description -n libffi
512 The libffi library provides a portable, high level programming
513 interface to various calling conventions. This allows a programmer to
514 call any function specified by a call interface description at run
517 %description -n libffi -l es
518 La biblioteca libffi provee una interfaz portable de programación de alto
519 nivel para varias convenciones de llamada. Ello permite que un programador
520 llame una función cualquiera especificada por una descripción de interfaz
521 de llamada en el tiempo de ejecución.
523 %description -n libffi -l pl
524 Biblioteka libffi dostarcza przno¶nego, wysokopoziomowego miêdzymordzia
525 do ró¿nych konwencji wywo³añ funkcji. Pozwala to programi¶cie wywo³ywaæ
526 dowolne funkcje podaj±c konwencjê wywo³ania w czasie wykonania.
528 %package -n libffi-devel
529 Summary: Development files for Foreign Function Interface library
530 Summary(es): Ficheros de desarrollo para libffi
531 Summary(pl): Pliki nag³ówkowe dla libffi
532 Group: Development/Libraries
533 Version: %{GCC_VERSION}
534 Requires: libffi = %{epoch}:%{GCC_VERSION}
536 %description -n libffi-devel
537 Development files for Foreign Function Interface library.
539 %description -n libffi-devel -l es
540 Ficheros de desarrollo para libffi.
542 %description -n libffi-devel -l pl
543 Pliki nag³ówkowe dla libffi.
545 %package -n libffi-static
546 Summary: Static Foreign Function Interface library
547 Summary(es): Biblioteca libffi estática
548 Summary(pl): Statyczna biblioteka libffi
549 Group: Development/Libraries
550 Version: %{GCC_VERSION}
551 Requires: libffi-devel = %{epoch}:%{GCC_VERSION}
553 %description -n libffi-static
554 Static Foreign Function Interface library.
556 %description -n libffi-static -l es
557 Biblioteca libffi estática.
559 %description -n libffi-static -l pl
560 Statyczna biblioteka libffi.
563 Summary: Ada support for gcc
564 Summary(es): Soporte de Ada para gcc
565 Summary(pl): Obs³uga Ady do gcc
566 Group: Development/Languages
567 Version: %{GCC_VERSION}
568 Requires: libgnat = %{epoch}:%{GCC_VERSION}
569 Requires: gcc = %{epoch}:%{GCC_VERSION}
571 Obsoletes: gnat-devel
574 This package adds experimental support for compiling Ada programs.
576 %description ada -l es
577 Este paquete añade soporte experimental para compilar programas en Ada.
579 %description ada -l pl
580 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów
584 Summary: Ada standard libraries
585 Summary(es): Bibliotecas estándares de Ada
586 Summary(pl): Biblioteki standardowe dla Ady
588 Version: %{GCC_VERSION}
592 %description -n libgnat
593 This package contains shared libraries needed to run programs written
596 %description -n libgnat -l es
597 Este paquete contiene las bibliotecas compartidas necesarias para ejecutar
598 programas escritos en Ada.
600 %description -n libgnat -l pl
601 Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów napisanych
604 %package -n libgnat-static
605 Summary: Static Ada standard libraries
606 Summary(pl): Statyczne biblioteki standardowe dla Ady
608 Version: %{GCC_VERSION}
609 Obsoletes: gnat-static
611 %description -n libgnat-static
612 This package contains static libraries for programs written in Ada.
614 %description -n libgnat-static -l pl
615 Ten pakiet zawiera biblioteki statyczne dla programów napisanych w
619 Summary: Ksi support for gcc
620 Summary(es): Soporte de Ksi para gcc
621 Summary(pl): Obs³uga Ksi dla gcc
622 Version: %{GCC_VERSION}.%{KSI_VERSION}
623 Group: Development/Languages
624 Requires: gcc = %{epoch}:%{GCC_VERSION}
627 This package adds experimental support for compiling Ksi programs
628 into native code. You proabably don't need it, unless your are going
629 to develop a compiler using Ksi as intermediate representation or
630 you are using such compiler (like Gont).
632 %description ksi -l es
633 Este paquete añade soporte experimental para compilar programas de Ksi
634 en código nativo. Probablemento no lo necesitará, a menos que vaya
635 a desarrollar un compilador que use Ksi como representación intermedia
636 o use tal compilador (como Gont).
638 %description ksi -l pl
639 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów
640 w Ksi do kodu maszynowego. Prawdopodobnie nie potrzebujesz go, chyba
641 ¿e zamierzasz pisaæ kompilator u¿ywaj±cy Ksi jako reprezentacji
642 po¶rednicz±cej, lub u¿ywasz takiego kompilatora (jak Gont).
645 Summary: The C Pre Processor
646 Summary(es): El preprocesador de C
647 Summary(pl): Preprocesor C
648 Summary(pt_BR): Preprocessador para a linguagem C
649 Group: Development/Languages
650 Version: %{GCC_VERSION}
655 The C preprocessor is a "macro processor" that is used automatically
656 by the C compiler to transform your program before actual compilation.
657 It is called a macro processor because it allows you to define
658 "macros", which are brief abbreviations for longer constructs.
660 The C preprocessor provides four separate facilities that you can use
663 - Inclusion of header files. These are files of declarations that can
664 be substituted into your program.
665 - Macro expansion. You can define "macros", which are abbreviations
666 for arbitrary fragments of C code, and then the C preprocessor will
667 replace the macros with their definitions throughout the program.
668 - Conditional compilation. Using special preprocessing directives, you
669 can include or exclude parts of the program according to various
671 - Line control. If you use a program to combine or rearrange source
672 files into an intermediate file which is then compiled, you can use
673 line control to inform the compiler of where each source line
674 originally came from.
676 %description -n cpp -l es
677 El preprocesador de C es un "procesador de macros" que es usado
678 automáticamente por el compilador C para transformar su programa antes de
679 que éste se actualmente compile. Se llama procesador de macros porque
680 permite definir "macros", los que son abreviaciones concisas para
681 construcciones más largas.
683 El preprocesador C provee cuatro cualidadedes distintas que puede usar como
686 - Inclusión de ficheros de cabecera. Éstos son ficheros de declaraciones
687 que pueden incorporarse a su programa.
688 - Expansión de macros. Puede definir "macros", los que son abreviaciones
689 para fragmentos arbitrarios de código C, y a lo largo del programa el
690 preprocesador sustituirá los macros con sus definiciones.
691 - Compilación condicional. Usando especiales directivas del preproceso
692 puede incluir o excluir partes del programa según varias condiciones.
693 - Control de líneas. Si usa un programa para combinar o reorganizar el código
694 fuente en un fichero intermedio que luego es compilado, puede usar control
695 de líneas para informar el compilador de dónde origina cada línea.
697 %description -n cpp -l pl
698 Przeprocesor C jest "makro procesorem" który jest automatycznie
699 u¿ywany przez kompilator C do obróbki kompilowanego programu przed
700 w³a¶ciw± kompilacj±. Jest on nazywany makroprocesorem, poniewa¿
701 umo¿liwia definiowanie i rozwijanie makr umo¿liwiaj±cych skracanie
702 d³ugich konstrukcji w jêzyku C.
704 Preprocesor C umo¿liwia wykonywanie czterech ró¿nych typów operacji:
706 - Do³±czanie plików (np. nag³ówkowych). Wstawia pliki w miejscu
707 deklaracji polecenia do³±czenia innego pliku.
708 - Rozwijanie makr. Mo¿na definiowaæ "makra" nadaj±c im identyfikatory,
709 których pó¼niejsze u¿ycie powoduje podczas rozwijania podmienienie
710 indentyfikatora deklarowan± wcze¶niej warto¶ci±.
711 - Kompilacja warunkowa. W zale¿no¶ci od obecno¶ci symboli i dyrektyw w
712 ¶rodowisku preprocesora s± w³±czane warunkowo, b±d¼ nie, pewne
713 fragmenty obrabianego strumienia tekstów.
714 - Kontrola linii ¼ród³a. Niezale¿nie od tego jakim przeobra¿eniom
715 podlega wynikowy strumieñ danych w wyniku rozwijania makr i do³±czania
716 s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego
717 odpowiada fragment pliku wynikowego.
719 %description -n cpp -l pt_BR
720 O preprocessador C é um "processador de macros", que é utilizado pelo
721 compilador C para fazer algumas modificações no seu programa, antes da
722 compilação em si. Ele é chamado de "processador de macros" porque
723 permite a você definir "macros", que são abreviações para construções
726 O preprocessador C fornece quatro funcionalidades básicas: inclusão de
727 arquivos de cabeçalho; expansão de macros; compilação condicional;
728 e controle da numeração das linhas do programa.
731 %setup -q -a1 -n %{name}-%{GCC_VERSION}
732 mv ksi-%{KSI_VERSION} gcc/ksi
755 %{?_with_pp:%patch25 -p1}
757 # because we distribute modified version of gcc...
758 perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
759 perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
762 # cd gcc && autoconf; cd ..
763 # autoconf is not needed!
764 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
766 CFLAGS="%{rpmcflags}" \
767 CXXFLAGS="%{rpmcflags}" \
768 TEXCONFIG=false ../configure \
769 --prefix=%{_prefix} \
770 --infodir=%{_infodir} \
771 --mandir=%{_mandir} \
773 --enable-threads=posix \
774 --enable-__cxa_atexit \
775 --enable-languages="c,c++,f77%{!?_without_objc:,objc}%{!?_without_ada:,ada}%{!?_without_java:,java},ksi" \
783 --with-slibdir=%{_slibdir} \
787 PATH=$PATH:/sbin:%{_sbindir}
790 %{__make} -C obj-%{_target_platform} bootstrap-lean \
791 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
795 %if 0%{!?_without_ada:1}
796 %{__make} -C obj-%{_target_platform}/gcc gnatlib gnattools gnatlib-shared \
797 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
803 rm -rf $RPM_BUILD_ROOT
804 install -d $RPM_BUILD_ROOT{/lib,%{_datadir},%{_infodir}}
806 cd obj-%{_target_platform}
807 PATH=$PATH:/sbin:%{_sbindir}
810 DESTDIR=$RPM_BUILD_ROOT
813 ln -f $RPM_BUILD_ROOT%{_bindir}/sparc64-pld-linux-gcc \
814 $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
817 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
818 echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
820 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
821 echo ".so g77.1" > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
823 %if 0%{!?_without_ada:1}
824 # move ada shared libraries to proper place...
825 mv $RPM_BUILD_ROOT%{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/*.so.1 \
826 $RPM_BUILD_ROOT%{_libdir}/
827 # check if symlink to be made is valid
828 test -f $RPM_BUILD_ROOT%{_libdir}/libgnat-3.15.so.1
829 ln -sf libgnat-3.15.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat-3.15.so
830 ln -sf libgnarl-3.15.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl-3.15.so
831 ln -sf libgnat-3.15.so $RPM_BUILD_ROOT%{_libdir}/libgnat.so
832 ln -sf libgnarl-3.15.so $RPM_BUILD_ROOT%{_libdir}/libgnarl.so
835 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
839 %if %{!?_without_java:1}%{?_without_java:0}
841 cp -f libjava/doc/cni.sgml libjava/READ* java-doc
842 cp -f fastjar/README java-doc/README.fastjar
843 cp -f libffi/README java-doc/README.libffi
844 cp -f libffi/LICENSE java-doc/LICENSE.libffi
847 %if %{!?_without_objc:1}0
848 cp -f libobjc/README gcc/objc/README.libobjc
851 # avoid -L poisoning in *.la - there should be only -L%{_libdir}/gcc-lib/*/%{version}
852 for f in libstdc++.la libsupc++.la %{!?_without_java:libgcj.la} ; do
853 perl -pi -e 's@-L[^ ]*[acs.] @@g' $RPM_BUILD_ROOT%{_libdir}/$f
855 # normalize libdir, to avoid propagation of unnecessary RPATHs by libtool
856 for f in libstdc++.la libsupc++.la libg2c.la \
857 %{!?_without_java:libgcj.la lib-org-w3c-dom.la lib-org-xml-sax.la libffi.la} \
858 %{!?_without_objc:libobjc.la}; do
859 perl -pi -e "s@^libdir='.*@libdir='/usr/lib'@" $RPM_BUILD_ROOT%{_libdir}/$f
862 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
863 mv -f $RPM_BUILD_ROOT%{_mandir}/ja/man1/{cccp,cpp}.1
865 # include/ contains install-tools/include/* and headers that were fixed up
866 # by fixincludes, we don't want former
867 gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc-lib/%{_target_cpu}*/*/)
869 # we have to save these however
870 mv -f $gccdir/include/{%{!?_without_objc:objc,}g2c.h,syslimits.h%{!?_without_java:,gcj}} $gccdir/tmp
871 rm -rf $gccdir/include
872 mv -f $gccdir/tmp $gccdir/include
873 cp $gccdir/install-tools/include/*.h $gccdir/include
874 # but we don't want anything more from install-tools
875 rm -rf $gccdir/install-tools/
878 %find_lang libstdc\+\+
881 rm -rf $RPM_BUILD_ROOT
884 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
887 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
890 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
893 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
896 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
899 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
902 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
905 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
908 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
911 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
913 %post -p /sbin/ldconfig -n libgcc
914 %postun -p /sbin/ldconfig -n libgcc
915 %post -p /sbin/ldconfig -n libstdc++
916 %postun -p /sbin/ldconfig -n libstdc++
917 %post -p /sbin/ldconfig -n libobjc
918 %postun -p /sbin/ldconfig -n libobjc
919 %post -p /sbin/ldconfig -n libg2c
920 %postun -p /sbin/ldconfig -n libg2c
921 %post -p /sbin/ldconfig -n libgcj
922 %postun -p /sbin/ldconfig -n libgcj
923 %post -p /sbin/ldconfig -n libgnat
924 %postun -p /sbin/ldconfig -n libgnat
925 %post -p /sbin/ldconfig -n libffi
926 %postun -p /sbin/ldconfig -n libffi
928 %files -f %{name}.lang
929 %defattr(644,root,root,755)
931 %dir %{_libdir}/gcc-lib
932 %dir %{_libdir}/gcc-lib/%{_target_cpu}*
933 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*
934 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/include
935 %attr(755,root,root) %{_bindir}/%{_target_cpu}*-gcc*
936 %attr(755,root,root) %{_bindir}/gcc
937 %attr(755,root,root) %{_bindir}/gccbug
938 %attr(755,root,root) %{_bindir}/gcov
939 %attr(755,root,root) %{_bindir}/cc
941 %{_mandir}/man1/gcc.1*
942 %{_mandir}/man1/cc.1*
943 %{_mandir}/man1/gcov.1*
944 %lang(fr) %{_mandir}/fr/man1/gcc.1*
945 %lang(ja) %{_mandir}/ja/man1/gcc.1*
948 %attr(755,root,root) %{_slibdir}*/lib*.so
949 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc.a
950 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc_eh.a
951 %{_libdir}/gcc-lib/%{_target_cpu}*/*/specs
952 %attr(644,root,root) %{_libdir}*/gcc-lib/%{_target_cpu}*/*/crt*.o
954 %{_libdir}/gcc-lib/%{_target_cpu}*/*/*/libgcc.a
955 %{_libdir}/gcc-lib/%{_target_cpu}*/*/*/libgcc_eh.a
956 %attr(644,root,root) %{_libdir}*/gcc-lib/%{_target_cpu}*/*/*/crt*.o
959 %attr(644,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/ecrt*.o
960 %attr(644,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/ncrt*.o
961 %{_libdir}/gcc-lib/%{_target_cpu}*/*/nof
964 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1
965 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/collect2
967 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/*.h
968 %exclude %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/g2c.h
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_slibdir}*/lib*.so.*
975 %defattr(644,root,root,755)
976 %attr(755,root,root) %{_bindir}/g++
977 %attr(755,root,root) %{_bindir}/%{_target_cpu}*-g++
978 %attr(755,root,root) %{_bindir}/c++
979 %attr(755,root,root) %{_bindir}/%{_target_cpu}*-c++
980 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1plus
981 %{_libdir}*/libsupc++.la
983 %{_libdir}/nof/libsupc++.la
984 %{_libdir}/nof/libsupc++.a
986 %{_libdir}*/libsupc++.a
987 %{_mandir}/man1/g++.1*
988 %lang(ja) %{_mandir}/ja/man1/g++.1*
990 %files -n libstdc++ -f libstdc++.lang
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_libdir}*/libstdc++.so.*.*.*
994 %attr(755,root,root) %{_libdir}/nof/libstdc++.so.*.*.*
997 %files -n libstdc++-devel
998 %defattr(644,root,root,755)
999 %doc libstdc++-v3/docs/html
1000 %dir %{_includedir}/c++
1001 %{_includedir}/c++/%{GCC_VERSION}
1002 %attr(755,root,root) %{_libdir}*/libstdc++.so
1003 %{_libdir}*/libstdc++.la
1005 %attr(755,root,root) %{_libdir}/nof/libstdc++.so
1006 %{_libdir}/nof/libstdc++.la
1009 %files -n libstdc++-static
1010 %defattr(644,root,root,755)
1011 %{_libdir}*/libstdc++.a
1013 %{_libdir}/nof/libstdc++.a
1016 %if %{!?_without_objc:1}0
1018 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1obj
1021 %attr(755,root,root) %{_libdir}*/libobjc.so
1022 %{_libdir}*/libobjc.la
1024 %attr(755,root,root) %{_libdir}/nof/libobjc.so
1025 %{_libdir}/nof/libobjc.la
1027 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/objc
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_libdir}*/libobjc.so.*.*.*
1033 %attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.*
1036 %files -n libobjc-static
1037 %defattr(644,root,root,755)
1038 %{_libdir}*/libobjc.a
1040 %{_libdir}/nof/libobjc.a
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/g77
1047 %attr(755,root,root) %{_bindir}/f77
1049 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/f771
1050 %{_libdir}*/libfrtbegin.a
1051 %{_libdir}*/libg2c.la
1052 %attr(755,root,root) %{_libdir}*/libg2c.so
1054 %{_libdir}/nof/libfrtbegin.a
1055 %{_libdir}/nof/libg2c.la
1056 %attr(755,root,root) %{_libdir}/nof/libg2c.so
1058 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/g2c.h
1059 %{_mandir}/man1/g77.1*
1060 %{_mandir}/man1/f77.1*
1061 %lang(ja) %{_mandir}/ja/man1/g77.1*
1062 %lang(ja) %{_mandir}/ja/man1/f77.1*
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_libdir}*/libg2c.so.*.*.*
1068 %attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.*
1071 %files -n libg2c-static
1072 %defattr(644,root,root,755)
1073 %{_libdir}*/libg2c.a
1075 %{_libdir}/nof/libg2c.a
1078 %if %{!?_without_java:1}%{?_without_java:0}
1080 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/gcj*
1083 %attr(755,root,root) %{_bindir}/gij
1084 %attr(755,root,root) %{_bindir}/jcf-dump
1085 %attr(755,root,root) %{_bindir}/jv-*
1086 %attr(755,root,root) %{_bindir}/grepjar
1087 %attr(755,root,root) %{_bindir}/%{_target_cpu}*-gcj
1088 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jc1
1089 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jvgenmain
1091 %{_mandir}/man1/jcf-*
1092 %{_mandir}/man1/jv-*
1093 %{_mandir}/man1/gij*
1094 %{_mandir}/man1/gcj*
1095 %{_mandir}/man1/grepjar*
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_bindir}/rmi*
1100 %attr(755,root,root) %{_bindir}/jar
1101 %{_mandir}/man1/rmi*
1102 %{_mandir}/man1/jar*
1103 %{_infodir}/fastjar*
1106 %defattr(644,root,root,755)
1107 %attr(755,root,root) %{_bindir}/addr2name.awk
1108 %attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.*
1109 %attr(755,root,root) %{_libdir}/lib-org*.so.*.*.*
1111 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so.*
1114 %files -n libgcj-devel
1115 %defattr(644,root,root,755)
1117 %{_includedir}/javax
1118 #%%{_includedir}/org
1121 %{_includedir}/gnu/*
1122 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/gcj
1123 %dir %{_libdir}/security
1124 %{_libdir}/security/*
1125 %dir %{_datadir}/java
1126 %{_datadir}/java/libgcj*.jar
1127 %{_libdir}/lib*cj.spec
1128 %{_libdir}/lib*cj*.la
1129 %attr(755,root,root) %{_libdir}/lib*cj*.so
1130 %attr(755,root,root) %{_libdir}/lib-org-*.so
1131 %{_libdir}/lib-org-*.la
1133 %{_libdir}/nof/lib*cj*.la
1134 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so
1137 %files -n libgcj-static
1138 %defattr(644,root,root,755)
1139 %{_libdir}/lib*cj*.a
1140 %{_libdir}/lib-org-*.a
1142 %{_libdir}/nof/lib*cj*.a
1146 %defattr(644,root,root,755)
1147 %attr(755,root,root) %{_libdir}/libffi-*.so
1149 %files -n libffi-devel
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_libdir}/libffi.so
1152 %{_libdir}/libffi.la
1155 %files -n libffi-static
1156 %defattr(644,root,root,755)
1160 %if 0%{!?_without_ada:1}
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/gnat1
1164 %{_libdir}/gcc-lib/%{_target_cpu}*/*/adainclude
1165 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib
1166 %{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/*.ali
1168 %{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/libgmem.a
1170 %{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/Makefile.adalib
1171 %attr(755,root,root) %{_bindir}/gnat*
1173 %attr(755,root,root) %{_libdir}/libgnat*.so
1174 %attr(755,root,root) %{_libdir}/libgnarl*.so
1177 %defattr(644,root,root,755)
1178 %attr(755,root,root) %{_libdir}/libgna*.so.1
1180 %files -n libgnat-static
1181 %defattr(644,root,root,755)
1182 %{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/libgna*.a
1186 %defattr(644,root,root,755)
1187 %doc gcc/ksi/README gcc/ksi/NEWS gcc/ksi/t/*.{ksi,c,foo}
1189 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/ksi1
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) %{_slibdir}/cpp
1194 %attr(755,root,root) %{_bindir}/cpp
1195 %{_mandir}/man1/cpp.1*
1196 %lang(ja) %{_mandir}/ja/man1/cpp.1*