]> git.pld-linux.org Git - packages/gcc4.git/blob - gcc4.spec
- final 3.4.0 release
[packages/gcc4.git] / gcc4.spec
1 #
2 # Conditional build:
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 #
7 %define         GCC_VERSION     3.4.0
8 #
9 Summary:        GNU Compiler Collection: the C compiler and shared files
10 Summary(es):    Colección de compiladores GNU: el compilador C y ficheros compartidos
11 Summary(pl):    Kolekcja kompilatorów GNU: kompilator C i pliki wspó³dzielone
12 Summary(pt_BR): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
13 Name:           gcc
14 Version:        %{GCC_VERSION}
15 Release:        1
16 Epoch:          5
17 License:        GPL
18 Group:          Development/Languages
19 Source0:        ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/%{name}-%{version}.tar.bz2
20 # Source0-md5:  85c6fc83d51be0fbb4f8205accbaff59
21 Source1:        http://ep09.pld-linux.org/~djrzulf/gcc33/%{name}-non-english-man-pages.tar.bz2
22 # Source1-md5:  4736f3422ddfb808423b745629acc321
23 Patch0:         %{name}-info.patch
24 Patch1:         %{name}-nolocalefiles.patch
25 Patch2:         %{name}-ada-link-new-libgnat.patch
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  binutils >= 2.14
29 BuildRequires:  bison
30 BuildRequires:  fileutils >= 4.0.41
31 BuildRequires:  flex
32 %{?with_ada:BuildRequires:      gcc-ada}
33 BuildRequires:  gettext-devel
34 BuildRequires:  glibc-devel >= 2.2.5-20
35 BuildRequires:  perl-devel
36 BuildRequires:  texinfo >= 4.1
37 BuildRequires:  zlib-devel
38 Requires:       binutils >= 2.14
39 Requires:       cpp = %{epoch}:%{version}-%{release}
40 Requires:       libgcc = %{epoch}:%{version}-%{release}
41 Conflicts:      glibc-devel < 2.2.5-20
42 URL:            http://gcc.gnu.org/
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %define         _slibdir        /%{_lib}
46 %ifarch sparc64
47 %define         _slibdir64      /lib64
48 %define         _libdir         /usr/lib
49 %define         rpmcflags       -O2 -mtune=ultrasparc
50 %endif
51
52 %description
53 A compiler aimed at integrating all the optimizations and features
54 necessary for a high-performance and stable development environment.
55
56 This package contains the C compiler and some files shared by various
57 parts of the GNU Compiler Collection. In order to use another GCC
58 compiler you will need to install the appropriate subpackage.
59
60 %description -l es
61 Un compilador destinado a la integración de todas las optimalizaciones
62 y características necesarias para un entorno de desarrollo eficaz y
63 estable.
64
65 Este paquete contiene el compilador de C y unos ficheros compartidos
66 por varias parted de la colección de compiladores GNU (GCC). Para usar
67 otro compilador de GCC será necesario que instale el subpaquete
68 adecuado.
69
70 %description -l pl
71 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
72 wyprodukowania szybkiego i stablinego kodu wynikowego.
73
74 Ten pakiet zawiera kompilator C i pliki wspó³dzielone przez ró¿ne
75 czê¶ci kolekcji kompilatorów GNU (GCC). ¯eby u¿ywaæ innego kompilatora
76 z GCC, trzeba zainstalowaæ odpowiedni podpakiet.
77
78 %description -l pt_BR
79 Este pacote adiciona infraestrutura básica e suporte a linguagem C ao
80 GNU Compiler Collection.
81
82 %package -n libgcc
83 Summary:        Shared gcc library
84 Summary(es):    Biblioteca compartida de gcc
85 Summary(pl):    Biblioteka gcc
86 Summary(pt_BR): Biblioteca runtime para o GCC
87 Group:          Libraries
88 Obsoletes:      libgcc1
89
90 %description -n libgcc
91 Shared gcc library.
92
93 %description -n libgcc -l es
94 Biblioteca compartida de gcc.
95
96 %description -n libgcc -l pl
97 Biblioteka dynamiczna gcc.
98
99 %description -n libgcc -l pt_BR
100 Biblioteca runtime para o GCC.
101
102 %package c++
103 Summary:        C++ support for gcc
104 Summary(es):    Soporte de C++ para gcc
105 Summary(pl):    Obs³uga C++ dla gcc
106 Summary(pt_BR): Suporte C++ para o gcc
107 Group:          Development/Languages
108 Obsoletes:      egcc-c++
109 Obsoletes:      egcs-c++
110 Requires:       gcc = %{epoch}:%{version}-%{release}
111
112 %description c++
113 This package adds C++ support to the GNU Compiler Collection. It
114 includes support for most of the current C++ specification, including
115 templates and exception handling. It does not include a standard C++
116 library, which is available separately.
117
118 %description c++ -l de
119 Dieses Paket enthält die C++-Unterstützung für den
120 GNU-Compiler-Collection. Es unterstützt die aktuelle
121 C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine
122 C++-Standard-Library ist nicht enthalten - sie ist getrennt
123 erhältlich.
124
125 %description c++ -l es
126 Este paquete añade soporte de C++ al GCC (colección de compiladores
127 GNU). Ello incluye el soporte para la mayoría de la especificación
128 actual de C++, incluyendo plantillas y manejo de excepciones. No
129 incluye la biblioteca estándar de C++, la que es disponible separada.
130
131 %description c++ -l fr
132 Ce package ajoute un support C++ a la collection de compilateurs GNU.
133 Il comprend un support pour la plupart des spécifications actuelles de
134 C++, dont les modéles et la gestion des exceptions. Il ne comprend pas
135 une bibliothéque C++ standard, qui est disponible séparément.
136
137 %description c++ -l pl
138 Ten pakiet dodaje obs³ugê C++ do kompilatora gcc. Ma wsparcie dla
139 du¿ej ilo¶ci obecnych specyfikacji C++, nie zawiera natomiast
140 standardowych bibliotek C++, które s± w oddzielnym pakiecie.
141
142 %description c++ -l pt_BR
143 Este pacote adiciona suporte C++ para o gcc.
144
145 %description c++ -l tr
146 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
147 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
148 C++ kitaplýðý bu pakette yer almaz.
149
150 %package objc
151 Summary:        Objective C support for gcc
152 Summary(de):    Objektive C-Unterstützung für gcc
153 Summary(es):    Soporte de Objective C para gcc
154 Summary(fr):    Gestion d'Objective C pour gcc
155 Summary(pl):    Obs³uga obiektowego C dla kompilatora gcc
156 Summary(tr):    gcc için Objective C desteði
157 Group:          Development/Languages
158 Obsoletes:      egcc-objc
159 Obsoletes:      egcs-objc
160 Requires:       libobjc = %{epoch}:%{version}-%{release}
161 Requires:       gcc = %{epoch}:%{version}-%{release}
162
163 %description objc
164 This package adds Objective C support to the GNU Compiler Collection.
165 Objective C is a object oriented derivative of the C language, mainly
166 used on systems running NeXTSTEP. This package does not include the
167 standard objective C object library.
168
169 %description objc -l de
170 Dieses Paket ergänzt den GNU-Compiler-Collection durch
171 Objective-C-Support. Objective C ist ein objektorientiertes Derivat
172 von C, das zur Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt.
173 Die Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
174
175 %description objc -l es
176 Este paquete añade soporte de Objective C al GCC (colección de
177 compiladores GNU). Objective C es un lenguaje orientado a objetos
178 derivado de C, principalmente usado en sistemas que funcionan bajo
179 NeXTSTEP. El paquete no incluye la biblioteca de objetos estándar de
180 Objective C.
181
182 %description objc -l fr
183 Ce package ajoute un support Objective C a la collection de
184 compilateurs GNU. L'Objective C est un langage orienté objetdérivé du
185 langage C, principalement utilisé sur les systèmes NeXTSTEP. Ce
186 package n'inclue pas la bibliothéque Objective C standard.
187
188 %description objc -l pl
189 Ten pakiet dodaje obs³ugê obiektowego C do kompilatora gcc. Obiektowe
190 C (objc) jest zorientowan± obiektowo pochodn± jêzyka C, u¿ywan±
191 g³ównie w systemach u¿ywaj±cych NeXTSTEP. W pakiecie nie ma
192 standardowej biblioteki objc (która znajduje siê w osobnym pakiecie).
193
194 %description objc -l tr
195 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
196 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
197 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
198 kitaplýðý bu pakette yer almaz.
199
200 %package -n libobjc
201 Summary:        Objective C Libraries
202 Summary(es):    Bibliotecas de Objective C
203 Summary(pl):    Biblioteki Obiektowego C
204 Group:          Libraries
205 Obsoletes:      libobjc1
206
207 %description -n libobjc
208 Objective C Libraries.
209
210 %description -n libobjc -l es
211 Bibliotecas de Objective C.
212
213 %description -n libobjc -l pl
214 Biblioteki Obiektowego C.
215
216 %package -n libobjc-static
217 Summary:        Static Objective C Libraries
218 Summary(es):    Bibliotecas estáticas de Objective C
219 Summary(pl):    Statyczne Biblioteki Obiektowego C
220 Group:          Development/Libraries
221 Requires:       libobjc = %{epoch}:%{version}-%{release}
222
223 %description -n libobjc-static
224 Static Objective C Libraries.
225
226 %description -n libobjc-static -l es
227 Bibliotecas estáticas de Objective C.
228
229 %description -n libobjc-static -l pl
230 Statyczne biblioteki Obiektowego C.
231
232 %package g77
233 Summary:        Fortran 77 support for gcc
234 Summary(es):    Soporte de Fortran 77 para gcc
235 Summary(pl):    Obs³uga Fortranu 77 dla gcc
236 Summary(pt_BR): Suporte Fortran 77 para o GCC
237 Group:          Development/Languages/Fortran
238 Obsoletes:      egcs-g77
239 Requires:       libg2c = %{epoch}:%{version}-%{release}
240
241 %description g77
242 This package adds support for compiling Fortran 77 programs with the
243 GNU compiler.
244
245 %description g77 -l es
246 Este paquete añade soporte para compilar programas escritos en Fortran
247 77 con el compilador GNU.
248
249 %description g77 -l pl
250 Ten pakiet dodaje obs³ugê Fortranu 77 do kompilatora gcc. Jest
251 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
252
253 %description g77 -l pt_BR
254 Suporte Fortran 77 para o GCC.
255
256 %package -n libg2c
257 Summary:        Fortran 77 Libraries
258 Summary(es):    Bibliotecas de Fortran 77
259 Summary(pl):    Biblioteki Fortranu 77
260 Group:          Libraries
261
262 %description -n libg2c
263 Fortran 77 Libraries.
264
265 %description -n libg2c -l es
266 Bibliotecas de Fortran 77.
267
268 %description -n libg2c -l pl
269 Biblioteki Fortranu 77.
270
271 %package -n libg2c-static
272 Summary:        Static Fortran 77 Libraries
273 Summary(es):    Bibliotecas estáticas de Fortran 77
274 Summary(pl):    Statyczne Biblioteki Fortranu 77
275 Group:          Development/Libraries
276 Requires:       libg2c = %{epoch}:%{version}-%{release}
277
278 %description -n libg2c-static
279 Static Fortran 77 Libraries.
280
281 %description -n libg2c -l es
282 Bibliotecas estáticas de Fortran 77.
283
284 %description -n libg2c-static -l pl
285 Statyczne biblioteki Fortranu 77.
286
287 %package java
288 Summary:        Java support for gcc
289 Summary(es):    Soporte de Java para gcc
290 Summary(pl):    Obs³uga Javy dla gcc
291 Group:          Development/Languages/Java
292 Requires:       %{name} = %{epoch}:%{version}-%{release}
293 Requires:       libgcj >= 3.0.0
294 Requires:       libgcj-devel >= 3.0.0
295 Requires:       java-shared
296 Provides:       gcj = %{epoch}:%{version}-%{release}
297
298 %description java
299 This package adds experimental support for compiling Java(tm) programs
300 and bytecode into native code. To use this you will also need the
301 libgcj package.
302
303 %description java -l es
304 Este paquete añade soporte experimental para compilar programas
305 Java(tm) y su bytecode en código nativo. Para usarlo también va a
306 necesitar el paquete libgcj.
307
308 %description java -l pl
309 Wsparcie dla kompilowania programów Java(tm) zrówno do bajt-kodu jak i
310 do natywnego kodu. Dodatkowo wymagany jest pakiet libgcj, aby mo¿na
311 by³o przeprowadziæ kompilacjê.
312
313 %package java-tools
314 Summary:        Shared java tools
315 Summary(es):    Herramientas compartidas de Java
316 Summary(pl):    Wspó³dzielone narzêdzia javy
317 Group:          Development/Languages/Java
318 Provides:       jar = %{epoch}:%{version}-%{release}
319 Provides:       java-shared
320 Obsoletes:      fastjar
321 Obsoletes:      java-shared
322 Obsoletes:      jar
323
324 %description java-tools
325 This package contains tools that are common for every Java(tm)
326 implementation, such as rmic or jar.
327
328 %description java-tools -l es
329 Este paquete contiene herramientas que son comunes para cada
330 implementación de Java(tm), como rmic o jar.
331
332 %description java-tools -l pl
333 Pakiet ten zawiera narzêdzia wspólne dla ka¿dej implementacji
334 Javy(tm), takie jak rmic czy jar.
335
336 %package -n libgcj
337 Summary:        Java Class Libraries
338 Summary(es):    Bibliotecas de clases de Java
339 Summary(pl):    Biblioteki Klas Javy
340 Group:          Libraries
341 Requires:       zlib
342 Obsoletes:      libgcj3
343
344 %description -n libgcj
345 Java Class Libraries.
346
347 %description -n libgcj -l es
348 Bibliotecas de clases de Java.
349
350 %description -n libgcj -l pl
351 Biblioteki Klas Javy.
352
353 %package -n libgcj-devel
354 Summary:        Development files for Java Class Libraries
355 Summary(es):    Ficheros de desarrollo para las bibliotecas de clases de Java
356 Summary(pl):    Pliki nag³ówkowe dla Bibliotek Klas Javy
357 Group:          Development/Libraries
358 Requires:       libgcj = %{epoch}:%{version}-%{release}
359 Requires:       %{name}-java
360 Requires:       pkgconfig
361 Obsoletes:      libgcj3-devel
362
363 %description -n libgcj-devel
364 Development files for Java Class Libraries.
365
366 %description -n libgcj-devel -l es
367 Ficheros de desarrollo para las bibliotecas de clases de Java.
368
369 %description -n libgcj-devel -l pl
370 Pliki nag³ówkowe dla Bibliotek Klas Javy.
371
372 %package -n libgcj-static
373 Summary:        Static Java Class Libraries
374 Summary(es):    Bibliotecas estáticas de clases de Java
375 Summary(pl):    Statyczne Biblioteki Klas Javy
376 Group:          Development/Libraries
377 Requires:       libstdc++-devel = %{epoch}:%{version}-%{release}
378 Requires:       libgcj-devel = %{epoch}:%{version}-%{release}
379
380 %description -n libgcj-static
381 Static Java Class Libraries.
382
383 %description -n libgcj-static -l es
384 Bibliotecas estáticas de clases de Java.
385
386 %description -n libgcj-static -l pl
387 Statyczne Biblioteki Klas Javy.
388
389 %package -n libstdc++
390 Summary:        GNU c++ library
391 Summary(es):    Biblioteca C++ de GNU
392 Summary(pl):    Biblioteki GNU C++
393 Summary(pt_BR): Biblioteca C++ GNU
394 Group:          Libraries
395 Obsoletes:      libg++
396 Obsoletes:      libstdc++3
397
398 %description -n libstdc++
399 This is the GNU implementation of the standard C++ libraries, along
400 with additional GNU tools. This package includes the shared libraries
401 necessary to run C++ applications.
402
403 %description -n libstdc++ -l de
404 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
405 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
406 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
407
408 %description -n libstdc++ -l es
409 Este es el soporte de las bibliotecas padrón del C++, junto con
410 herramientas GNU adicionales. El paquete incluye las bibliotecas
411 compartidas necesarias para ejecutar aplicaciones C++.
412
413 %description -n libstdc++ -l fr
414 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
415 des outils GNU supplémentaires. Ce package comprend les librairies
416 partagées nécessaires à l'exécution d'application C++.
417
418 %description -n libstdc++ -l pl
419 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
420 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
421 uruchomienia aplikacji napisanych w C++.
422
423 %description -n libstdc++ -l pt_BR
424 Este pacote é uma implementação da biblioteca padrão C++ v3, um
425 subconjunto do padrão ISO 14882.
426
427 %description -n libstdc++ -l tr
428 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
429 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
430
431 %package -n libstdc++-devel
432 Summary:        Header files and documentation for C++ development
433 Summary(de):    Header-Dateien zur Entwicklung mit C++
434 Summary(es):    Ficheros de cabecera y documentación para desarrollo C++
435 Summary(fr):    Fichiers d'en-tête et biblitothèques pour développer en C++
436 Summary(pl):    Pliki nag³ówkowe i dokumentacja do biblioteki standardowej C++
437 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento em C++
438 Summary(tr):    C++ ile program geliþtirmek için gerekli dosyalar
439 Group:          Development/Libraries
440 Requires:       libstdc++ = %{epoch}:%{version}-%{release}
441 Requires:       %{name}-c++ = %{epoch}:%{version}-%{release}
442 Obsoletes:      libg++-devel
443 Obsoletes:      libstdc++3-devel
444
445 %description -n libstdc++-devel
446 This is the GNU implementation of the standard C++ libraries. This
447 package includes the header files needed for C++ development and
448 library documentation.
449
450 %description -n libstdc++-devel -l es
451 Este es el soporte de las bibliotecas padrón del lenguaje C++. Este
452 paquete incluye los archivos de inclusión y bibliotecas necesarios
453 para desarrollo de programas en lenguaje C++.
454
455 %description -n libstdc++-devel -l pl
456 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
457 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
458 programowaniu w jêzyku C++ oraz dokumentacja biblioteki standardowej.
459
460 %description -n libstdc++-devel -l pt_BR
461 Este pacote inclui os arquivos de inclusão e bibliotecas necessárias
462 para desenvolvimento de programas C++.
463
464 %package -n libstdc++-static
465 Summary:        Static C++ standard library
466 Summary(es):    Biblioteca estándar estática de C++
467 Summary(pl):    Statyczna biblioteka standardowa C++
468 Group:          Development/Libraries
469 Requires:       libstdc++-devel = %{epoch}:%{version}-%{release}
470
471 %description -n libstdc++-static
472 Static C++ standard library.
473
474 %description -n libstdc++-static -l es
475 Biblioteca estándar estática de C++.
476
477 %description -n libstdc++-static -l pl
478 Statycza biblioteka standardowa C++.
479
480 %package -n libffi
481 Summary:        Foreign Function Interface library
482 Summary(es):    Biblioteca de interfaz de funciones ajenas
483 Summary(pl):    Biblioteka zewnêtrznych wywo³añ funkcji
484 Group:          Libraries
485
486 %description -n libffi
487 The libffi library provides a portable, high level programming
488 interface to various calling conventions. This allows a programmer to
489 call any function specified by a call interface description at run
490 time.
491
492 %description -n libffi -l es
493 La biblioteca libffi provee una interfaz portable de programación de
494 alto nivel para varias convenciones de llamada. Ello permite que un
495 programador llame una función cualquiera especificada por una
496 descripción de interfaz de llamada en el tiempo de ejecución.
497
498 %description -n libffi -l pl
499 Biblioteka libffi dostarcza przno¶nego, wysokopoziomowego
500 miêdzymordzia do ró¿nych konwencji wywo³añ funkcji. Pozwala to
501 programi¶cie wywo³ywaæ dowolne funkcje podaj±c konwencjê wywo³ania w
502 czasie wykonania.
503
504 %package -n libffi-devel
505 Summary:        Development files for Foreign Function Interface library
506 Summary(es):    Ficheros de desarrollo para libffi
507 Summary(pl):    Pliki nag³ówkowe dla libffi
508 Group:          Development/Libraries
509 Requires:       libffi = %{epoch}:%{version}-%{release}
510
511 %description -n libffi-devel
512 Development files for Foreign Function Interface library.
513
514 %description -n libffi-devel -l es
515 Ficheros de desarrollo para libffi.
516
517 %description -n libffi-devel -l pl
518 Pliki nag³ówkowe dla libffi.
519
520 %package -n libffi-static
521 Summary:        Static Foreign Function Interface library
522 Summary(es):    Biblioteca libffi estática
523 Summary(pl):    Statyczna biblioteka libffi
524 Group:          Development/Libraries
525 Requires:       libffi-devel = %{epoch}:%{version}-%{release}
526
527 %description -n libffi-static
528 Static Foreign Function Interface library.
529
530 %description -n libffi-static -l es
531 Biblioteca libffi estática.
532
533 %description -n libffi-static -l pl
534 Statyczna biblioteka libffi.
535
536 %package ada
537 Summary:        Ada support for gcc
538 Summary(es):    Soporte de Ada para gcc
539 Summary(pl):    Obs³uga Ady do gcc
540 Group:          Development/Languages
541 Requires:       libgnat = %{epoch}:%{version}-%{release}
542 Requires:       gcc = %{epoch}:%{version}-%{release}
543 Obsoletes:      gcc-gnat
544 Obsoletes:      gnat-devel
545
546 %description ada
547 This package adds experimental support for compiling Ada programs.
548
549 %description ada -l es
550 Este paquete añade soporte experimental para compilar programas en
551 Ada.
552
553 %description ada -l pl
554 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
555 Adzie.
556
557 %package -n libgnat
558 Summary:        Ada standard libraries
559 Summary(es):    Bibliotecas estándares de Ada
560 Summary(pl):    Biblioteki standardowe dla Ady
561 Group:          Libraries
562 Obsoletes:      gnat
563 Obsoletes:      libgnat1
564
565 %description -n libgnat
566 This package contains shared libraries needed to run programs written
567 in Ada.
568
569 %description -n libgnat -l es
570 Este paquete contiene las bibliotecas compartidas necesarias para
571 ejecutar programas escritos en Ada.
572
573 %description -n libgnat -l pl
574 Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów
575 napisanych w Adzie.
576
577 %package -n libgnat-static
578 Summary:        Static Ada standard libraries
579 Summary(pl):    Statyczne biblioteki standardowe dla Ady
580 Group:          Libraries
581 Obsoletes:      gnat-static
582
583 %description -n libgnat-static
584 This package contains static libraries for programs written in Ada.
585
586 %description -n libgnat-static -l pl
587 Ten pakiet zawiera biblioteki statyczne dla programów napisanych w
588 Adzie.
589
590 %package -n cpp
591 Summary:        The C Pre Processor
592 Summary(es):    El preprocesador de C
593 Summary(pl):    Preprocesor C
594 Summary(pt_BR): Preprocessador para a linguagem C
595 Group:          Development/Languages
596 Version:        %{GCC_VERSION}
597 Obsoletes:      egcs-cpp
598 Obsoletes:      gcc-cpp
599
600 %description -n cpp
601 The C preprocessor is a "macro processor" that is used automatically
602 by the C compiler to transform your program before actual compilation.
603 It is called a macro processor because it allows you to define
604 "macros", which are brief abbreviations for longer constructs.
605
606 The C preprocessor provides four separate facilities that you can use
607 as you see fit:
608
609 - Inclusion of header files. These are files of declarations that can
610   be substituted into your program.
611 - Macro expansion. You can define "macros", which are abbreviations
612   for arbitrary fragments of C code, and then the C preprocessor will
613   replace the macros with their definitions throughout the program.
614 - Conditional compilation. Using special preprocessing directives, you
615   can include or exclude parts of the program according to various
616   conditions.
617 - Line control. If you use a program to combine or rearrange source
618   files into an intermediate file which is then compiled, you can use
619   line control to inform the compiler of where each source line
620   originally came from.
621
622 %description -n cpp -l es
623 El preprocesador de C es un "procesador de macros" que es usado
624 automáticamente por el compilador C para transformar su programa antes
625 de que éste se actualmente compile. Se llama procesador de macros
626 porque permite definir "macros", los que son abreviaciones concisas
627 para construcciones más largas.
628
629 El preprocesador C provee cuatro cualidadedes distintas que puede usar
630 como le convenga:
631
632 - Inclusión de ficheros de cabecera. Éstos son ficheros de
633   declaraciones que pueden incorporarse a su programa.
634 - Expansión de macros. Puede definir "macros", los que son
635   abreviaciones para fragmentos arbitrarios de código C, y a lo largo
636   del programa el preprocesador sustituirá los macros con sus
637   definiciones.
638 - Compilación condicional. Usando especiales directivas del preproceso
639   puede incluir o excluir partes del programa según varias condiciones.
640 - Control de líneas. Si usa un programa para combinar o reorganizar el
641   código fuente en un fichero intermedio que luego es compilado, puede
642   usar control de líneas para informar el compilador de dónde origina
643   cada línea.
644
645 %description -n cpp -l pl
646 Przeprocesor C jest "makro procesorem" który jest automatycznie
647 u¿ywany przez kompilator C do obróbki kompilowanego programu przed
648 w³a¶ciw± kompilacj±. Jest on nazywany makroprocesorem, poniewa¿
649 umo¿liwia definiowanie i rozwijanie makr umo¿liwiaj±cych skracanie
650 d³ugich konstrukcji w jêzyku C.
651
652 Preprocesor C umo¿liwia wykonywanie czterech ró¿nych typów operacji:
653
654 - Do³±czanie plików (np. nag³ówkowych). Wstawia pliki w miejscu
655   deklaracji polecenia do³±czenia innego pliku.
656 - Rozwijanie makr. Mo¿na definiowaæ "makra" nadaj±c im identyfikatory,
657   których pó¼niejsze u¿ycie powoduje podczas rozwijania podmienienie
658   indentyfikatora deklarowan± wcze¶niej warto¶ci±.
659 - Kompilacja warunkowa. W zale¿no¶ci od obecno¶ci symboli i dyrektyw w
660   ¶rodowisku preprocesora s± w³±czane warunkowo, b±d¼ nie, pewne
661   fragmenty obrabianego strumienia tekstów.
662 - Kontrola linii ¼ród³a. Niezale¿nie od tego jakim przeobra¿eniom
663   podlega wynikowy strumieñ danych w wyniku rozwijania makr i do³±czania
664   s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego
665   odpowiada fragment pliku wynikowego.
666
667 %description -n cpp -l pt_BR
668 O preprocessador C é um "processador de macros", que é utilizado pelo
669 compilador C para fazer algumas modificações no seu programa, antes da
670 compilação em si. Ele é chamado de "processador de macros" porque
671 permite a você definir "macros", que são abreviações para construções
672 mais complicadas.
673
674 O preprocessador C fornece quatro funcionalidades básicas: inclusão de
675 arquivos de cabeçalho; expansão de macros; compilação condicional; e
676 controle da numeração das linhas do programa.
677
678 %prep
679 %setup -q -a1
680
681 %patch0 -p1
682 %patch1 -p1
683 %patch2 -p1
684
685 # because we distribute modified version of gcc...
686 perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
687 perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
688
689 mv ChangeLog ChangeLog.general
690
691 %build
692 # cd gcc && autoconf; cd ..
693 # autoconf is not needed!
694 cp /usr/share/automake/config.sub .
695
696 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
697
698 CFLAGS="%{rpmcflags}" \
699 CXXFLAGS="%{rpmcflags}" \
700 TEXCONFIG=false ../configure \
701         --prefix=%{_prefix} \
702         --libdir=%{_libdir} \
703         --libexecdir=%{_libexecdir} \
704         --infodir=%{_infodir} \
705         --mandir=%{_mandir} \
706         --enable-shared \
707         --enable-threads=posix \
708         --enable-__cxa_atexit \
709         --enable-languages="c,c++,f77%{?with_objc:,objc}%{?with_ada:,ada}%{?with_java:,java}" \
710         --enable-c99 \
711         --enable-long-long \
712 %ifarch amd64
713         --disable-multilib \
714 %else
715         --enable-multilib \
716 %endif
717         --enable-nls \
718         --with-gnu-as \
719         --with-gnu-ld \
720         --with-system-zlib \
721         --with-slibdir=%{_slibdir} \
722         --without-x \
723         %{_target_platform}
724
725 PATH=$PATH:/sbin:%{_sbindir}
726
727 cd ..
728 %{__make} -C obj-%{_target_platform} profiledbootstrap \
729         BOOT_CFLAGS="%{rpmcflags}" \
730         STAGE1_CFLAGS="%{rpmcflags}" \
731         LDFLAGS_FOR_TARGET="%{rpmldflags}" \
732         mandir=%{_mandir} \
733         infodir=%{_infodir}
734
735 %if %{with ada}
736 %{__make} -C obj-%{_target_platform}/gcc gnatlib gnattools gnatlib-shared \
737         LDFLAGS_FOR_TARGET="%{rpmldflags}" \
738         mandir=%{_mandir} \
739         infodir=%{_infodir}
740 %endif
741
742 %install
743 rm -rf $RPM_BUILD_ROOT
744 install -d $RPM_BUILD_ROOT{/lib,%{_datadir},%{_infodir}}
745
746 cd obj-%{_target_platform}
747 PATH=$PATH:/sbin:%{_sbindir}
748
749 %{__make} install \
750         mandir=%{_mandir} \
751         infodir=%{_infodir} \
752         DESTDIR=$RPM_BUILD_ROOT
753
754 %ifarch sparc64
755 ln -f $RPM_BUILD_ROOT%{_bindir}/sparc64-pld-linux-gcc \
756         $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
757 %endif
758
759 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
760 echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
761
762 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
763 echo ".so g77.1" > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
764
765 %if %{with ada}
766 # move ada shared libraries to proper place...
767 mv $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/adalib/*.so \
768         $RPM_BUILD_ROOT%{_libdir}/
769 %endif
770
771 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
772
773 cd ..
774
775 %if %{with java}
776 install -d java-doc
777 cp -f libjava/doc/cni.sgml libjava/READ* java-doc
778 cp -f fastjar/README java-doc/README.fastjar
779 cp -f libffi/README java-doc/README.libffi
780 cp -f libffi/LICENSE java-doc/LICENSE.libffi
781 %endif
782
783 %if %{with objc}
784 cp -f libobjc/README gcc/objc/README.libobjc
785 %endif
786
787 # avoid -L poisoning in *.la - there should be only -L%{_libdir}/gcc/*/%{version}
788 for f in libstdc++.la libsupc++.la %{?with_java:libgcj.la} ; do
789         perl -pi -e 's@-L[^ ]*[acs.] @@g' $RPM_BUILD_ROOT%{_libdir}/$f
790 done
791 # normalize libdir, to avoid propagation of unnecessary RPATHs by libtool
792 for f in libstdc++.la libsupc++.la libg2c.la \
793         %{?with_java:libgcj.la lib-org-w3c-dom.la lib-org-xml-sax.la libffi.la} \
794         %{?with_objc:libobjc.la}; do
795         perl -pi -e "s@^libdir='.*@libdir='/usr/%{_lib}'@" $RPM_BUILD_ROOT%{_libdir}/$f
796 done
797
798 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
799 mv -f $RPM_BUILD_ROOT%{_mandir}/ja/man1/{cccp,cpp}.1
800
801 # include/ contains install-tools/include/* and headers that were fixed up
802 # by fixincludes, we don't want former
803 gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/)
804 mkdir $gccdir/tmp
805 # we have to save these however
806 mv -f $gccdir/include/{%{?with_objc:objc,}g2c.h,syslimits.h%{?with_java:,gcj}} $gccdir/tmp
807 rm -rf $gccdir/include
808 mv -f $gccdir/tmp $gccdir/include
809 cp $gccdir/install-tools/include/*.h $gccdir/include
810 # but we don't want anything more from install-tools
811 rm -rf $gccdir/install-tools
812
813 %find_lang %{name}
814 %find_lang libstdc\+\+
815
816 %clean
817 rm -rf $RPM_BUILD_ROOT
818
819 %post
820 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
821
822 %postun
823 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
824
825 %post g77
826 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
827
828 %postun g77
829 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
830
831 %post java
832 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
833
834 %postun java
835 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
836
837 %post -n cpp
838 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
839
840 %postun -n cpp
841 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
842
843 %post   -p /sbin/ldconfig -n libgcc
844 %postun -p /sbin/ldconfig -n libgcc
845 %post   -p /sbin/ldconfig -n libstdc++
846 %postun -p /sbin/ldconfig -n libstdc++
847 %post   -p /sbin/ldconfig -n libobjc
848 %postun -p /sbin/ldconfig -n libobjc
849 %post   -p /sbin/ldconfig -n libg2c
850 %postun -p /sbin/ldconfig -n libg2c
851 %post   -p /sbin/ldconfig -n libgcj
852 %postun -p /sbin/ldconfig -n libgcj
853 %post   -p /sbin/ldconfig -n libgnat
854 %postun -p /sbin/ldconfig -n libgnat
855 %post   -p /sbin/ldconfig -n libffi
856 %postun -p /sbin/ldconfig -n libffi
857
858 %files -f %{name}.lang
859 %defattr(644,root,root,755)
860 %doc ChangeLog.general MAINTAINERS bugs.html faq.html
861 %doc gcc/{README.Portability,NEWS,ChangeLog}
862 %dir %{_libdir}/gcc
863 %dir %{_libdir}/gcc/*
864 %dir %{_libdir}/gcc/*/*
865 %dir %{_libdir}/gcc/*/*/include
866 %attr(755,root,root) %{_bindir}/*-gcc*
867 %attr(755,root,root) %{_bindir}/gcc
868 %attr(755,root,root) %{_bindir}/gccbug
869 %attr(755,root,root) %{_bindir}/gcov
870 %attr(755,root,root) %{_bindir}/cc
871
872 %{_mandir}/man1/gcc.1*
873 %{_mandir}/man1/cc.1*
874 %{_mandir}/man1/gcov.1*
875 %lang(fr) %{_mandir}/fr/man1/gcc.1*
876 %lang(ja) %{_mandir}/ja/man1/gcc.1*
877 %{_infodir}/gcc*
878
879 %attr(755,root,root) %{_slibdir}*/lib*.so
880 %{_libdir}/gcc/*/*/libgcov.a
881 %{_libdir}/gcc/*/*/libgcc.a
882 %{_libdir}/gcc/*/*/libgcc_eh.a
883 %{_libdir}/gcc/*/*/specs
884 %attr(644,root,root) %{_libdir}*/gcc/*/*/crt*.o
885 %ifarch sparc64
886 %{_libdir}/gcc/*/*/*/libgcc.a
887 %{_libdir}/gcc/*/*/*/libgcc_eh.a
888 %attr(644,root,root) %{_libdir}*/gcc/*/*/*/crt*.o
889 %endif
890 %ifarch ppc
891 %attr(644,root,root) %{_libdir}/gcc/*/*/ecrt*.o
892 %attr(644,root,root) %{_libdir}/gcc/*/*/ncrt*.o
893 %{_libdir}/gcc/*/*/nof
894 %dir %{_libdir}/nof
895 %endif
896 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1
897 %attr(755,root,root) %{_libdir}/gcc/*/*/collect2
898
899 %{_libdir}/gcc/*/*/include/*.h
900 %exclude %{_libdir}/gcc/*/*/include/g2c.h
901
902 %files -n libgcc
903 %defattr(644,root,root,755)
904 %attr(755,root,root) %{_slibdir}*/lib*.so.*
905
906 %files c++
907 %defattr(644,root,root,755)
908 %attr(755,root,root) %{_bindir}/g++
909 %attr(755,root,root) %{_bindir}/*-g++
910 %attr(755,root,root) %{_bindir}/c++
911 %attr(755,root,root) %{_bindir}/*-c++
912 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1plus
913 %{_libdir}*/libsupc++.la
914 %ifarch ppc
915 %{_libdir}/nof/libsupc++.la
916 %{_libdir}/nof/libsupc++.a
917 %endif
918 %{_libdir}*/libsupc++.a
919 %{_mandir}/man1/g++.1*
920 %lang(ja) %{_mandir}/ja/man1/g++.1*
921
922 %files -n libstdc++ -f libstdc++.lang
923 %defattr(644,root,root,755)
924 %attr(755,root,root) %{_libdir}*/libstdc++.so.*.*.*
925 %ifarch ppc
926 %attr(755,root,root) %{_libdir}/nof/libstdc++.so.*.*.*
927 %endif
928
929 %files -n libstdc++-devel
930 %defattr(644,root,root,755)
931 %doc libstdc++-v3/docs/html
932 %dir %{_includedir}/c++
933 %{_includedir}/c++/%{version}
934 %exclude %{_includedir}/c++/%{version}/*/bits/stdc++.h.gch
935 %attr(755,root,root) %{_libdir}*/libstdc++.so
936 %{_libdir}*/libstdc++.la
937 %ifarch ppc
938 %attr(755,root,root) %{_libdir}/nof/libstdc++.so
939 %{_libdir}/nof/libstdc++.la
940 %endif
941
942 %files -n libstdc++-static
943 %defattr(644,root,root,755)
944 %{_libdir}*/libstdc++.a
945 %ifarch ppc
946 %{_libdir}/nof/libstdc++.a
947 %endif
948
949 %if %{with objc}
950 %files objc
951 %defattr(644,root,root,755)
952 %doc gcc/objc/READ*
953 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1obj
954 %attr(755,root,root) %{_libdir}*/libobjc.so
955 %{_libdir}*/libobjc.la
956 %ifarch ppc
957 %attr(755,root,root) %{_libdir}/nof/libobjc.so
958 %{_libdir}/nof/libobjc.la
959 %endif
960 %{_libdir}/gcc/*/*/include/objc
961
962 %files -n libobjc
963 %defattr(644,root,root,755)
964 %attr(755,root,root) %{_libdir}*/libobjc.so.*.*.*
965 %ifarch ppc
966 %attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.*
967 %endif
968
969 %files -n libobjc-static
970 %defattr(644,root,root,755)
971 %{_libdir}*/libobjc.a
972 %ifarch ppc
973 %{_libdir}/nof/libobjc.a
974 %endif
975 %endif
976
977 %files g77
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_bindir}/g77
980 %attr(755,root,root) %{_bindir}/f77
981 %{_infodir}/g77*
982 %attr(755,root,root) %{_libdir}/gcc/*/*/f771
983 %{_libdir}*/libfrtbegin.a
984 %{_libdir}*/libg2c.la
985 %attr(755,root,root) %{_libdir}*/libg2c.so
986 %ifarch ppc
987 %{_libdir}/nof/libfrtbegin.a
988 %{_libdir}/nof/libg2c.la
989 %attr(755,root,root) %{_libdir}/nof/libg2c.so
990 %endif
991 %{_libdir}/gcc/*/*/include/g2c.h
992 %{_mandir}/man1/g77.1*
993 %{_mandir}/man1/f77.1*
994 %lang(ja) %{_mandir}/ja/man1/g77.1*
995 %lang(ja) %{_mandir}/ja/man1/f77.1*
996
997 %files -n libg2c
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_libdir}*/libg2c.so.*.*.*
1000 %ifarch ppc
1001 %attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.*
1002 %endif
1003
1004 %files -n libg2c-static
1005 %defattr(644,root,root,755)
1006 %{_libdir}*/libg2c.a
1007 %ifarch ppc
1008 %{_libdir}/nof/libg2c.a
1009 %endif
1010
1011 %if %{with java}
1012 %files java
1013 %defattr(644,root,root,755)
1014 %doc java-doc/*
1015 %attr(755,root,root) %{_bindir}/gcj*
1016 %attr(755,root,root) %{_bindir}/gij
1017 %attr(755,root,root) %{_bindir}/jcf-dump
1018 %attr(755,root,root) %{_bindir}/jv-*
1019 %attr(755,root,root) %{_bindir}/grepjar
1020 %attr(755,root,root) %{_bindir}/*-gcj*
1021 %attr(755,root,root) %{_libdir}/gcc/*/*/jc1
1022 %attr(755,root,root) %{_libdir}/gcc/*/*/jvgenmain
1023 %{_infodir}/gcj*
1024 %{_mandir}/man1/jcf-*
1025 %{_mandir}/man1/jv-*
1026 %{_mandir}/man1/gij*
1027 %{_mandir}/man1/gcj*
1028 %{_mandir}/man1/grepjar*
1029
1030 %files java-tools
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_bindir}/rmi*
1033 %attr(755,root,root) %{_bindir}/jar
1034 %{_mandir}/man1/rmi*
1035 %{_mandir}/man1/jar*
1036 %{_infodir}/fastjar*
1037
1038 %files -n libgcj
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_bindir}/addr2name.awk
1041 %attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.*
1042 %attr(755,root,root) %{_libdir}/lib-org*.so.*.*.*
1043 %ifarch ppc
1044 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so.*
1045 %endif
1046
1047 %files -n libgcj-devel
1048 %defattr(644,root,root,755)
1049 %{_includedir}/java
1050 %{_includedir}/javax
1051 %{_includedir}/gcj
1052 %{_includedir}/j*.h
1053 %{_includedir}/gnu/*
1054 %{_libdir}/gcc/*/*/include/gcj
1055 %dir %{_libdir}/security
1056 %{_libdir}/security/*
1057 %dir %{_datadir}/java
1058 %{_datadir}/java/libgcj*.jar
1059 %{_libdir}/lib*cj.spec
1060 %{_libdir}/lib*cj*.la
1061 %attr(755,root,root) %{_libdir}/lib*cj*.so
1062 %attr(755,root,root) %{_libdir}/lib-org-*.so
1063 %{_libdir}/lib-org-*.la
1064 %ifarch ppc
1065 %{_libdir}/nof/lib*cj*.la
1066 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so
1067 %endif
1068 %{_pkgconfigdir}/libgcj.pc
1069
1070 %files -n libgcj-static
1071 %defattr(644,root,root,755)
1072 %{_libdir}/lib*cj*.a
1073 %{_libdir}/lib-org-*.a
1074 %ifarch ppc
1075 %{_libdir}/nof/lib*cj*.a
1076 %endif
1077
1078 %files -n libffi
1079 %defattr(644,root,root,755)
1080 %attr(755,root,root) %{_libdir}/libffi-*.so
1081
1082 %files -n libffi-devel
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_libdir}/libffi.so
1085 %{_libdir}/libffi.la
1086 %{_includedir}/ffi*
1087
1088 %files -n libffi-static
1089 %defattr(644,root,root,755)
1090 %{_libdir}/libffi.a
1091 %endif
1092
1093 %if %{with ada}
1094 %files ada
1095 %defattr(644,root,root,755)
1096 %attr(755,root,root) %{_bindir}/gnat*
1097 %attr(755,root,root) %{_bindir}/gpr*
1098 %attr(755,root,root) %{_libdir}/gcc/*/*/gnat1
1099 %{_libdir}/gcc/*/*/adainclude
1100 %dir %{_libdir}/gcc/*/*/adalib
1101 %{_libdir}/gcc/*/*/adalib/*.ali
1102 %ifnarch ppc
1103 %{_libdir}/gcc/*/*/adalib/libgmem.a
1104 %endif
1105 %{_infodir}/gnat*
1106
1107 %files -n libgnat
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_libdir}/libgnarl*.so
1110 %attr(755,root,root) %{_libdir}/libgnat*.so
1111
1112 %files -n libgnat-static
1113 %defattr(644,root,root,755)
1114 %{_libdir}/gcc/*/*/adalib/libgnarl.a
1115 %{_libdir}/gcc/*/*/adalib/libgnat.a
1116 %endif
1117
1118 %files -n cpp
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) /lib/cpp
1121 %attr(755,root,root) %{_bindir}/cpp
1122 %{_mandir}/man1/cpp.1*
1123 %lang(ja) %{_mandir}/ja/man1/cpp.1*
1124 %{_infodir}/cpp*
This page took 0.168 seconds and 4 git commands to generate.