3 %bcond_without ada # build without ADA support
4 %bcond_without java # build without Java support
5 %bcond_without objc # build without objc support
6 %bcond_with bootstrap # don't BR gcc(ada) (temporary for Ac upgrade bootstrap)
8 %define DASHED_SNAP %{nil}
9 %define SNAP %(echo %{DASHED_SNAP} | sed -e "s#-##g")
10 %define GCC_VERSION 3.3.5
11 %define KSI_VERSION 1.1.0.1567
13 Summary: GNU Compiler Collection: the C compiler and shared files
14 Summary(es): Colección de compiladores GNU: el compilador C y ficheros compartidos
15 Summary(pl): Kolekcja kompilatorów GNU: kompilator C i pliki wspó³dzielone
16 Summary(pt_BR): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
18 Version: %{GCC_VERSION}
22 Group: Development/Languages
23 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{GCC_VERSION}/%{name}-%{GCC_VERSION}.tar.bz2
24 # Source0-md5: 70ee088b498741bb08c779f9617df3a5
25 # Source0-size: 23833856
26 Source1: ftp://ftp.pld-linux.org/people/malekith/ksi/ksi-%{KSI_VERSION}.tar.gz
27 # Source1-md5: 66f07491b44f06928fd95b0e65bb8cd3
28 Source2: http://ep09.pld-linux.org/~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 Patch4: %{name}-nodebug.patch
35 Patch5: %{name}-cse-find_best_addr.patch
36 Patch6: %{name}-alpha-regno-mode.patch
37 Patch7: %{name}-amd64-thunk.patch
38 # -- stolen patches from RH --
39 Patch10: gcc32-ada-link.patch
40 Patch11: gcc32-boehm-gc-libs.patch
41 Patch12: gcc32-bogus-inline.patch
42 Patch13: gcc32-c++-nrv-test.patch
43 Patch14: gcc32-c++-tsubst-asm.patch
44 Patch15: gcc32-debug-pr7241.patch
45 Patch16: gcc32-duplicate-decl.patch
46 Patch17: gcc32-dwarf2-pr6381.patch
47 Patch18: gcc32-dwarf2-pr6436-test.patch
48 Patch19: gcc32-fde-merge-compat.patch
49 Patch20: gcc32-i386-memtest-test.patch
50 Patch21: gcc32-inline-label.patch
51 Patch22: gcc32-java-no-rpath.patch
52 Patch23: gcc32-test-rh65771.patch
53 Patch24: gcc32-test-rotate.patch
54 Patch25: gcc-cmpi.patch
55 BuildRequires: autoconf
56 BuildRequires: automake
57 BuildRequires: binutils >= 2:2.15.90.0.3
59 BuildRequires: fileutils >= 4.0.41
60 %{?with_ada:%{!?with_bootstrap:BuildRequires: gcc(ada)}}
61 %{?with_ada:BuildRequires: gcc-ada}
62 BuildRequires: gettext-devel
63 BuildRequires: glibc-devel >= 2.2.5-20
64 BuildRequires: perl-devel
65 BuildRequires: texinfo >= 4.1
66 BuildRequires: zlib-devel
67 Requires: binutils >= 2:2.15.90.0.3
68 Requires: cpp = %{epoch}:%{GCC_VERSION}-%{release}
70 Requires: libgcc = %{epoch}:%{GCC_VERSION}-%{release}
71 %{?with_ada:Provides: gcc(ada)}
72 Conflicts: glibc-devel < 2.2.5-20
73 URL: http://gcc.gnu.org/
74 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76 %define _slibdir /%{_lib}
78 %define _slibdir64 /lib64
79 %define _libdir /usr/lib
80 %define rpmcflags -O2 -mtune=ultrasparc
84 A compiler aimed at integrating all the optimizations and features
85 necessary for a high-performance and stable development environment.
87 This package contains the C compiler and some files shared by various
88 parts of the GNU Compiler Collection. In order to use another GCC
89 compiler you will need to install the appropriate subpackage.
92 Un compilador destinado a la integración de todas las optimalizaciones
93 y características necesarias para un entorno de desarrollo eficaz y
96 Este paquete contiene el compilador de C y unos ficheros compartidos
97 por varias parted de la colección de compiladores GNU (GCC). Para usar
98 otro compilador de GCC será necesario que instale el subpaquete
102 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
103 wyprodukowania szybkiego i stabilnego kodu wynikowego.
105 Ten pakiet zawiera kompilator C i pliki wspó³dzielone przez ró¿ne
106 czê¶ci kolekcji kompilatorów GNU (GCC). ¯eby u¿ywaæ innego kompilatora
107 z GCC, trzeba zainstalowaæ odpowiedni podpakiet.
109 %description -l pt_BR
110 Este pacote adiciona infraestrutura básica e suporte a linguagem C ao
111 GNU Compiler Collection.
114 Summary: Shared gcc library
115 Summary(es): Biblioteca compartida de gcc
116 Summary(pl): Biblioteka gcc
117 Summary(pt_BR): Biblioteca runtime para o GCC
119 Version: %{GCC_VERSION}
122 %description -n libgcc
125 %description -n libgcc -l es
126 Biblioteca compartida de gcc.
128 %description -n libgcc -l pl
129 Biblioteka dynamiczna gcc.
131 %description -n libgcc -l pt_BR
132 Biblioteca runtime para o GCC.
135 Summary: C++ support for gcc
136 Summary(es): Soporte de C++ para gcc
137 Summary(pl): Obs³uga C++ dla gcc
138 Summary(pt_BR): Suporte C++ para o gcc
139 Group: Development/Languages
140 Requires: %{name} = %{epoch}:%{GCC_VERSION}-%{release}
145 This package adds C++ support to the GNU Compiler Collection. It
146 includes support for most of the current C++ specification, including
147 templates and exception handling. It does not include a standard C++
148 library, which is available separately.
150 %description c++ -l de
151 Dieses Paket enthält die C++-Unterstützung für den
152 GNU-Compiler-Collection. Es unterstützt die aktuelle
153 C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine
154 C++-Standard-Library ist nicht enthalten - sie ist getrennt
157 %description c++ -l es
158 Este paquete añade soporte de C++ al GCC (colección de compiladores
159 GNU). Ello incluye el soporte para la mayoría de la especificación
160 actual de C++, incluyendo plantillas y manejo de excepciones. No
161 incluye la biblioteca estándar de C++, la que es disponible separada.
163 %description c++ -l fr
164 Ce package ajoute un support C++ a la collection de compilateurs GNU.
165 Il comprend un support pour la plupart des spécifications actuelles de
166 C++, dont les modéles et la gestion des exceptions. Il ne comprend pas
167 une bibliothéque C++ standard, qui est disponible séparément.
169 %description c++ -l pl
170 Ten pakiet dodaje obs³ugê C++ do kompilatora gcc. Ma wsparcie dla
171 du¿ej ilo¶ci obecnych specyfikacji C++, nie zawiera natomiast
172 standardowych bibliotek C++, które s± w oddzielnym pakiecie.
174 %description c++ -l pt_BR
175 Este pacote adiciona suporte C++ para o gcc.
177 %description c++ -l tr
178 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
179 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
180 C++ kitaplýðý bu pakette yer almaz.
183 Summary: Objective C support for gcc
184 Summary(de): Objektive C-Unterstützung für gcc
185 Summary(es): Soporte de Objective C para gcc
186 Summary(fr): Gestion d'Objective C pour gcc
187 Summary(pl): Obs³uga obiektowego C dla kompilatora gcc
188 Summary(tr): gcc için Objective C desteði
189 Group: Development/Languages
190 Requires: %{name} = %{epoch}:%{GCC_VERSION}-%{release}
191 Requires: libobjc = %{epoch}:%{GCC_VERSION}-%{release}
196 This package adds Objective C support to the GNU Compiler Collection.
197 Objective C is a object oriented derivative of the C language, mainly
198 used on systems running NeXTSTEP. This package does not include the
199 standard objective C object library.
201 %description objc -l de
202 Dieses Paket ergänzt den GNU-Compiler-Collection durch
203 Objective-C-Support. Objective C ist ein objektorientiertes Derivat
204 von C, das zur Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt.
205 Die Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
207 %description objc -l es
208 Este paquete añade soporte de Objective C al GCC (colección de
209 compiladores GNU). Objective C es un lenguaje orientado a objetos
210 derivado de C, principalmente usado en sistemas que funcionan bajo
211 NeXTSTEP. El paquete no incluye la biblioteca de objetos estándar de
214 %description objc -l fr
215 Ce package ajoute un support Objective C a la collection de
216 compilateurs GNU. L'Objective C est un langage orienté objetdérivé du
217 langage C, principalement utilisé sur les systèmes NeXTSTEP. Ce
218 package n'inclue pas la bibliothéque Objective C standard.
220 %description objc -l pl
221 Ten pakiet dodaje obs³ugê obiektowego C do kompilatora gcc. Obiektowe
222 C (objc) jest zorientowan± obiektowo pochodn± jêzyka C, u¿ywan±
223 g³ównie w systemach u¿ywaj±cych NeXTSTEP. W pakiecie nie ma
224 standardowej biblioteki objc (która znajduje siê w osobnym pakiecie).
226 %description objc -l tr
227 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
228 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
229 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
230 kitaplýðý bu pakette yer almaz.
233 Summary: Objective C Libraries
234 Summary(es): Bibliotecas de Objective C
235 Summary(pl): Biblioteki Obiektowego C
237 Version: %{GCC_VERSION}
240 %description -n libobjc
241 Objective C Libraries.
243 %description -n libobjc -l es
244 Bibliotecas de Objective C.
246 %description -n libobjc -l pl
247 Biblioteki Obiektowego C.
249 %package -n libobjc-static
250 Summary: Static Objective C Libraries
251 Summary(es): Bibliotecas estáticas de Objective C
252 Summary(pl): Statyczne Biblioteki Obiektowego C
253 Group: Development/Libraries
254 Version: %{GCC_VERSION}
255 Requires: libobjc = %{epoch}:%{GCC_VERSION}-%{release}
257 %description -n libobjc-static
258 Static Objective C Libraries.
260 %description -n libobjc-static -l es
261 Bibliotecas estáticas de Objective C.
263 %description -n libobjc-static -l pl
264 Statyczne biblioteki Obiektowego C.
267 Summary: Fortran 77 support for gcc
268 Summary(es): Soporte de Fortran 77 para gcc
269 Summary(pl): Obs³uga Fortranu 77 dla gcc
270 Summary(pt_BR): Suporte Fortran 77 para o GCC
271 Group: Development/Languages/Fortran
272 Version: %{GCC_VERSION}
273 Requires: %{name} = %{epoch}:%{GCC_VERSION}-%{release}
274 Requires: libg2c = %{epoch}:%{GCC_VERSION}-%{release}
278 This package adds support for compiling Fortran 77 programs with the
281 %description g77 -l es
282 Este paquete añade soporte para compilar programas escritos en Fortran
283 77 con el compilador GNU.
285 %description g77 -l pl
286 Ten pakiet dodaje obs³ugê Fortranu 77 do kompilatora gcc. Jest
287 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
289 %description g77 -l pt_BR
290 Suporte Fortran 77 para o GCC.
293 Summary: Fortran 77 Libraries
294 Summary(es): Bibliotecas de Fortran 77
295 Summary(pl): Biblioteki Fortranu 77
297 Version: %{GCC_VERSION}
299 %description -n libg2c
300 Fortran 77 Libraries.
302 %description -n libg2c -l es
303 Bibliotecas de Fortran 77.
305 %description -n libg2c -l pl
306 Biblioteki Fortranu 77.
308 %package -n libg2c-static
309 Summary: Static Fortran 77 Libraries
310 Summary(es): Bibliotecas estáticas de Fortran 77
311 Summary(pl): Statyczne Biblioteki Fortranu 77
312 Group: Development/Libraries
313 Version: %{GCC_VERSION}
314 Requires: libg2c = %{epoch}:%{GCC_VERSION}-%{release}
316 %description -n libg2c-static
317 Static Fortran 77 Libraries.
319 %description -n libg2c -l es
320 Bibliotecas estáticas de Fortran 77.
322 %description -n libg2c-static -l pl
323 Statyczne biblioteki Fortranu 77.
326 Summary: Java support for gcc
327 Summary(es): Soporte de Java para gcc
328 Summary(pl): Obs³uga Javy dla gcc
329 Group: Development/Languages/Java
330 Version: %{GCC_VERSION}
331 Requires: %{name} = %{epoch}:%{GCC_VERSION}-%{release}
332 Requires: libgcj-devel = %{epoch}:%{GCC_VERSION}-%{release}
333 Requires: java-shared
334 Provides: gcj = %{epoch}:%{GCC_VERSION}-%{release}
337 This package adds experimental support for compiling Java(tm) programs
338 and bytecode into native code. To use this you will also need the
341 %description java -l es
342 Este paquete añade soporte experimental para compilar programas
343 Java(tm) y su bytecode en código nativo. Para usarlo también va a
344 necesitar el paquete libgcj.
346 %description java -l pl
347 Wsparcie dla kompilowania programów Java(tm) zarówno do bajt-kodu jak i
348 do natywnego kodu. Dodatkowo wymagany jest pakiet libgcj, aby mo¿na
349 by³o przeprowadziæ kompilacjê.
352 Summary: Shared java tools
353 Summary(es): Herramientas compartidas de Java
354 Summary(pl): Wspó³dzielone narzêdzia javy
355 Group: Development/Languages/Java
356 Version: %{GCC_VERSION}
357 Provides: jar = %{epoch}:%{GCC_VERSION}-%{release}
358 Provides: java-shared
361 Obsoletes: java-shared
363 %description java-tools
364 This package contains tools that are common for every Java(tm)
365 implementation, such as rmic or jar.
367 %description java-tools -l es
368 Este paquete contiene herramientas que son comunes para cada
369 implementación de Java(tm), como rmic o jar.
371 %description java-tools -l pl
372 Pakiet ten zawiera narzêdzia wspólne dla ka¿dej implementacji
373 Javy(tm), takie jak rmic czy jar.
376 Summary: Java Class Libraries
377 Summary(es): Bibliotecas de clases de Java
378 Summary(pl): Biblioteki Klas Javy
380 Version: %{GCC_VERSION}
384 %description -n libgcj
385 Java Class Libraries.
387 %description -n libgcj -l es
388 Bibliotecas de clases de Java.
390 %description -n libgcj -l pl
391 Biblioteki Klas Javy.
393 %package -n libgcj-devel
394 Summary: Development files for Java Class Libraries
395 Summary(es): Ficheros de desarrollo para las bibliotecas de clases de Java
396 Summary(pl): Pliki nag³ówkowe dla Bibliotek Klas Javy
397 Group: Development/Libraries
398 Version: %{GCC_VERSION}
399 Requires: %{name}-java = %{epoch}:%{GCC_VERSION}-%{release}
400 Requires: libgcj = %{epoch}:%{GCC_VERSION}-%{release}
401 Obsoletes: libgcj3-devel
403 %description -n libgcj-devel
404 Development files for Java Class Libraries.
406 %description -n libgcj-devel -l es
407 Ficheros de desarrollo para las bibliotecas de clases de Java.
409 %description -n libgcj-devel -l pl
410 Pliki nag³ówkowe dla Bibliotek Klas Javy.
412 %package -n libgcj-static
413 Summary: Static Java Class Libraries
414 Summary(es): Bibliotecas estáticas de clases de Java
415 Summary(pl): Statyczne Biblioteki Klas Javy
416 Group: Development/Libraries
417 Version: %{GCC_VERSION}
418 Requires: libgcj-devel = %{epoch}:%{GCC_VERSION}-%{release}
419 Requires: libstdc++-devel = %{epoch}:%{GCC_VERSION}-%{release}
421 %description -n libgcj-static
422 Static Java Class Libraries.
424 %description -n libgcj-static -l es
425 Bibliotecas estáticas de clases de Java.
427 %description -n libgcj-static -l pl
428 Statyczne Biblioteki Klas Javy.
430 %package -n libstdc++
431 Summary: GNU c++ library
432 Summary(es): Biblioteca C++ de GNU
433 Summary(pl): Biblioteki GNU C++
434 Summary(pt_BR): Biblioteca C++ GNU
436 Version: %{GCC_VERSION}
438 Obsoletes: libstdc++3
440 %description -n libstdc++
441 This is the GNU implementation of the standard C++ libraries, along
442 with additional GNU tools. This package includes the shared libraries
443 necessary to run C++ applications.
445 %description -n libstdc++ -l de
446 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
447 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
448 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
450 %description -n libstdc++ -l es
451 Este es el soporte de las bibliotecas padrón del C++, junto con
452 herramientas GNU adicionales. El paquete incluye las bibliotecas
453 compartidas necesarias para ejecutar aplicaciones C++.
455 %description -n libstdc++ -l fr
456 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
457 des outils GNU supplémentaires. Ce package comprend les librairies
458 partagées nécessaires à l'exécution d'application C++.
460 %description -n libstdc++ -l pl
461 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
462 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
463 uruchomienia aplikacji napisanych w C++.
465 %description -n libstdc++ -l pt_BR
466 Este pacote é uma implementação da biblioteca padrão C++ v3, um
467 subconjunto do padrão ISO 14882.
469 %description -n libstdc++ -l tr
470 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
471 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
473 %package -n libstdc++-devel
474 Summary: Header files and documentation for C++ development
475 Summary(de): Header-Dateien zur Entwicklung mit C++
476 Summary(es): Ficheros de cabecera y documentación para desarrollo C++
477 Summary(fr): Fichiers d'en-tête et biblitothèques pour développer en C++
478 Summary(pl): Pliki nag³ówkowe i dokumentacja do biblioteki standardowej C++
479 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento em C++
480 Summary(tr): C++ ile program geliþtirmek için gerekli dosyalar
481 Group: Development/Libraries
482 Version: %{GCC_VERSION}
483 Requires: %{name}-c++ = %{epoch}:%{GCC_VERSION}-%{release}
484 Requires: libstdc++ = %{epoch}:%{GCC_VERSION}-%{release}
485 Obsoletes: libg++-devel
486 Obsoletes: libstdc++3-devel
488 %description -n libstdc++-devel
489 This is the GNU implementation of the standard C++ libraries. This
490 package includes the header files needed for C++ development and
491 library documentation.
493 %description -n libstdc++-devel -l es
494 Este es el soporte de las bibliotecas padrón del lenguaje C++. Este
495 paquete incluye los archivos de inclusión y bibliotecas necesarios
496 para desarrollo de programas en lenguaje C++.
498 %description -n libstdc++-devel -l pl
499 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
500 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
501 programowaniu w jêzyku C++ oraz dokumentacja biblioteki standardowej.
503 %description -n libstdc++-devel -l pt_BR
504 Este pacote inclui os arquivos de inclusão e bibliotecas necessárias
505 para desenvolvimento de programas C++.
507 %package -n libstdc++-static
508 Summary: Static C++ standard library
509 Summary(es): Biblioteca estándar estática de C++
510 Summary(pl): Statyczna biblioteka standardowa C++
511 Group: Development/Libraries
512 Version: %{GCC_VERSION}
513 Requires: libstdc++-devel = %{epoch}:%{GCC_VERSION}-%{release}
515 %description -n libstdc++-static
516 Static C++ standard library.
518 %description -n libstdc++-static -l es
519 Biblioteca estándar estática de C++.
521 %description -n libstdc++-static -l pl
522 Statyczna biblioteka standardowa C++.
525 Summary: Foreign Function Interface library
526 Summary(es): Biblioteca de interfaz de funciones ajenas
527 Summary(pl): Biblioteka zewnêtrznych wywo³añ funkcji
529 Version: %{GCC_VERSION}
531 %description -n libffi
532 The libffi library provides a portable, high level programming
533 interface to various calling conventions. This allows a programmer to
534 call any function specified by a call interface description at run
537 %description -n libffi -l es
538 La biblioteca libffi provee una interfaz portable de programación de
539 alto nivel para varias convenciones de llamada. Ello permite que un
540 programador llame una función cualquiera especificada por una
541 descripción de interfaz de llamada en el tiempo de ejecución.
543 %description -n libffi -l pl
544 Biblioteka libffi dostarcza przeno¶nego, wysokopoziomowego
545 miêdzymordzia do ró¿nych konwencji wywo³añ funkcji. Pozwala to
546 programi¶cie wywo³ywaæ dowolne funkcje podaj±c konwencjê wywo³ania w
549 %package -n libffi-devel
550 Summary: Development files for Foreign Function Interface library
551 Summary(es): Ficheros de desarrollo para libffi
552 Summary(pl): Pliki nag³ówkowe dla libffi
553 Group: Development/Libraries
554 Version: %{GCC_VERSION}
555 Requires: libffi = %{epoch}:%{GCC_VERSION}-%{release}
557 %description -n libffi-devel
558 Development files for Foreign Function Interface library.
560 %description -n libffi-devel -l es
561 Ficheros de desarrollo para libffi.
563 %description -n libffi-devel -l pl
564 Pliki nag³ówkowe dla libffi.
566 %package -n libffi-static
567 Summary: Static Foreign Function Interface library
568 Summary(es): Biblioteca libffi estática
569 Summary(pl): Statyczna biblioteka libffi
570 Group: Development/Libraries
571 Version: %{GCC_VERSION}
572 Requires: libffi-devel = %{epoch}:%{GCC_VERSION}-%{release}
574 %description -n libffi-static
575 Static Foreign Function Interface library.
577 %description -n libffi-static -l es
578 Biblioteca libffi estática.
580 %description -n libffi-static -l pl
581 Statyczna biblioteka libffi.
584 Summary: Ada support for gcc
585 Summary(es): Soporte de Ada para gcc
586 Summary(pl): Obs³uga Ady do gcc
587 Group: Development/Languages
588 Version: %{GCC_VERSION}
589 Requires: %{name} = %{epoch}:%{GCC_VERSION}-%{release}
590 Requires: libgnat = %{epoch}:%{GCC_VERSION}-%{release}
592 Obsoletes: gnat-devel
595 This package adds experimental support for compiling Ada programs.
597 %description ada -l es
598 Este paquete añade soporte experimental para compilar programas en
601 %description ada -l pl
602 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
606 Summary: Ada standard libraries
607 Summary(es): Bibliotecas estándares de Ada
608 Summary(pl): Biblioteki standardowe dla Ady
610 Version: %{GCC_VERSION}
614 %description -n libgnat
615 This package contains shared libraries needed to run programs written
618 %description -n libgnat -l es
619 Este paquete contiene las bibliotecas compartidas necesarias para
620 ejecutar programas escritos en Ada.
622 %description -n libgnat -l pl
623 Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów
626 %package -n libgnat-static
627 Summary: Static Ada standard libraries
628 Summary(pl): Statyczne biblioteki standardowe dla Ady
630 Version: %{GCC_VERSION}
631 Obsoletes: gnat-static
633 %description -n libgnat-static
634 This package contains static libraries for programs written in Ada.
636 %description -n libgnat-static -l pl
637 Ten pakiet zawiera biblioteki statyczne dla programów napisanych w
641 Summary: Ksi support for gcc
642 Summary(es): Soporte de Ksi para gcc
643 Summary(pl): Obs³uga Ksi dla gcc
644 Version: %{GCC_VERSION}.%{KSI_VERSION}
645 Group: Development/Languages
646 Requires: %{name} = %{epoch}:%{GCC_VERSION}-%{release}
649 This package adds experimental support for compiling Ksi programs into
650 native code. You proabably don't need it, unless your are going to
651 develop a compiler using Ksi as intermediate representation or you are
652 using such compiler (like Gont).
654 %description ksi -l es
655 Este paquete añade soporte experimental para compilar programas de Ksi
656 en código nativo. Probablemento no lo necesitará, a menos que vaya a
657 desarrollar un compilador que use Ksi como representación intermedia o
658 use tal compilador (como Gont).
660 %description ksi -l pl
661 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
662 Ksi do kodu maszynowego. Prawdopodobnie nie potrzebujesz go, chyba ¿e
663 zamierzasz pisaæ kompilator u¿ywaj±cy Ksi jako reprezentacji
664 po¶rednicz±cej, lub u¿ywasz takiego kompilatora (jak Gont).
667 Summary: The C Pre Processor
668 Summary(es): El preprocesador de C
669 Summary(pl): Preprocesor C
670 Summary(pt_BR): Preprocessador para a linguagem C
671 Group: Development/Languages
672 Version: %{GCC_VERSION}
677 The C preprocessor is a "macro processor" that is used automatically
678 by the C compiler to transform your program before actual compilation.
679 It is called a macro processor because it allows you to define
680 "macros", which are brief abbreviations for longer constructs.
682 The C preprocessor provides four separate facilities that you can use
685 - Inclusion of header files. These are files of declarations that can
686 be substituted into your program.
687 - Macro expansion. You can define "macros", which are abbreviations
688 for arbitrary fragments of C code, and then the C preprocessor will
689 replace the macros with their definitions throughout the program.
690 - Conditional compilation. Using special preprocessing directives, you
691 can include or exclude parts of the program according to various
693 - Line control. If you use a program to combine or rearrange source
694 files into an intermediate file which is then compiled, you can use
695 line control to inform the compiler of where each source line
696 originally came from.
698 %description -n cpp -l es
699 El preprocesador de C es un "procesador de macros" que es usado
700 automáticamente por el compilador C para transformar su programa antes
701 de que éste se actualmente compile. Se llama procesador de macros
702 porque permite definir "macros", los que son abreviaciones concisas
703 para construcciones más largas.
705 El preprocesador C provee cuatro cualidadedes distintas que puede usar
708 - Inclusión de ficheros de cabecera. Éstos son ficheros de
709 declaraciones que pueden incorporarse a su programa.
710 - Expansión de macros. Puede definir "macros", los que son
711 abreviaciones para fragmentos arbitrarios de código C, y a lo largo
712 del programa el preprocesador sustituirá los macros con sus
714 - Compilación condicional. Usando especiales directivas del preproceso
715 puede incluir o excluir partes del programa según varias condiciones.
716 - Control de líneas. Si usa un programa para combinar o reorganizar el
717 código fuente en un fichero intermedio que luego es compilado, puede
718 usar control de líneas para informar el compilador de dónde origina
721 %description -n cpp -l pl
722 Preprocesor C jest "makro procesorem" który jest automatycznie
723 u¿ywany przez kompilator C do obróbki kompilowanego programu przed
724 w³a¶ciw± kompilacj±. Jest on nazywany makroprocesorem, poniewa¿
725 umo¿liwia definiowanie i rozwijanie makr umo¿liwiaj±cych skracanie
726 d³ugich konstrukcji w jêzyku C.
728 Preprocesor C umo¿liwia wykonywanie czterech ró¿nych typów operacji:
730 - Do³±czanie plików (np. nag³ówkowych). Wstawia pliki w miejscu
731 deklaracji polecenia do³±czenia innego pliku.
732 - Rozwijanie makr. Mo¿na definiowaæ "makra" nadaj±c im identyfikatory,
733 których pó¼niejsze u¿ycie powoduje podczas rozwijania podmienienie
734 indentyfikatora deklarowan± wcze¶niej warto¶ci±.
735 - Kompilacja warunkowa. W zale¿no¶ci od obecno¶ci symboli i dyrektyw w
736 ¶rodowisku preprocesora s± w³±czane warunkowo, b±d¼ nie, pewne
737 fragmenty obrabianego strumienia tekstów.
738 - Kontrola linii ¼ród³a. Niezale¿nie od tego jakim przeobra¿eniom
739 podlega wynikowy strumieñ danych w wyniku rozwijania makr i do³±czania
740 s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego
741 odpowiada fragment pliku wynikowego.
743 %description -n cpp -l pt_BR
744 O preprocessador C é um "processador de macros", que é utilizado pelo
745 compilador C para fazer algumas modificações no seu programa, antes da
746 compilação em si. Ele é chamado de "processador de macros" porque
747 permite a você definir "macros", que são abreviações para construções
750 O preprocessador C fornece quatro funcionalidades básicas: inclusão de
751 arquivos de cabeçalho; expansão de macros; compilação condicional; e
752 controle da numeração das linhas do programa.
755 %setup -q -a1 -n %{name}-%{GCC_VERSION}
756 mv ksi-%{KSI_VERSION} gcc/ksi
762 %{!?debug:%patch4 -p1}
768 # not sure if it wouldn't break x86 (it shouldn't, but better safe than sorry)
790 # because we distribute modified version of gcc...
791 perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
792 perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
795 # cd gcc && autoconf; cd ..
796 # autoconf is not needed!
797 cp /usr/share/automake/config.sub .
799 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
801 CFLAGS="%{rpmcflags}" \
802 CXXFLAGS="%{rpmcflags}" \
803 TEXCONFIG=false ../configure \
804 --prefix=%{_prefix} \
805 --libdir=%{_libdir} \
806 --libexecdir=%{_libexecdir} \
807 --infodir=%{_infodir} \
808 --mandir=%{_mandir} \
810 --enable-threads=posix \
811 --enable-__cxa_atexit \
812 --enable-languages="c,c++,f77%{?with_objc:,objc}%{?with_ada:,ada}%{?with_java:,java},ksi" \
824 --with-slibdir=%{_slibdir} \
828 PATH=$PATH:/sbin:%{_sbindir}
831 %{__make} -C obj-%{_target_platform} bootstrap-lean \
832 GCJFLAGS="%{rpmcflags}" \
833 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
838 for tgt in gnatlib gnattools gnatlib-shared; do
839 %{__make} -C obj-%{_target_platform}/gcc $tgt \
840 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
847 rm -rf $RPM_BUILD_ROOT
848 install -d $RPM_BUILD_ROOT{/lib,%{_datadir},%{_infodir}}
850 cd obj-%{_target_platform}
851 PATH=$PATH:/sbin:%{_sbindir}
855 infodir=%{_infodir} \
856 DESTDIR=$RPM_BUILD_ROOT
859 ln -f $RPM_BUILD_ROOT%{_bindir}/sparc64-pld-linux-gcc \
860 $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
863 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
864 echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
866 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
867 echo ".so g77.1" > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
870 # move ada shared libraries to proper place...
871 mv $RPM_BUILD_ROOT%{_libdir}/gcc-lib/*/*/adalib/*.so.1 \
872 $RPM_BUILD_ROOT%{_libdir}
873 # check if symlink to be made is valid
874 test -f $RPM_BUILD_ROOT%{_libdir}/libgnat-3.15.so.1
875 ln -sf libgnat-3.15.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat-3.15.so
876 ln -sf libgnarl-3.15.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl-3.15.so
877 ln -sf libgnat-3.15.so $RPM_BUILD_ROOT%{_libdir}/libgnat.so
878 ln -sf libgnarl-3.15.so $RPM_BUILD_ROOT%{_libdir}/libgnarl.so
881 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
887 cp -f libjava/doc/cni.sgml libjava/READ* java-doc
888 cp -f fastjar/README java-doc/README.fastjar
889 cp -f libffi/README java-doc/README.libffi
890 cp -f libffi/LICENSE java-doc/LICENSE.libffi
894 cp -f libobjc/README gcc/objc/README.libobjc
897 # avoid -L poisoning in *.la - there should be only -L%{_libdir}/gcc-lib/*/%{version}
898 for f in libstdc++.la libsupc++.la %{?with_java:libgcj.la} ; do
899 perl -pi -e 's@-L[^ ]*[acs.] @@g' $RPM_BUILD_ROOT%{_libdir}/$f
901 # normalize libdir, to avoid propagation of unnecessary RPATHs by libtool
902 for f in libstdc++.la libsupc++.la libg2c.la \
903 %{?with_java:libgcj.la lib-org-w3c-dom.la lib-org-xml-sax.la libffi.la} \
904 %{?with_objc:libobjc.la}; do
905 perl -pi -e "s@^libdir='.*@libdir='/usr/%{_lib}'@" $RPM_BUILD_ROOT%{_libdir}/$f
908 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
909 mv -f $RPM_BUILD_ROOT%{_mandir}/ja/man1/{cccp,cpp}.1
911 # include/ contains install-tools/include/* and headers that were fixed up
912 # by fixincludes, we don't want former
913 gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc-lib/*/*/)
915 # we have to save these however
916 mv -f $gccdir/include/{%{?with_objc:objc,}g2c.h,syslimits.h%{?with_java:,gcj}} $gccdir/tmp
917 rm -rf $gccdir/include
918 mv -f $gccdir/tmp $gccdir/include
919 cp $gccdir/install-tools/include/*.h $gccdir/include
920 # but we don't want anything more from install-tools
921 rm -rf $gccdir/install-tools
924 %find_lang libstdc\+\+
927 rm -rf $RPM_BUILD_ROOT
930 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
933 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
936 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
939 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
942 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
945 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
948 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
951 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
954 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
957 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
959 %post -p /sbin/ldconfig -n libgcc
960 %postun -p /sbin/ldconfig -n libgcc
961 %post -p /sbin/ldconfig -n libstdc++
962 %postun -p /sbin/ldconfig -n libstdc++
963 %post -p /sbin/ldconfig -n libobjc
964 %postun -p /sbin/ldconfig -n libobjc
965 %post -p /sbin/ldconfig -n libg2c
966 %postun -p /sbin/ldconfig -n libg2c
967 %post -p /sbin/ldconfig -n libgcj
968 %postun -p /sbin/ldconfig -n libgcj
969 %post -p /sbin/ldconfig -n libgnat
970 %postun -p /sbin/ldconfig -n libgnat
971 %post -p /sbin/ldconfig -n libffi
972 %postun -p /sbin/ldconfig -n libffi
974 %files -f %{name}.lang
975 %defattr(644,root,root,755)
977 %dir %{_libdir}/gcc-lib/*/*
978 %dir %{_libdir}/gcc-lib/*/*/include
979 %attr(755,root,root) %{_bindir}/*-gcc*
980 %attr(755,root,root) %{_bindir}/gcc
981 %attr(755,root,root) %{_bindir}/gccbug
982 %attr(755,root,root) %{_bindir}/gcov
983 %attr(755,root,root) %{_bindir}/cc
985 %{_mandir}/man1/gcc.1*
986 %{_mandir}/man1/cc.1*
987 %{_mandir}/man1/gcov.1*
988 %lang(fr) %{_mandir}/fr/man1/gcc.1*
989 %lang(ja) %{_mandir}/ja/man1/gcc.1*
992 %attr(755,root,root) %{_slibdir}*/lib*.so
993 %{_libdir}/gcc-lib/*/*/libgcc.a
994 %{_libdir}/gcc-lib/*/*/libgcc_eh.a
995 %{_libdir}/gcc-lib/*/*/specs
996 %{_libdir}*/gcc-lib/*/*/crt*.o
998 %{_libdir}/gcc-lib/*/*/*/libgcc.a
999 %{_libdir}/gcc-lib/*/*/*/libgcc_eh.a
1000 %{_libdir}*/gcc-lib/*/*/*/crt*.o
1003 %{_libdir}/gcc-lib/*/*/ecrt*.o
1004 %{_libdir}/gcc-lib/*/*/ncrt*.o
1005 %{_libdir}/gcc-lib/*/*/nof
1008 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/cc1
1009 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/collect2
1011 %{_libdir}/gcc-lib/*/*/include/*.h
1012 %exclude %{_libdir}/gcc-lib/*/*/include/g2c.h
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_slibdir}*/lib*.so.*
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_bindir}/g++
1021 %attr(755,root,root) %{_bindir}/*-g++
1022 %attr(755,root,root) %{_bindir}/c++
1023 %attr(755,root,root) %{_bindir}/*-c++
1024 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/cc1plus
1025 %{_libdir}*/libsupc++.la
1027 %{_libdir}/nof/libsupc++.la
1028 %{_libdir}/nof/libsupc++.a
1030 %{_libdir}*/libsupc++.a
1031 %{_mandir}/man1/g++.1*
1032 %lang(ja) %{_mandir}/ja/man1/g++.1*
1034 %files -n libstdc++ -f libstdc++.lang
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_libdir}*/libstdc++.so.*.*.*
1038 %attr(755,root,root) %{_libdir}/nof/libstdc++.so.*.*.*
1041 %files -n libstdc++-devel
1042 %defattr(644,root,root,755)
1043 %doc libstdc++-v3/docs/html
1044 %dir %{_includedir}/c++
1045 %{_includedir}/c++/%{GCC_VERSION}
1046 %attr(755,root,root) %{_libdir}*/libstdc++.so
1047 %{_libdir}*/libstdc++.la
1049 %attr(755,root,root) %{_libdir}/nof/libstdc++.so
1050 %{_libdir}/nof/libstdc++.la
1053 %files -n libstdc++-static
1054 %defattr(644,root,root,755)
1055 %{_libdir}*/libstdc++.a
1057 %{_libdir}/nof/libstdc++.a
1062 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/cc1obj
1065 %attr(755,root,root) %{_libdir}*/libobjc.so
1066 %{_libdir}*/libobjc.la
1068 %attr(755,root,root) %{_libdir}/nof/libobjc.so
1069 %{_libdir}/nof/libobjc.la
1071 %{_libdir}/gcc-lib/*/*/include/objc
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_libdir}*/libobjc.so.*.*.*
1077 %attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.*
1080 %files -n libobjc-static
1081 %defattr(644,root,root,755)
1082 %{_libdir}*/libobjc.a
1084 %{_libdir}/nof/libobjc.a
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_bindir}/g77
1091 %attr(755,root,root) %{_bindir}/f77
1093 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/f771
1094 %{_libdir}*/libfrtbegin.a
1095 %{_libdir}*/libg2c.la
1096 %attr(755,root,root) %{_libdir}*/libg2c.so
1098 %{_libdir}/nof/libfrtbegin.a
1099 %{_libdir}/nof/libg2c.la
1100 %attr(755,root,root) %{_libdir}/nof/libg2c.so
1102 %{_libdir}/gcc-lib/*/*/include/g2c.h
1103 %{_mandir}/man1/g77.1*
1104 %{_mandir}/man1/f77.1*
1105 %lang(ja) %{_mandir}/ja/man1/g77.1*
1106 %lang(ja) %{_mandir}/ja/man1/f77.1*
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{_libdir}*/libg2c.so.*.*.*
1112 %attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.*
1115 %files -n libg2c-static
1116 %defattr(644,root,root,755)
1117 %{_libdir}*/libg2c.a
1119 %{_libdir}/nof/libg2c.a
1124 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_bindir}/gcj*
1127 %attr(755,root,root) %{_bindir}/gij
1128 %attr(755,root,root) %{_bindir}/jcf-dump
1129 %attr(755,root,root) %{_bindir}/jv-*
1130 %attr(755,root,root) %{_bindir}/*-gcj
1131 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/jc1
1132 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/jvgenmain
1134 %{_mandir}/man1/jcf-*
1135 %{_mandir}/man1/jv-*
1136 %{_mandir}/man1/gij*
1137 %{_mandir}/man1/gcj*
1140 %defattr(644,root,root,755)
1141 %attr(755,root,root) %{_bindir}/rmi*
1142 %attr(755,root,root) %{_bindir}/jar
1143 %attr(755,root,root) %{_bindir}/grepjar
1144 %{_mandir}/man1/rmi*
1145 %{_mandir}/man1/jar*
1146 %{_mandir}/man1/grepjar*
1147 %{_infodir}/fastjar*
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_bindir}/addr2name.awk
1152 %attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.*
1153 %attr(755,root,root) %{_libdir}/lib-org*.so.*.*.*
1155 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so.*
1156 %attr(755,root,root) %{_libdir}/nof/lib-org*.so.*
1159 %files -n libgcj-devel
1160 %defattr(644,root,root,755)
1162 %{_includedir}/javax
1163 #%%{_includedir}/org
1166 %{_includedir}/gnu/*
1167 %{_libdir}/gcc-lib/*/*/include/gcj
1168 %dir %{_libdir}/security
1169 %{_libdir}/security/*
1170 %dir %{_datadir}/java
1171 %{_datadir}/java/libgcj*.jar
1172 %{_libdir}/lib*cj.spec
1173 %attr(755,root,root) %{_libdir}/lib*cj*.so
1174 %attr(755,root,root) %{_libdir}/lib-org-*.so
1175 %{_libdir}/lib*cj*.la
1176 %{_libdir}/lib-org-*.la
1178 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so
1179 %attr(755,root,root) %{_libdir}/nof/lib-org-*.so
1180 %{_libdir}/nof/lib*cj*.la
1181 %{_libdir}/nof/lib-org-*.la
1184 %files -n libgcj-static
1185 %defattr(644,root,root,755)
1186 %{_libdir}/lib*cj*.a
1187 %{_libdir}/lib-org-*.a
1189 %{_libdir}/nof/lib*cj*.a
1190 %{_libdir}/nof/lib-org-*.a
1194 %defattr(644,root,root,755)
1195 %attr(755,root,root) %{_libdir}/libffi-*.so
1197 %attr(755,root,root) %{_libdir}/nof/libffi-*.so
1200 %files -n libffi-devel
1201 %defattr(644,root,root,755)
1202 %attr(755,root,root) %{_libdir}/libffi.so
1203 %{_libdir}/libffi.la
1205 %attr(755,root,root) %{_libdir}/nof/libffi.so
1206 %{_libdir}/nof/libffi.la
1210 %files -n libffi-static
1211 %defattr(644,root,root,755)
1214 %{_libdir}/nof/libffi.a
1220 %defattr(644,root,root,755)
1221 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/gnat1
1222 %{_libdir}/gcc-lib/*/*/adainclude
1223 %dir %{_libdir}/gcc-lib/*/*/adalib
1224 %{_libdir}/gcc-lib/*/*/adalib/*.ali
1226 %{_libdir}/gcc-lib/*/*/adalib/libgmem.a
1228 %{_libdir}/gcc-lib/*/*/adalib/Makefile.adalib
1229 %attr(755,root,root) %{_bindir}/gnat*
1231 %attr(755,root,root) %{_libdir}/libgnat*.so
1232 %attr(755,root,root) %{_libdir}/libgnarl*.so
1235 %defattr(644,root,root,755)
1236 %attr(755,root,root) %{_libdir}/libgna*.so.1
1238 %files -n libgnat-static
1239 %defattr(644,root,root,755)
1240 %{_libdir}/gcc-lib/*/*/adalib/libgna*.a
1244 %defattr(644,root,root,755)
1245 %doc gcc/ksi/README gcc/ksi/NEWS gcc/ksi/t/*.{ksi,c,foo}
1247 %attr(755,root,root) %{_libdir}/gcc-lib/*/*/ksi1
1250 %defattr(644,root,root,755)
1251 %attr(755,root,root) /lib/cpp
1252 %attr(755,root,root) %{_bindir}/cpp
1253 %{_mandir}/man1/cpp.1*
1254 %lang(ja) %{_mandir}/ja/man1/cpp.1*