3 # - http://gcc.gnu.org/PR11203
4 # - http://gcc.gnu.org/PR17384
5 # - http://gcc.gnu.org/PR17567
6 # - http://gcc.gnu.org/PR17674
9 %bcond_without ada # build without ADA support
10 %bcond_without java # build without Java support
11 %bcond_without objc # build without objc support
12 %bcond_with ssp # build with stack-smashing protector support
14 %define _snap 20040924
16 Summary: GNU Compiler Collection: the C compiler and shared files
17 Summary(es): Colección de compiladores GNU: el compilador C y ficheros compartidos
18 Summary(pl): Kolekcja kompilatorów GNU: kompilator C i pliki wspó³dzielone
19 Summary(pt_BR): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
26 Group: Development/Languages
27 #Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/%{name}-%{version}.tar.bz2
28 #Source0: ftp://gcc.gnu.org/pub/gcc/prerelease-%{version}-%{_snap}/gcc-%{version}-%{_snap}.tar.bz2
29 Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/3.4-%{_snap}/gcc-3.4-%{_snap}.tar.bz2
30 # Source0-md5: 5fc64e09ddc7b512110fd15c457ba195
31 Source1: http://ep09.pld-linux.org/~djrzulf/gcc33/%{name}-non-english-man-pages.tar.bz2
32 # Source1-md5: 4736f3422ddfb808423b745629acc321
33 Source2: http://www.trl.ibm.com/projects/security/ssp/gcc2_95_3/gcc_stack_protect.m4.gz
34 # Source2-md5: 07d93ad5fc07ca44cdaba46c658820de
35 Patch0: %{name}-info.patch
36 Patch1: %{name}-nolocalefiles.patch
37 Patch2: %{name}-ada-link-new-libgnat.patch
38 Patch3: %{name}-nodebug.patch
39 Patch4: %{name}-ssp.patch
40 Patch5: %{name}-ada-link.patch
41 Patch6: %{name}-pr15666.patch
42 Patch7: %{name}-pr16276.patch
43 Patch8: %{name}-ada-bootstrap.patch
45 # -fvisibility={default|internal|hidden|protected}
47 # Set the default ELF image symbol visibility to the specified option.
48 # All symbols will be marked with this unless overrided within the code.
49 # Using this feature can very substantially improve linking and load times
50 # of shared object libraries, produce more optimised code, provide near-perfect
51 # API export and prevent symbol clashes. It is strongly recommended that you
52 # use this in any shared objects you distribute.
54 # -fvisibility-inlines-hidden
56 # Causes all inlined methods to be marked with __attribute__((visibility("hidden")))
57 # so that they do not appear in the export table of a DSO and do not require a PLT
58 # indirection when used within the DSO. Enabling this option can have a dramatic
59 # effect on load and link times of a DSO as it massively reduces the size
60 # of the dynamic export table when the library makes heavy use of templates.
61 # While it can cause bloating through duplication of code within each DSO
62 # where it is used, often the wastage is less than the considerable space
63 # occupied by a long symbol name in the export table which is typical when using
64 # templates and namespaces.
66 # How to Write Shared Libraries: http://people.redhat.com/drepper/dsohowto.pdf
68 Patch9: %{name}-visibility.patch
70 URL: http://gcc.gnu.org/
71 BuildRequires: autoconf
72 BuildRequires: automake
73 BuildRequires: binutils >= 2.15.91.0.2
75 BuildRequires: fileutils >= 4.0.41
78 BuildRequires: gcc(ada)
79 BuildRequires: gcc-ada
81 BuildRequires: gettext-devel
82 BuildRequires: glibc-devel >= 2.2.5-20
84 BuildRequires: perl-devel
85 BuildRequires: texinfo >= 4.1
86 BuildRequires: zlib-devel
87 Requires: binutils >= 2.15.91.0.2
88 Requires: libgcc = %{epoch}:%{version}-%{release}
89 Provides: cpp = %{epoch}:%{version}-%{release}
90 %{?with_ada:Provides: gcc(ada)}
91 %{?with_ssp:Provides: gcc(ssp)}
92 # ksi for gcc > 3.3.x not ready yet
98 Conflicts: glibc-devel < 2.2.5-20
99 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101 %define _slibdir /%{_lib}
103 %define _slibdir64 /lib64
104 %define _libdir /usr/lib
105 %define rpmcflags -O2 -mtune=ultrasparc
109 A compiler aimed at integrating all the optimizations and features
110 necessary for a high-performance and stable development environment.
112 This package contains the C compiler and some files shared by various
113 parts of the GNU Compiler Collection. In order to use another GCC
114 compiler you will need to install the appropriate subpackage.
117 Un compilador destinado a la integración de todas las optimalizaciones
118 y características necesarias para un entorno de desarrollo eficaz y
121 Este paquete contiene el compilador de C y unos ficheros compartidos
122 por varias parted de la colección de compiladores GNU (GCC). Para usar
123 otro compilador de GCC será necesario que instale el subpaquete
127 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
128 wyprodukowania szybkiego i stablinego kodu wynikowego.
130 Ten pakiet zawiera kompilator C i pliki wspó³dzielone przez ró¿ne
131 czê¶ci kolekcji kompilatorów GNU (GCC). ¯eby u¿ywaæ innego kompilatora
132 z GCC, trzeba zainstalowaæ odpowiedni podpakiet.
134 %description -l pt_BR
135 Este pacote adiciona infraestrutura básica e suporte a linguagem C ao
136 GNU Compiler Collection.
139 Summary: Shared gcc library
140 Summary(es): Biblioteca compartida de gcc
141 Summary(pl): Biblioteka gcc
142 Summary(pt_BR): Biblioteca runtime para o GCC
146 %description -n libgcc
149 %description -n libgcc -l es
150 Biblioteca compartida de gcc.
152 %description -n libgcc -l pl
153 Biblioteka dynamiczna gcc.
155 %description -n libgcc -l pt_BR
156 Biblioteca runtime para o GCC.
159 Summary: C++ support for gcc
160 Summary(es): Soporte de C++ para gcc
161 Summary(pl): Obs³uga C++ dla gcc
162 Summary(pt_BR): Suporte C++ para o gcc
163 Group: Development/Languages
164 Requires: %{name} = %{epoch}:%{version}-%{release}
169 This package adds C++ support to the GNU Compiler Collection. It
170 includes support for most of the current C++ specification, including
171 templates and exception handling. It does not include a standard C++
172 library, which is available separately.
174 %description c++ -l de
175 Dieses Paket enthält die C++-Unterstützung für den
176 GNU-Compiler-Collection. Es unterstützt die aktuelle
177 C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine
178 C++-Standard-Library ist nicht enthalten - sie ist getrennt
181 %description c++ -l es
182 Este paquete añade soporte de C++ al GCC (colección de compiladores
183 GNU). Ello incluye el soporte para la mayoría de la especificación
184 actual de C++, incluyendo plantillas y manejo de excepciones. No
185 incluye la biblioteca estándar de C++, la que es disponible separada.
187 %description c++ -l fr
188 Ce package ajoute un support C++ a la collection de compilateurs GNU.
189 Il comprend un support pour la plupart des spécifications actuelles de
190 C++, dont les modéles et la gestion des exceptions. Il ne comprend pas
191 une bibliothéque C++ standard, qui est disponible séparément.
193 %description c++ -l pl
194 Ten pakiet dodaje obs³ugê C++ do kompilatora gcc. Ma wsparcie dla
195 du¿ej ilo¶ci obecnych specyfikacji C++, nie zawiera natomiast
196 standardowych bibliotek C++, które s± w oddzielnym pakiecie.
198 %description c++ -l pt_BR
199 Este pacote adiciona suporte C++ para o gcc.
201 %description c++ -l tr
202 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
203 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
204 C++ kitaplýðý bu pakette yer almaz.
207 Summary: Objective C support for gcc
208 Summary(de): Objektive C-Unterstützung für gcc
209 Summary(es): Soporte de Objective C para gcc
210 Summary(fr): Gestion d'Objective C pour gcc
211 Summary(pl): Obs³uga obiektowego C dla kompilatora gcc
212 Summary(tr): gcc için Objective C desteði
213 Group: Development/Languages
214 Requires: %{name} = %{epoch}:%{version}-%{release}
215 Requires: libobjc = %{epoch}:%{version}-%{release}
220 This package adds Objective C support to the GNU Compiler Collection.
221 Objective C is a object oriented derivative of the C language, mainly
222 used on systems running NeXTSTEP. This package does not include the
223 standard objective C object library.
225 %description objc -l de
226 Dieses Paket ergänzt den GNU-Compiler-Collection durch
227 Objective-C-Support. Objective C ist ein objektorientiertes Derivat
228 von C, das zur Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt.
229 Die Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
231 %description objc -l es
232 Este paquete añade soporte de Objective C al GCC (colección de
233 compiladores GNU). Objective C es un lenguaje orientado a objetos
234 derivado de C, principalmente usado en sistemas que funcionan bajo
235 NeXTSTEP. El paquete no incluye la biblioteca de objetos estándar de
238 %description objc -l fr
239 Ce package ajoute un support Objective C a la collection de
240 compilateurs GNU. L'Objective C est un langage orienté objetdérivé du
241 langage C, principalement utilisé sur les systèmes NeXTSTEP. Ce
242 package n'inclue pas la bibliothéque Objective C standard.
244 %description objc -l pl
245 Ten pakiet dodaje obs³ugê obiektowego C do kompilatora gcc. Obiektowe
246 C (objc) jest zorientowan± obiektowo pochodn± jêzyka C, u¿ywan±
247 g³ównie w systemach u¿ywaj±cych NeXTSTEP. W pakiecie nie ma
248 standardowej biblioteki objc (która znajduje siê w osobnym pakiecie).
250 %description objc -l tr
251 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
252 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
253 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
254 kitaplýðý bu pakette yer almaz.
257 Summary: Objective C Libraries
258 Summary(es): Bibliotecas de Objective C
259 Summary(pl): Biblioteki Obiektowego C
263 %description -n libobjc
264 Objective C Libraries.
266 %description -n libobjc -l es
267 Bibliotecas de Objective C.
269 %description -n libobjc -l pl
270 Biblioteki Obiektowego C.
272 %package -n libobjc-static
273 Summary: Static Objective C Libraries
274 Summary(es): Bibliotecas estáticas de Objective C
275 Summary(pl): Statyczne Biblioteki Obiektowego C
276 Group: Development/Libraries
277 Requires: libobjc = %{epoch}:%{version}-%{release}
279 %description -n libobjc-static
280 Static Objective C Libraries.
282 %description -n libobjc-static -l es
283 Bibliotecas estáticas de Objective C.
285 %description -n libobjc-static -l pl
286 Statyczne biblioteki Obiektowego C.
289 Summary: Fortran 77 support for gcc
290 Summary(es): Soporte de Fortran 77 para gcc
291 Summary(pl): Obs³uga Fortranu 77 dla gcc
292 Summary(pt_BR): Suporte Fortran 77 para o GCC
293 Group: Development/Languages/Fortran
294 Requires: libg2c = %{epoch}:%{version}-%{release}
298 This package adds support for compiling Fortran 77 programs with the
301 %description g77 -l es
302 Este paquete añade soporte para compilar programas escritos en Fortran
303 77 con el compilador GNU.
305 %description g77 -l pl
306 Ten pakiet dodaje obs³ugê Fortranu 77 do kompilatora gcc. Jest
307 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
309 %description g77 -l pt_BR
310 Suporte Fortran 77 para o GCC.
313 Summary: Fortran 77 Libraries
314 Summary(es): Bibliotecas de Fortran 77
315 Summary(pl): Biblioteki Fortranu 77
318 %description -n libg2c
319 Fortran 77 Libraries.
321 %description -n libg2c -l es
322 Bibliotecas de Fortran 77.
324 %description -n libg2c -l pl
325 Biblioteki Fortranu 77.
327 %package -n libg2c-static
328 Summary: Static Fortran 77 Libraries
329 Summary(es): Bibliotecas estáticas de Fortran 77
330 Summary(pl): Statyczne Biblioteki Fortranu 77
331 Group: Development/Libraries
332 Requires: libg2c = %{epoch}:%{version}-%{release}
334 %description -n libg2c-static
335 Static Fortran 77 Libraries.
337 %description -n libg2c -l es
338 Bibliotecas estáticas de Fortran 77.
340 %description -n libg2c-static -l pl
341 Statyczne biblioteki Fortranu 77.
344 Summary: Java support for gcc
345 Summary(es): Soporte de Java para gcc
346 Summary(pl): Obs³uga Javy dla gcc
347 Group: Development/Languages/Java
348 Requires: %{name} = %{epoch}:%{version}-%{release}
349 Requires: libgcj = %{epoch}:%{version}-%{release}
350 Requires: libgcj-devel = %{epoch}:%{version}-%{release}
351 Requires: java-shared
352 Provides: gcj = %{epoch}:%{version}-%{release}
355 This package adds experimental support for compiling Java(tm) programs
356 and bytecode into native code. To use this you will also need the
359 %description java -l es
360 Este paquete añade soporte experimental para compilar programas
361 Java(tm) y su bytecode en código nativo. Para usarlo también va a
362 necesitar el paquete libgcj.
364 %description java -l pl
365 Wsparcie dla kompilowania programów Java(tm) zrówno do bajt-kodu jak i
366 do natywnego kodu. Dodatkowo wymagany jest pakiet libgcj, aby mo¿na
367 by³o przeprowadziæ kompilacjê.
370 Summary: Shared java tools
371 Summary(es): Herramientas compartidas de Java
372 Summary(pl): Wspó³dzielone narzêdzia javy
373 Group: Development/Languages/Java
374 Provides: jar = %{epoch}:%{version}-%{release}
375 Provides: java-shared
377 Obsoletes: java-shared
380 %description java-tools
381 This package contains tools that are common for every Java(tm)
382 implementation, such as rmic or jar.
384 %description java-tools -l es
385 Este paquete contiene herramientas que son comunes para cada
386 implementación de Java(tm), como rmic o jar.
388 %description java-tools -l pl
389 Pakiet ten zawiera narzêdzia wspólne dla ka¿dej implementacji
390 Javy(tm), takie jak rmic czy jar.
393 Summary: Java Class Libraries
394 Summary(es): Bibliotecas de clases de Java
395 Summary(pl): Biblioteki Klas Javy
400 %description -n libgcj
401 Java Class Libraries.
403 %description -n libgcj -l es
404 Bibliotecas de clases de Java.
406 %description -n libgcj -l pl
407 Biblioteki Klas Javy.
409 %package -n libgcj-devel
410 Summary: Development files for Java Class Libraries
411 Summary(es): Ficheros de desarrollo para las bibliotecas de clases de Java
412 Summary(pl): Pliki nag³ówkowe dla Bibliotek Klas Javy
413 Group: Development/Libraries
414 Requires: %{name}-java = %{epoch}:%{version}-%{release}
415 Requires: libgcj = %{epoch}:%{version}-%{release}
416 Obsoletes: libgcj3-devel
418 %description -n libgcj-devel
419 Development files for Java Class Libraries.
421 %description -n libgcj-devel -l es
422 Ficheros de desarrollo para las bibliotecas de clases de Java.
424 %description -n libgcj-devel -l pl
425 Pliki nag³ówkowe dla Bibliotek Klas Javy.
427 %package -n libgcj-static
428 Summary: Static Java Class Libraries
429 Summary(es): Bibliotecas estáticas de clases de Java
430 Summary(pl): Statyczne Biblioteki Klas Javy
431 Group: Development/Libraries
432 Requires: libgcj-devel = %{epoch}:%{version}-%{release}
433 Requires: libstdc++-devel = %{epoch}:%{version}-%{release}
435 %description -n libgcj-static
436 Static Java Class Libraries.
438 %description -n libgcj-static -l es
439 Bibliotecas estáticas de clases de Java.
441 %description -n libgcj-static -l pl
442 Statyczne Biblioteki Klas Javy.
444 %package -n libstdc++
445 Summary: GNU c++ library
446 Summary(es): Biblioteca C++ de GNU
447 Summary(pl): Biblioteki GNU C++
448 Summary(pt_BR): Biblioteca C++ GNU
451 Obsoletes: libstdc++3
453 %description -n libstdc++
454 This is the GNU implementation of the standard C++ libraries, along
455 with additional GNU tools. This package includes the shared libraries
456 necessary to run C++ applications.
458 %description -n libstdc++ -l de
459 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
460 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
461 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
463 %description -n libstdc++ -l es
464 Este es el soporte de las bibliotecas padrón del C++, junto con
465 herramientas GNU adicionales. El paquete incluye las bibliotecas
466 compartidas necesarias para ejecutar aplicaciones C++.
468 %description -n libstdc++ -l fr
469 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
470 des outils GNU supplémentaires. Ce package comprend les librairies
471 partagées nécessaires à l'exécution d'application C++.
473 %description -n libstdc++ -l pl
474 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
475 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
476 uruchomienia aplikacji napisanych w C++.
478 %description -n libstdc++ -l pt_BR
479 Este pacote é uma implementação da biblioteca padrão C++ v3, um
480 subconjunto do padrão ISO 14882.
482 %description -n libstdc++ -l tr
483 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
484 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
486 %package -n libstdc++-devel
487 Summary: Header files and documentation for C++ development
488 Summary(de): Header-Dateien zur Entwicklung mit C++
489 Summary(es): Ficheros de cabecera y documentación para desarrollo C++
490 Summary(fr): Fichiers d'en-tête et biblitothèques pour développer en C++
491 Summary(pl): Pliki nag³ówkowe i dokumentacja do biblioteki standardowej C++
492 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento em C++
493 Summary(tr): C++ ile program geliþtirmek için gerekli dosyalar
494 Group: Development/Libraries
495 Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
496 Requires: libstdc++ = %{epoch}:%{version}-%{release}
497 Obsoletes: libg++-devel
498 Obsoletes: libstdc++3-devel
500 %description -n libstdc++-devel
501 This is the GNU implementation of the standard C++ libraries. This
502 package includes the header files needed for C++ development and
503 library documentation.
505 %description -n libstdc++-devel -l es
506 Este es el soporte de las bibliotecas padrón del lenguaje C++. Este
507 paquete incluye los archivos de inclusión y bibliotecas necesarios
508 para desarrollo de programas en lenguaje C++.
510 %description -n libstdc++-devel -l pl
511 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
512 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
513 programowaniu w jêzyku C++ oraz dokumentacja biblioteki standardowej.
515 %description -n libstdc++-devel -l pt_BR
516 Este pacote inclui os arquivos de inclusão e bibliotecas necessárias
517 para desenvolvimento de programas C++.
519 %package -n libstdc++-static
520 Summary: Static C++ standard library
521 Summary(es): Biblioteca estándar estática de C++
522 Summary(pl): Statyczna biblioteka standardowa C++
523 Group: Development/Libraries
524 Requires: libstdc++-devel = %{epoch}:%{version}-%{release}
526 %description -n libstdc++-static
527 Static C++ standard library.
529 %description -n libstdc++-static -l es
530 Biblioteca estándar estática de C++.
532 %description -n libstdc++-static -l pl
533 Statycza biblioteka standardowa C++.
536 Summary: Foreign Function Interface library
537 Summary(es): Biblioteca de interfaz de funciones ajenas
538 Summary(pl): Biblioteka zewnêtrznych wywo³añ funkcji
541 %description -n libffi
542 The libffi library provides a portable, high level programming
543 interface to various calling conventions. This allows a programmer to
544 call any function specified by a call interface description at run
547 %description -n libffi -l es
548 La biblioteca libffi provee una interfaz portable de programación de
549 alto nivel para varias convenciones de llamada. Ello permite que un
550 programador llame una función cualquiera especificada por una
551 descripción de interfaz de llamada en el tiempo de ejecución.
553 %description -n libffi -l pl
554 Biblioteka libffi dostarcza przno¶nego, wysokopoziomowego
555 miêdzymordzia do ró¿nych konwencji wywo³añ funkcji. Pozwala to
556 programi¶cie wywo³ywaæ dowolne funkcje podaj±c konwencjê wywo³ania w
559 %package -n libffi-devel
560 Summary: Development files for Foreign Function Interface library
561 Summary(es): Ficheros de desarrollo para libffi
562 Summary(pl): Pliki nag³ówkowe dla libffi
563 Group: Development/Libraries
564 Requires: libffi = %{epoch}:%{version}-%{release}
566 %description -n libffi-devel
567 Development files for Foreign Function Interface library.
569 %description -n libffi-devel -l es
570 Ficheros de desarrollo para libffi.
572 %description -n libffi-devel -l pl
573 Pliki nag³ówkowe dla libffi.
575 %package -n libffi-static
576 Summary: Static Foreign Function Interface library
577 Summary(es): Biblioteca libffi estática
578 Summary(pl): Statyczna biblioteka libffi
579 Group: Development/Libraries
580 Requires: libffi-devel = %{epoch}:%{version}-%{release}
582 %description -n libffi-static
583 Static Foreign Function Interface library.
585 %description -n libffi-static -l es
586 Biblioteca libffi estática.
588 %description -n libffi-static -l pl
589 Statyczna biblioteka libffi.
592 Summary: Ada support for gcc
593 Summary(es): Soporte de Ada para gcc
594 Summary(pl): Obs³uga Ady do gcc
595 Group: Development/Languages
596 Requires: %{name} = %{epoch}:%{version}-%{release}
597 Requires: libgnat = %{epoch}:%{version}-%{release}
599 Obsoletes: gnat-devel
602 This package adds experimental support for compiling Ada programs.
604 %description ada -l es
605 Este paquete añade soporte experimental para compilar programas en
608 %description ada -l pl
609 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
613 Summary: Ada standard libraries
614 Summary(es): Bibliotecas estándares de Ada
615 Summary(pl): Biblioteki standardowe dla Ady
620 %description -n libgnat
621 This package contains shared libraries needed to run programs written
624 %description -n libgnat -l es
625 Este paquete contiene las bibliotecas compartidas necesarias para
626 ejecutar programas escritos en Ada.
628 %description -n libgnat -l pl
629 Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów
632 %package -n libgnat-static
633 Summary: Static Ada standard libraries
634 Summary(pl): Statyczne biblioteki standardowe dla Ady
636 Obsoletes: gnat-static
638 %description -n libgnat-static
639 This package contains static libraries for programs written in Ada.
641 %description -n libgnat-static -l pl
642 Ten pakiet zawiera biblioteki statyczne dla programów napisanych w
647 #setup -q -n %{name}-%{version}-%{_snap} -a1
649 %setup -q -n %{name}-3.4-%{_snap} -a1
651 #setup -q -n %{name}-%{version} -a1
656 %{!?debug:%patch3 -p1}
657 %{?with_ssp:%patch4 -p1}
662 # needed for bootstrap using gcc 3.3.x on alpha
663 # and even using the same 3.4.x(!) (but not Debian's 3.3.x) on ia64
668 # because we distribute modified version of gcc...
669 perl -pi -e 's/(version.*)";/$1 %{?with_ssp:SSP }(PLD Linux)";/' gcc/version.c
670 perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
672 mv ChangeLog ChangeLog.general
675 # because pr16276 patch modifies configure.ac
679 cp -f /usr/share/automake/config.sub .
681 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
683 CFLAGS="%{rpmcflags}" \
684 CXXFLAGS="%{rpmcflags}" \
685 TEXCONFIG=false ../configure \
686 --prefix=%{_prefix} \
687 --libdir=%{_libdir} \
688 --libexecdir=%{_libexecdir} \
689 --infodir=%{_infodir} \
690 --mandir=%{_mandir} \
692 --enable-threads=posix \
693 --enable-__cxa_atexit \
694 --enable-languages="c,c++,f77%{?with_objc:,objc}%{?with_ada:,ada}%{?with_java:,java}" \
706 --with-slibdir=%{_slibdir} \
710 PATH=$PATH:/sbin:%{_sbindir}
713 # - on alpha stage1 needs -O0 for 3.3->3.4 bootstrap (gnat from 3.3 is seriously broken)
714 # - on ia64 use bootstrap-lean as profiledbootstrap is broken (PR 13882, 15836, 16108)
715 %{__make} -C obj-%{_target_platform} \
721 GCJFLAGS="%{rpmcflags}" \
722 BOOT_CFLAGS="%{rpmcflags}" \
724 STAGE1_CFLAGS="%{rpmcflags} -O0" \
726 STAGE1_CFLAGS="%{rpmcflags}" \
728 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
733 # cannot build it in parallel
734 for tgt in gnatlib-shared gnattools gnatlib; do
735 %{__make} -C obj-%{_target_platform}/gcc $tgt \
736 BOOT_CFLAGS="%{rpmcflags}" \
737 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
743 # snapshot doesn't contain these files...
744 [ -r "NEWS" ] || touch NEWS
745 [ -r "gcc/f/BUGS" ] || touch gcc/f/BUGS
746 [ -r "gcc/f/NEWS" ] || touch gcc/f/NEWS
749 rm -rf $RPM_BUILD_ROOT
750 install -d $RPM_BUILD_ROOT{/lib,%{_aclocaldir},%{_datadir},%{_infodir}}
752 cd obj-%{_target_platform}
753 PATH=$PATH:/sbin:%{_sbindir}
755 %{__make} -j1 install \
757 infodir=%{_infodir} \
758 DESTDIR=$RPM_BUILD_ROOT
761 ln -f $RPM_BUILD_ROOT%{_bindir}/sparc64-pld-linux-gcc \
762 $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
765 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
766 echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
768 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
769 echo ".so g77.1" > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
772 # move ada shared libraries to proper place...
773 mv -f $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/adalib/*.so.1 \
774 $RPM_BUILD_ROOT%{_libdir}
775 # check if symlink to be made is valid
776 test -f $RPM_BUILD_ROOT%{_libdir}/libgnat-3.4.so.1
777 ln -sf libgnat-3.4.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat-3.4.so
778 ln -sf libgnarl-3.4.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl-3.4.so
779 ln -sf libgnat-3.4.so $RPM_BUILD_ROOT%{_libdir}/libgnat.so
780 ln -sf libgnarl-3.4.so $RPM_BUILD_ROOT%{_libdir}/libgnarl.so
783 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
789 cp -f libjava/doc/cni.sgml libjava/READ* java-doc
790 cp -f fastjar/README java-doc/README.fastjar
791 cp -f libffi/README java-doc/README.libffi
792 cp -f libffi/LICENSE java-doc/LICENSE.libffi
796 cp -f libobjc/README gcc/objc/README.libobjc
799 # avoid -L poisoning in *.la - there should be only -L%{_libdir}/gcc/*/%{version}
800 for f in libstdc++.la libsupc++.la %{?with_java:libgcj.la} ; do
801 perl -pi -e 's@-L[^ ]*[acs.] @@g' $RPM_BUILD_ROOT%{_libdir}/$f
803 # normalize libdir, to avoid propagation of unnecessary RPATHs by libtool
804 for f in libstdc++.la libsupc++.la libg2c.la \
805 %{?with_java:libgcj.la lib-org-w3c-dom.la lib-org-xml-sax.la libffi.la} \
806 %{?with_objc:libobjc.la}; do
807 perl -pi -e "s@^libdir='.*@libdir='/usr/%{_lib}'@" $RPM_BUILD_ROOT%{_libdir}/$f
810 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
811 mv -f $RPM_BUILD_ROOT%{_mandir}/ja/man1/{cccp,cpp}.1
813 # include/ contains install-tools/include/* and headers that were fixed up
814 # by fixincludes, we don't want former
815 gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/)
817 # we have to save these however
818 mv -f $gccdir/include/{%{?with_objc:objc,}g2c.h,syslimits.h%{?with_java:,libffi/ffitarget.h,gcj}} $gccdir/tmp
819 rm -rf $gccdir/include
820 mv -f $gccdir/tmp $gccdir/include
821 cp $gccdir/install-tools/include/*.h $gccdir/include
822 # but we don't want anything more from install-tools
823 rm -rf $gccdir/install-tools
826 %find_lang libstdc\+\+
829 zcat %{SOURCE2} > $RPM_BUILD_ROOT%{_aclocaldir}/gcc_stack_protect.m4
833 rm -rf $RPM_BUILD_ROOT
836 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
839 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
842 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
845 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
848 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
851 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
853 %post -p /sbin/ldconfig -n libgcc
854 %postun -p /sbin/ldconfig -n libgcc
855 %post -p /sbin/ldconfig -n libstdc++
856 %postun -p /sbin/ldconfig -n libstdc++
857 %post -p /sbin/ldconfig -n libobjc
858 %postun -p /sbin/ldconfig -n libobjc
859 %post -p /sbin/ldconfig -n libg2c
860 %postun -p /sbin/ldconfig -n libg2c
861 %post -p /sbin/ldconfig -n libgcj
862 %postun -p /sbin/ldconfig -n libgcj
863 %post -p /sbin/ldconfig -n libgnat
864 %postun -p /sbin/ldconfig -n libgnat
865 %post -p /sbin/ldconfig -n libffi
866 %postun -p /sbin/ldconfig -n libffi
869 %defattr(644,root,root,755)
870 %doc ChangeLog.general MAINTAINERS NEWS bugs.html faq.html
871 %doc gcc/{ChangeLog,ONEWS,README.Portability}
873 %dir %{_libdir}/gcc/*
874 %dir %{_libdir}/gcc/*/*
875 %dir %{_libdir}/gcc/*/*/include
876 %{?with_ssp:%{_aclocaldir}/gcc_stack_protect.m4}
878 %attr(755,root,root) %{_bindir}/*-gcc*
879 %attr(755,root,root) %{_bindir}/gcc
880 %attr(755,root,root) %{_bindir}/gccbug
881 %attr(755,root,root) %{_bindir}/gcov
882 %attr(755,root,root) %{_bindir}/cc
883 %attr(755,root,root) %{_bindir}/cpp
885 %{_mandir}/man1/cc.1*
886 %{_mandir}/man1/cpp.1*
887 %lang(ja) %{_mandir}/ja/man1/cpp.1*
888 %{_mandir}/man1/gcc.1*
889 %lang(fr) %{_mandir}/fr/man1/gcc.1*
890 %lang(ja) %{_mandir}/ja/man1/gcc.1*
891 %{_mandir}/man1/gcov.1*
896 %attr(755,root,root) /lib/cpp
898 %attr(755,root,root) %{_slibdir}*/lib*.so
899 %{_libdir}/gcc/*/*/libgcov.a
900 %{_libdir}/gcc/*/*/libgcc.a
901 %{_libdir}/gcc/*/*/libgcc_eh.a
902 %{_libdir}/gcc/*/*/specs
903 %attr(644,root,root) %{_libdir}*/gcc/*/*/crt*.o
905 %{_libdir}/gcc/*/*/*/libgcc.a
906 %{_libdir}/gcc/*/*/*/libgcc_eh.a
907 %attr(644,root,root) %{_libdir}*/gcc/*/*/*/crt*.o
910 %attr(644,root,root) %{_libdir}/gcc/*/*/ecrt*.o
911 %attr(644,root,root) %{_libdir}/gcc/*/*/ncrt*.o
912 %{_libdir}/gcc/*/*/nof
915 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1
916 %attr(755,root,root) %{_libdir}/gcc/*/*/collect2
918 %{_libdir}/gcc/*/*/include/*.h
919 %exclude %{_libdir}/gcc/*/*/include/g2c.h
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_slibdir}*/lib*.so.*
926 %defattr(644,root,root,755)
927 %doc gcc/cp/{ChangeLog,NEWS}
928 %attr(755,root,root) %{_bindir}/g++
929 %attr(755,root,root) %{_bindir}/*-g++
930 %attr(755,root,root) %{_bindir}/c++
931 %attr(755,root,root) %{_bindir}/*-c++
932 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1plus
933 %{_libdir}*/libsupc++.la
935 %{_libdir}/nof/libsupc++.la
936 %{_libdir}/nof/libsupc++.a
938 %{_libdir}*/libsupc++.a
939 %{_mandir}/man1/g++.1*
940 %lang(ja) %{_mandir}/ja/man1/g++.1*
942 %files -n libstdc++ -f libstdc++.lang
943 %defattr(644,root,root,755)
944 %doc libstdc++-v3/{ChangeLog,README}
945 %attr(755,root,root) %{_libdir}*/libstdc++.so.*.*.*
947 %attr(755,root,root) %{_libdir}/nof/libstdc++.so.*.*.*
950 %files -n libstdc++-devel
951 %defattr(644,root,root,755)
952 %doc libstdc++-v3/docs/html
953 %dir %{_includedir}/c++
954 %{_includedir}/c++/%{version}
955 %exclude %{_includedir}/c++/%{version}/*/bits/stdc++.h.gch
956 %attr(755,root,root) %{_libdir}*/libstdc++.so
957 %{_libdir}*/libstdc++.la
959 %attr(755,root,root) %{_libdir}/nof/libstdc++.so
960 %{_libdir}/nof/libstdc++.la
963 %files -n libstdc++-static
964 %defattr(644,root,root,755)
965 %{_libdir}*/libstdc++.a
967 %{_libdir}/nof/libstdc++.a
972 %defattr(644,root,root,755)
974 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1obj
975 %attr(755,root,root) %{_libdir}*/libobjc.so
976 %{_libdir}*/libobjc.la
978 %attr(755,root,root) %{_libdir}/nof/libobjc.so
979 %{_libdir}/nof/libobjc.la
981 %{_libdir}/gcc/*/*/include/objc
984 %defattr(644,root,root,755)
985 %doc libobjc/{ChangeLog,README*}
986 %attr(755,root,root) %{_libdir}*/libobjc.so.*.*.*
988 %attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.*
991 %files -n libobjc-static
992 %defattr(644,root,root,755)
993 %{_libdir}*/libobjc.a
995 %{_libdir}/nof/libobjc.a
1000 %defattr(644,root,root,755)
1001 %doc gcc/f/{BUGS,ChangeLog,NEWS}
1002 %attr(755,root,root) %{_bindir}/g77
1003 %attr(755,root,root) %{_bindir}/f77
1005 %attr(755,root,root) %{_libdir}/gcc/*/*/f771
1006 %{_libdir}*/libfrtbegin.a
1007 %{_libdir}*/libg2c.la
1008 %attr(755,root,root) %{_libdir}*/libg2c.so
1010 %{_libdir}/nof/libfrtbegin.a
1011 %{_libdir}/nof/libg2c.la
1012 %attr(755,root,root) %{_libdir}/nof/libg2c.so
1014 %{_libdir}/gcc/*/*/include/g2c.h
1015 %{_mandir}/man1/g77.1*
1016 %{_mandir}/man1/f77.1*
1017 %lang(ja) %{_mandir}/ja/man1/g77.1*
1018 %lang(ja) %{_mandir}/ja/man1/f77.1*
1021 %defattr(644,root,root,755)
1022 %doc libf2c/{ChangeLog,README,TODO}
1023 %attr(755,root,root) %{_libdir}*/libg2c.so.*.*.*
1025 %attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.*
1028 %files -n libg2c-static
1029 %defattr(644,root,root,755)
1030 %{_libdir}*/libg2c.a
1032 %{_libdir}/nof/libg2c.a
1037 %defattr(644,root,root,755)
1038 %doc gcc/java/ChangeLog java-doc/*
1039 %attr(755,root,root) %{_bindir}/gcj*
1040 %attr(755,root,root) %{_bindir}/gij
1041 %attr(755,root,root) %{_bindir}/jcf-dump
1042 %attr(755,root,root) %{_bindir}/jv-*
1043 %attr(755,root,root) %{_bindir}/grepjar
1044 %attr(755,root,root) %{_bindir}/*-gcj*
1045 %attr(755,root,root) %{_libdir}/gcc/*/*/jc1
1046 %attr(755,root,root) %{_libdir}/gcc/*/*/jvgenmain
1048 %{_mandir}/man1/jcf-*
1049 %{_mandir}/man1/jv-*
1050 %{_mandir}/man1/gij*
1051 %{_mandir}/man1/gcj*
1052 %{_mandir}/man1/grepjar*
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/rmi*
1057 %attr(755,root,root) %{_bindir}/jar
1058 %{_mandir}/man1/rmi*
1059 %{_mandir}/man1/jar*
1060 %{_infodir}/fastjar*
1063 %defattr(644,root,root,755)
1064 %doc libjava/{ChangeLog,LIBGCJ_LICENSE,NEWS,README,THANKS}
1065 %attr(755,root,root) %{_bindir}/addr2name.awk
1066 %attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.*
1067 %attr(755,root,root) %{_libdir}/lib-org*.so.*.*.*
1069 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so.*
1071 %{_libdir}/logging.properties
1073 %files -n libgcj-devel
1074 %defattr(644,root,root,755)
1076 %{_includedir}/javax
1079 %{_includedir}/gnu/*
1080 %{_libdir}/gcc/*/*/include/gcj
1081 %dir %{_libdir}/security
1082 %{_libdir}/security/*
1083 %dir %{_datadir}/java
1084 %{_datadir}/java/libgcj*.jar
1085 %{_libdir}/lib*cj.spec
1086 %{_libdir}/lib*cj*.la
1087 %attr(755,root,root) %{_libdir}/lib*cj*.so
1088 %attr(755,root,root) %{_libdir}/lib-org-*.so
1089 %{_libdir}/lib-org-*.la
1091 %{_libdir}/nof/lib*cj*.la
1092 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so
1094 %{_pkgconfigdir}/libgcj.pc
1096 %files -n libgcj-static
1097 %defattr(644,root,root,755)
1098 %{_libdir}/lib*cj*.a
1099 %{_libdir}/lib-org-*.a
1101 %{_libdir}/nof/lib*cj*.a
1105 %defattr(644,root,root,755)
1106 %doc libffi/{ChangeLog,ChangeLog.libgcj,LICENSE,README}
1107 %attr(755,root,root) %{_libdir}/libffi-*.so
1109 %files -n libffi-devel
1110 %defattr(644,root,root,755)
1111 %{_libdir}/gcc/*/*/include/ffitarget.h
1112 %attr(755,root,root) %{_libdir}/libffi.so
1113 %{_libdir}/libffi.la
1114 %{_includedir}/ffi.h
1116 %files -n libffi-static
1117 %defattr(644,root,root,755)
1123 %defattr(644,root,root,755)
1124 %doc gcc/ada/ChangeLog
1125 %attr(755,root,root) %{_bindir}/gnat*
1126 %attr(755,root,root) %{_bindir}/gpr*
1127 %attr(755,root,root) %{_libdir}/libgnarl*.so
1128 %attr(755,root,root) %{_libdir}/libgnat*.so
1129 %attr(755,root,root) %{_libdir}/gcc/*/*/gnat1
1130 %{_libdir}/gcc/*/*/adainclude
1131 %dir %{_libdir}/gcc/*/*/adalib
1132 %{_libdir}/gcc/*/*/adalib/*.ali
1133 %{_libdir}/gcc/*/*/adalib/g-trasym.o
1134 %{_libdir}/gcc/*/*/adalib/libgccprefix.a
1136 %{_libdir}/gcc/*/*/adalib/libgmem.a
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_libdir}/libgnarl*.so.1
1144 %attr(755,root,root) %{_libdir}/libgnat*.so.1
1146 %files -n libgnat-static
1147 %defattr(644,root,root,755)
1148 %{_libdir}/gcc/*/*/adalib/libgnarl.a
1149 %{_libdir}/gcc/*/*/adalib/libgnat.a