]> git.pld-linux.org Git - packages/gcc.git/blob - gcc.spec
- more autodetecting c++ headers.
[packages/gcc.git] / gcc.spec
1 #
2 # Conditional build:
3 %bcond_without  ada             # build without ADA support
4 %bcond_without  cxx             # build without C++ support
5 %bcond_without  fortran         # build without Fortran support
6 %bcond_without  java            # build without Java support
7 %bcond_without  objc            # build without Objective-C support
8 %bcond_without  objcxx          # build without Objective-C++ support
9 %bcond_with     multilib        # build with multilib support (it needs glibc[32&64]-devel)
10 %bcond_with     profiling       # build with profiling
11 %bcond_without  bootstrap       # omit 3-stage bootstrap
12 %bcond_with     tests           # torture gcc
13
14 %if %{with multilib}
15 # the latest chrpath(64) can't handle 32-bit binaries :/
16 %define         _noautochrpath  .*/lib/.*\\.so.*
17 %endif
18
19 %if %{without cxx}
20 %undefine       with_java
21 %undefine       with_objcxx
22 %endif
23
24 %if %{without objc}
25 %undefine       with_objcxx
26 %endif
27
28 %if %{without bootstrap}
29 %undefine       with_profiling
30 %endif
31
32 %ifnarch %{x8664} ppc64 s390x sparc64
33 %undefine       with_multilib
34 %endif
35
36 Summary:        GNU Compiler Collection: the C compiler and shared files
37 Summary(es):    Colección de compiladores GNU: el compilador C y ficheros compartidos
38 Summary(pl):    Kolekcja kompilatorów GNU: kompilator C i pliki wspó³dzielone
39 Summary(pt_BR): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
40 Name:           gcc
41 Version:        4.1.0
42 %define         _snap   20051206r108118
43 Release:        0.%{_snap}.2
44 Epoch:          5
45 License:        GPL v2+
46 Group:          Development/Languages
47 #Source0:       ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/%{name}-%{version}.tar.bz2
48 #Source0:       ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-%{_snap}/gcc-4.1-%{_snap}.tar.bz2
49 Source0:        gcc-4.1-%{_snap}.tar.bz2
50 # Source0-md5:  7ea00be8faff603a89a3aeed4d817464
51 Source1:        %{name}-optimize-la.pl
52 Patch0:         %{name}-info.patch
53 Patch1:         %{name}-nolocalefiles.patch
54 Patch2:         %{name}-nodebug.patch
55 Patch3:         %{name}-ada-link-new-libgnat.patch
56 Patch4:         %{name}-ada-link.patch
57 Patch5:         %{name}-alpha-ada_fix.patch
58 # -fvisibility fixes...
59 Patch6:         %{name}-pr19664_gnu_internal.patch
60 Patch7:         %{name}-pr19664_libstdc++.patch
61 Patch8:         %{name}-pr20218.patch
62
63 # PRs
64 Patch10:        %{name}-pr7776.patch
65 Patch11:        %{name}-pr20297.patch
66 Patch12:        %{name}-pr22533.patch
67 Patch13:        %{name}-pr25180.patch
68 #Patch14:       %{name}-x87-mmx-switch.patch    NEEDS UPDATE
69 #Patch15:       %{name}-x87-mmx-eh.patch        NEEDS UPDATE
70 Patch16:        %{name}-pr23948.patch
71 Patch17:        %{name}-pr19505.patch
72 Patch18:        %{name}-pr24419.patch
73 Patch19:        %{name}-pr24669.patch
74 Patch20:        %{name}-pr17390.patch
75 Patch21:        %{name}-pr25248.patch
76 Patch22:        %{name}-pr13676.patch
77 URL:            http://gcc.gnu.org/
78 %{?with_java:BuildRequires:     alsa-lib-devel}
79 BuildRequires:  autoconf
80 %{?with_tests:BuildRequires:    autogen}
81 BuildRequires:  automake
82 BuildRequires:  binutils >= 2:2.15.94.0.1
83 BuildRequires:  bison
84 %{?with_java:BuildRequires:     cairo-devel >= 0.5.0}
85 %{?with_java:BuildRequires:     dssi}
86 %{?with_tests:BuildRequires:    dejagnu}
87 BuildRequires:  fileutils >= 4.0.41
88 BuildRequires:  flex
89 %if %{with ada}
90 BuildRequires:  gcc(ada)
91 BuildRequires:  gcc-ada
92 %endif
93 BuildRequires:  gettext-devel
94 %if %{with multilib}
95 BuildRequires:  glibc-devel >= 6:2.3.4-1.5
96 %ifarch %{x8664}
97 BuildRequires:  glibc-devel(i686)
98 %endif
99 %ifarch ppc64
100 BuildRequires:  glibc-devel(ppc)
101 %endif
102 %ifarch s390x
103 BuildRequires:  glibc-devel(s390)
104 %endif
105 %ifarch sparc64
106 BuildRequires:  glibc-devel(sparc)
107 %endif
108 %else
109 BuildRequires:  glibc-devel >= 2.2.5-20
110 %endif
111 %if %{with fortran}
112 BuildRequires:  gmp-devel
113 BuildRequires:  libmpfr-devel
114 %endif
115 %{?with_java:BuildRequires:     libxslt-devel}
116 %{?with_java:BuildRequires:     pango-devel}
117 BuildRequires:  perl-devel
118 %{?with_java:BuildRequires:     pkgconfig}
119 BuildRequires:  rpmbuild(macros) >= 1.211
120 BuildRequires:  texinfo >= 4.1
121 BuildRequires:  zlib-devel
122 # AS_NEEDED directive for dynamic linker
123 # http://sources.redhat.com/ml/glibc-cvs/2005-q1/msg00614.html
124 # http://sources.redhat.com/ml/binutils/2005-01/msg00288.html
125 Requires:       binutils >= 2:2.16.90.0.1-0.3
126 Requires:       libgcc = %{epoch}:%{version}-%{release}
127 Provides:       cpp = %{epoch}:%{version}-%{release}
128 %{?with_ada:Provides:   gcc(ada)}
129 %{?with_multilib:Provides:      gcc(multilib)}
130 Obsoletes:      cpp
131 Obsoletes:      egcs-cpp
132 Obsoletes:      gcc-chill
133 Obsoletes:      gcc-cpp
134 Obsoletes:      gcc-ksi
135 Obsoletes:      gont
136 Conflicts:      glibc-devel < 2.2.5-20
137 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
138
139 %define         _slibdir        /%{_lib}
140 %if %{with multilib}
141 # 32-bit environment on x86-64,ppc64,s390x,sparc64
142 %define         _slibdir32      /lib
143 %define         _libdir32       /usr/lib
144 %endif
145
146 %description
147 A compiler aimed at integrating all the optimizations and features
148 necessary for a high-performance and stable development environment.
149
150 This package contains the C compiler and some files shared by various
151 parts of the GNU Compiler Collection. In order to use another GCC
152 compiler you will need to install the appropriate subpackage.
153
154 %description -l es
155 Un compilador que intenta integrar todas las optimalizaciones y
156 características necesarias para un entorno de desarrollo eficaz y
157 estable.
158
159 Este paquete contiene el compilador de C y unos ficheros compartidos
160 por varias partes de la colección de compiladores GNU (GCC). Para usar
161 otro compilador de GCC será necesario que instale el subpaquete
162 adecuado.
163
164 %description -l pl
165 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
166 wyprodukowania szybkiego i stabilnego kodu wynikowego.
167
168 Ten pakiet zawiera kompilator C i pliki wspó³dzielone przez ró¿ne
169 czê¶ci kolekcji kompilatorów GNU (GCC). ¯eby u¿ywaæ innego kompilatora
170 z GCC, trzeba zainstalowaæ odpowiedni podpakiet.
171
172 %description -l pt_BR
173 Este pacote adiciona infraestrutura básica e suporte a linguagem C ao
174 GNU Compiler Collection.
175
176 %package -n libgcc
177 Summary:        Shared gcc library
178 Summary(es):    Biblioteca compartida de gcc
179 Summary(pl):    Biblioteka gcc
180 Summary(pt_BR): Biblioteca runtime para o GCC
181 License:        GPL with unlimited link permission
182 Group:          Libraries
183 Obsoletes:      libgcc1
184
185 %description -n libgcc
186 Shared gcc library.
187
188 %description -n libgcc -l es
189 Biblioteca compartida de gcc.
190
191 %description -n libgcc -l pl
192 Biblioteka dynamiczna gcc.
193
194 %description -n libgcc -l pt_BR
195 Biblioteca runtime para o GCC.
196
197 %package -n libmudflap
198 Summary:        GCC mudflap shared support library
199 Summary(pl):    Wspó³dzielona biblioteka wspomagaj±ca GCC mudflap
200 License:        GPL v2+ with unlimited link permission
201 Group:          Libraries
202
203 %description -n libmudflap
204 The libmudflap libraries are used by GCC for instrumenting pointer and
205 array dereferencing operations.
206
207 %description -n libmudflap -l pl
208 Biblioteki libmudflap s± u¿ywane przez GCC do obs³ugi operacji
209 dereferencji wspa¼ników i tablic.
210
211 %package -n libmudflap-devel
212 Summary:        Development files for GCC mudflap library
213 Summary(pl):    Pliki programistyczne biblioteki GCC mudflap
214 License:        GPL v2+ with unlimited link permission
215 Group:          Development/Libraries
216 Requires:       libmudflap = %{epoch}:%{version}-%{release}
217
218 %description -n libmudflap-devel
219 The libmudflap libraries are used by GCC for instrumenting pointer and
220 array dereferencing operations. This package contains development
221 files.
222
223 %description -n libmudflap-devel -l pl
224 Biblioteki libmudflap s± u¿ywane przez GCC do obs³ugi operacji
225 dereferencji wspa¼ników i tablic. Ten pakiet zawiera pliki
226 programistyczne.
227
228 %package -n libmudflap-static
229 Summary:        Static GCC mudflap library
230 Summary(pl):    Statyczna biblioteka GCC mudflap
231 License:        GPL v2+ with unlimited link permission
232 Group:          Development/Libraries
233 Requires:       libmudflap-devel = %{epoch}:%{version}-%{release}
234
235 %description -n libmudflap-static
236 The libmudflap libraries are used by GCC for instrumenting pointer and
237 array dereferencing operations. This package contains static
238 libraries.
239
240 %description -n libmudflap-static -l pl
241 Biblioteki libmudflap s± u¿ywane przez GCC do obs³ugi operacji
242 dereferencji wspa¼ników i tablic. Ten pakiet zawiera biblioteki
243 statyczne.
244
245 %package ada
246 Summary:        Ada support for gcc
247 Summary(es):    Soporte de Ada para gcc
248 Summary(pl):    Obs³uga Ady do gcc
249 Group:          Development/Languages
250 Requires:       %{name} = %{epoch}:%{version}-%{release}
251 Requires:       libgnat = %{epoch}:%{version}-%{release}
252 Obsoletes:      gcc-gnat
253 Obsoletes:      gnat-devel
254
255 %description ada
256 This package adds experimental support for compiling Ada programs.
257
258 %description ada -l es
259 Este paquete añade soporte experimental para compilar programas en
260 Ada.
261
262 %description ada -l pl
263 Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
264 Adzie.
265
266 %package -n libgnat
267 Summary:        Ada standard libraries
268 Summary(es):    Bibliotecas estándares de Ada
269 Summary(pl):    Biblioteki standardowe dla Ady
270 License:        GPL v2+ with linking exception
271 Group:          Libraries
272 Obsoletes:      gnat
273 Obsoletes:      libgnat1
274
275 %description -n libgnat
276 This package contains shared libraries needed to run programs written
277 in Ada.
278
279 %description -n libgnat -l es
280 Este paquete contiene las bibliotecas compartidas necesarias para
281 ejecutar programas escritos en Ada.
282
283 %description -n libgnat -l pl
284 Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów
285 napisanych w Adzie.
286
287 %package -n libgnat-static
288 Summary:        Static Ada standard libraries
289 Summary(pl):    Statyczne biblioteki standardowe dla Ady
290 License:        GPL v2+ with linking exception
291 Group:          Development/Libraries
292 Obsoletes:      gnat-static
293
294 %description -n libgnat-static
295 This package contains static libraries for programs written in Ada.
296
297 %description -n libgnat-static -l pl
298 Ten pakiet zawiera biblioteki statyczne dla programów napisanych w
299 Adzie.
300
301 %package c++
302 Summary:        C++ support for gcc
303 Summary(es):    Soporte de C++ para gcc
304 Summary(pl):    Obs³uga C++ dla gcc
305 Summary(pt_BR): Suporte C++ para o gcc
306 Group:          Development/Languages
307 Requires:       %{name} = %{epoch}:%{version}-%{release}
308 Obsoletes:      egcc-c++
309 Obsoletes:      egcs-c++
310
311 %description c++
312 This package adds C++ support to the GNU Compiler Collection. It
313 includes support for most of the current C++ specification, including
314 templates and exception handling. It does not include a standard C++
315 library, which is available separately.
316
317 %description c++ -l de
318 Dieses Paket enthält die C++-Unterstützung für den
319 GNU-Compiler-Collection. Es unterstützt die aktuelle
320 C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine
321 C++-Standard-Library ist nicht enthalten - sie ist getrennt
322 erhältlich.
323
324 %description c++ -l es
325 Este paquete añade soporte de C++ al GCC (colección de compiladores
326 GNU). Ello incluye el soporte para la mayoría de la especificación
327 actual de C++, incluyendo plantillas y manejo de excepciones. No
328 incluye la biblioteca estándar de C++, la que es disponible separada.
329
330 %description c++ -l fr
331 Ce package ajoute un support C++ a la collection de compilateurs GNU.
332 Il comprend un support pour la plupart des spécifications actuelles de
333 C++, dont les modéles et la gestion des exceptions. Il ne comprend pas
334 une bibliothéque C++ standard, qui est disponible séparément.
335
336 %description c++ -l pl
337 Ten pakiet dodaje obs³ugê C++ do kompilatora gcc. Ma wsparcie dla
338 du¿ej ilo¶ci obecnych specyfikacji C++, nie zawiera natomiast
339 standardowych bibliotek C++, które s± w oddzielnym pakiecie.
340
341 %description c++ -l pt_BR
342 Este pacote adiciona suporte C++ para o gcc.
343
344 %description c++ -l tr
345 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
346 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
347 C++ kitaplýðý bu pakette yer almaz.
348
349 %package -n libstdc++
350 Summary:        GNU C++ library
351 Summary(es):    Biblioteca C++ de GNU
352 Summary(pl):    Biblioteki GNU C++
353 Summary(pt_BR): Biblioteca C++ GNU
354 License:        GPL v2+ with free software exception
355 Group:          Libraries
356 Obsoletes:      libg++
357 Obsoletes:      libstdc++3
358
359 %description -n libstdc++
360 This is the GNU implementation of the standard C++ libraries, along
361 with additional GNU tools. This package includes the shared libraries
362 necessary to run C++ applications.
363
364 %description -n libstdc++ -l de
365 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
366 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
367 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
368
369 %description -n libstdc++ -l es
370 Este es el soporte de las bibliotecas padrón del C++, junto con
371 herramientas GNU adicionales. El paquete incluye las bibliotecas
372 compartidas necesarias para ejecutar aplicaciones C++.
373
374 %description -n libstdc++ -l fr
375 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
376 des outils GNU supplémentaires. Ce package comprend les librairies
377 partagées nécessaires à l'exécution d'application C++.
378
379 %description -n libstdc++ -l pl
380 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
381 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
382 uruchomienia aplikacji napisanych w C++.
383
384 %description -n libstdc++ -l pt_BR
385 Este pacote é uma implementação da biblioteca padrão C++ v3, um
386 subconjunto do padrão ISO 14882.
387
388 %description -n libstdc++ -l tr
389 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
390 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
391
392 %package -n libstdc++-devel
393 Summary:        Header files and documentation for C++ development
394 Summary(de):    Header-Dateien zur Entwicklung mit C++
395 Summary(es):    Ficheros de cabecera y documentación para desarrollo C++
396 Summary(fr):    Fichiers d'en-tête et biblitothèques pour développer en C++
397 Summary(pl):    Pliki nag³ówkowe i dokumentacja do biblioteki standardowej C++
398 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento em C++
399 Summary(tr):    C++ ile program geliþtirmek için gerekli dosyalar
400 License:        GPL v2+ with free software exception
401 Group:          Development/Libraries
402 Requires:       %{name}-c++ = %{epoch}:%{version}-%{release}
403 Requires:       libstdc++ = %{epoch}:%{version}-%{release}
404 Requires:       glibc-devel
405 Obsoletes:      libg++-devel
406 Obsoletes:      libstdc++3-devel
407
408 %description -n libstdc++-devel
409 This is the GNU implementation of the standard C++ libraries. This
410 package includes the header files needed for C++ development and
411 library documentation.
412
413 %description -n libstdc++-devel -l es
414 Este es el soporte de las bibliotecas padrón del lenguaje C++. Este
415 paquete incluye los archivos de inclusión y bibliotecas necesarios
416 para desarrollo de programas en lenguaje C++.
417
418 %description -n libstdc++-devel -l pl
419 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
420 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
421 programowaniu w jêzyku C++ oraz dokumentacja biblioteki standardowej.
422
423 %description -n libstdc++-devel -l pt_BR
424 Este pacote inclui os arquivos de inclusão e bibliotecas necessárias
425 para desenvolvimento de programas C++.
426
427 %package -n libstdc++-static
428 Summary:        Static C++ standard library
429 Summary(es):    Biblioteca estándar estática de C++
430 Summary(pl):    Statyczna biblioteka standardowa C++
431 License:        GPL v2+ with free software exception
432 Group:          Development/Libraries
433 Requires:       libstdc++-devel = %{epoch}:%{version}-%{release}
434
435 %description -n libstdc++-static
436 Static C++ standard library.
437
438 %description -n libstdc++-static -l es
439 Biblioteca estándar estática de C++.
440
441 %description -n libstdc++-static -l pl
442 Statyczna biblioteka standardowa C++.
443
444 %package fortran
445 Summary:        Fortran 95 support for gcc
446 Summary(es):    Soporte de Fortran 95 para gcc
447 Summary(pl):    Obs³uga Fortranu 95 dla gcc
448 Summary(pt_BR): Suporte Fortran 95 para o GCC
449 Group:          Development/Languages/Fortran
450 Requires:       libgfortran = %{epoch}:%{version}-%{release}
451 Provides:       gcc-g77 = %{epoch}:%{version}-%{release}
452 Obsoletes:      egcs-g77
453 Obsoletes:      gcc-g77
454
455 %description fortran
456 This package adds support for compiling Fortran 95 programs with the
457 GNU compiler.
458
459 %description fortran -l es
460 Este paquete añade soporte para compilar programas escritos en Fortran
461 95 con el compilador GNU.
462
463 %description fortran -l pl
464 Ten pakiet dodaje obs³ugê Fortranu 95 do kompilatora gcc. Jest
465 potrzebny do kompilowania programów pisanych w jêzyku Fortran 95.
466
467 %description fortran -l pt_BR
468 Suporte Fortran 95 para o GCC.
469
470 %package -n libgfortran
471 Summary:        Fortran 95 Libraries
472 Summary(es):    Bibliotecas de Fortran 95
473 Summary(pl):    Biblioteki Fortranu 95
474 License:        LGPL v2+
475 Group:          Libraries
476 Obsoletes:      libg2c
477
478 %description -n libgfortran
479 Fortran 95 Libraries.
480
481 %description -n libgfortran -l es
482 Bibliotecas de Fortran 95.
483
484 %description -n libgfortran -l pl
485 Biblioteki Fortranu 95.
486
487 %package -n libgfortran-static
488 Summary:        Static Fortran 95 Libraries
489 Summary(es):    Bibliotecas estáticas de Fortran 95
490 Summary(pl):    Statyczne Biblioteki Fortranu 95
491 License:        LGPL v2+
492 Group:          Development/Libraries
493 Requires:       libgfortran = %{epoch}:%{version}-%{release}
494 Obsoletes:      libg2c-static
495
496 %description -n libgfortran-static
497 Static Fortran 95 Libraries.
498
499 %description -n libgfortran-static -l es
500 Bibliotecas estáticas de Fortran 95.
501
502 %description -n libgfortran-static -l pl
503 Statyczne biblioteki Fortranu 95.
504
505 %package java
506 Summary:        Java support for gcc
507 Summary(es):    Soporte de Java para gcc
508 Summary(pl):    Obs³uga Javy dla gcc
509 Group:          Development/Languages/Java
510 Requires:       %{name} = %{epoch}:%{version}-%{release}
511 Requires:       libgcj-devel = %{epoch}:%{version}-%{release}
512 Provides:       gcj = %{epoch}:%{version}-%{release}
513 Provides:       gcc-java-tools
514 Obsoletes:      fastjar
515 Obsoletes:      gcc-java-tools
516
517 %description java
518 This package adds experimental support for compiling Java(TM) programs
519 and bytecode into native code. To use this you will also need the
520 libgcj package.
521
522 %description java -l es
523 Este paquete añade soporte experimental para compilar programas
524 Java(tm) y su bytecode en código nativo. Para usarlo también va a
525 necesitar el paquete libgcj.
526
527 %description java -l pl
528 Ten pakiet dodaje mo¿liwo¶æ kompilowania programów w jêzyku Java(TM)
529 oraz bajtkodu do kodu natywnego. Do u¿ywania go wymagany jest
530 dodatkowo pakiet libgcj.
531
532 %package -n libgcj
533 Summary:        Java Class Libraries
534 Summary(es):    Bibliotecas de clases de Java
535 Summary(pl):    Biblioteki Klas Javy
536 License:        GPL with limited linking exception
537 Group:          Libraries
538 Obsoletes:      libgcj3
539
540 %description -n libgcj
541 Java Class Libraries.
542
543 %description -n libgcj -l es
544 Bibliotecas de clases de Java.
545
546 %description -n libgcj -l pl
547 Biblioteki Klas Javy.
548
549 %package -n libgcj-devel
550 Summary:        Development files for Java Class Libraries
551 Summary(es):    Ficheros de desarrollo para las bibliotecas de clases de Java
552 Summary(pl):    Pliki nag³ówkowe dla Bibliotek Klas Javy
553 License:        GPL with limited linking exception
554 Group:          Development/Libraries
555 Requires:       libgcj = %{epoch}:%{version}-%{release}
556 Requires:       zlib-devel
557 Obsoletes:      libgcj3-devel
558
559 %description -n libgcj-devel
560 Development files for Java Class Libraries.
561
562 %description -n libgcj-devel -l es
563 Ficheros de desarrollo para las bibliotecas de clases de Java.
564
565 %description -n libgcj-devel -l pl
566 Pliki nag³ówkowe dla Bibliotek Klas Javy.
567
568 %package -n libgcj-static
569 Summary:        Static Java Class Libraries
570 Summary(es):    Bibliotecas estáticas de clases de Java
571 Summary(pl):    Statyczne Biblioteki Klas Javy
572 License:        GPL with limited linking exception
573 Group:          Development/Libraries
574 Requires:       libgcj-devel = %{epoch}:%{version}-%{release}
575 Requires:       libstdc++-devel = %{epoch}:%{version}-%{release}
576
577 %description -n libgcj-static
578 Static Java Class Libraries.
579
580 %description -n libgcj-static -l es
581 Bibliotecas estáticas de clases de Java.
582
583 %description -n libgcj-static -l pl
584 Statyczne Biblioteki Klas Javy.
585
586 %package -n libffi
587 Summary:        Foreign Function Interface library
588 Summary(es):    Biblioteca de interfaz de funciones ajenas
589 Summary(pl):    Biblioteka zewnêtrznych wywo³añ funkcji
590 License:        BSD-like
591 Group:          Libraries
592
593 %description -n libffi
594 The libffi library provides a portable, high level programming
595 interface to various calling conventions. This allows a programmer to
596 call any function specified by a call interface description at run
597 time.
598
599 %description -n libffi -l es
600 La biblioteca libffi provee una interfaz portable de programación de
601 alto nivel para varias convenciones de llamada. Ello permite que un
602 programador llame una función cualquiera especificada por una
603 descripción de interfaz de llamada en el tiempo de ejecución.
604
605 %description -n libffi -l pl
606 Biblioteka libffi dostarcza przeno¶nego, wysokopoziomowego
607 miêdzymordzia do ró¿nych konwencji wywo³añ funkcji. Pozwala to
608 programi¶cie wywo³ywaæ dowolne funkcje podaj±c konwencjê wywo³ania w
609 czasie wykonania.
610
611 %package -n libffi-devel
612 Summary:        Development files for Foreign Function Interface library
613 Summary(es):    Ficheros de desarrollo para libffi
614 Summary(pl):    Pliki nag³ówkowe dla libffi
615 License:        BSD-like
616 Group:          Development/Libraries
617 Requires:       libffi = %{epoch}:%{version}-%{release}
618
619 %description -n libffi-devel
620 Development files for Foreign Function Interface library.
621
622 %description -n libffi-devel -l es
623 Ficheros de desarrollo para libffi.
624
625 %description -n libffi-devel -l pl
626 Pliki nag³ówkowe dla libffi.
627
628 %package -n libffi-static
629 Summary:        Static Foreign Function Interface library
630 Summary(es):    Biblioteca libffi estática
631 Summary(pl):    Statyczna biblioteka libffi
632 License:        BSD-like
633 Group:          Development/Libraries
634 Requires:       libffi-devel = %{epoch}:%{version}-%{release}
635
636 %description -n libffi-static
637 Static Foreign Function Interface library.
638
639 %description -n libffi-static -l es
640 Biblioteca libffi estática.
641
642 %description -n libffi-static -l pl
643 Statyczna biblioteka libffi.
644
645 %package objc
646 Summary:        Objective C support for gcc
647 Summary(de):    Objektive C-Unterstützung für gcc
648 Summary(es):    Soporte de Objective C para gcc
649 Summary(fr):    Gestion d'Objective C pour gcc
650 Summary(pl):    Obs³uga obiektowego C dla kompilatora gcc
651 Summary(tr):    gcc için Objective C desteði
652 Group:          Development/Languages
653 Requires:       %{name} = %{epoch}:%{version}-%{release}
654 Requires:       libobjc = %{epoch}:%{version}-%{release}
655 Obsoletes:      egcc-objc
656 Obsoletes:      egcs-objc
657
658 %description objc
659 This package adds Objective C support to the GNU Compiler Collection.
660 Objective C is a object oriented derivative of the C language, mainly
661 used on systems running NeXTSTEP. This package does not include the
662 standard objective C object library.
663
664 %description objc -l de
665 Dieses Paket ergänzt den GNU-Compiler-Collection durch
666 Objective-C-Support. Objective C ist ein objektorientiertes Derivat
667 von C, das zur Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt.
668 Die Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
669
670 %description objc -l es
671 Este paquete añade soporte de Objective C al GCC (colección de
672 compiladores GNU). Objective C es un lenguaje orientado a objetos
673 derivado de C, principalmente usado en sistemas que funcionan bajo
674 NeXTSTEP. El paquete no incluye la biblioteca de objetos estándar de
675 Objective C.
676
677 %description objc -l fr
678 Ce package ajoute un support Objective C a la collection de
679 compilateurs GNU. L'Objective C est un langage orienté objetdérivé du
680 langage C, principalement utilisé sur les systèmes NeXTSTEP. Ce
681 package n'inclue pas la bibliothéque Objective C standard.
682
683 %description objc -l pl
684 Ten pakiet dodaje obs³ugê obiektowego C do kompilatora gcc. Obiektowe
685 C (objc) jest zorientowan± obiektowo pochodn± jêzyka C, u¿ywan±
686 g³ównie w systemach u¿ywaj±cych NeXTSTEP. W pakiecie nie ma
687 standardowej biblioteki objc (która znajduje siê w osobnym pakiecie).
688
689 %description objc -l tr
690 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
691 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
692 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
693 kitaplýðý bu pakette yer almaz.
694
695 %package objc++
696 Summary:        Objective C++ support for gcc
697 Summary(pl):    Obs³uga jêzyka Objective C++ dla gcc
698 Group:          Development/Languages
699 Requires:       %{name}-c++ = %{epoch}:%{version}-%{release}
700 Requires:       %{name}-objc = %{epoch}:%{version}-%{release}
701
702 %description objc++
703 This package adds Objective C++ support to the GNU Compiler
704 Collection.
705
706 %description objc++ -l pl
707 Ten pakiet dodaje obs³ugê jêzyka Objective C++ do zestawu
708 kompilatorów GNU Compiler Collection.
709
710 %package -n libobjc
711 Summary:        Objective C Libraries
712 Summary(es):    Bibliotecas de Objective C
713 Summary(pl):    Biblioteki Obiektowego C
714 License:        GPL v2+ with linking exception
715 Group:          Libraries
716 Obsoletes:      libobjc1
717
718 %description -n libobjc
719 Objective C Libraries.
720
721 %description -n libobjc -l es
722 Bibliotecas de Objective C.
723
724 %description -n libobjc -l pl
725 Biblioteki Obiektowego C.
726
727 %package -n libobjc-static
728 Summary:        Static Objective C Libraries
729 Summary(es):    Bibliotecas estáticas de Objective C
730 Summary(pl):    Statyczne Biblioteki Obiektowego C
731 License:        GPL v2+ with linking exception
732 Group:          Development/Libraries
733 Requires:       libobjc = %{epoch}:%{version}-%{release}
734
735 %description -n libobjc-static
736 Static Objective C Libraries.
737
738 %description -n libobjc-static -l es
739 Bibliotecas estáticas de Objective C.
740
741 %description -n libobjc-static -l pl
742 Statyczne biblioteki Obiektowego C.
743
744 %prep
745 #setup -q -n gcc-%{version}
746 %setup -q -n gcc-4_1-branch
747
748 %patch0 -p1
749 %patch1 -p1
750 %patch2 -p1
751 %patch3 -p1
752 %patch4 -p1
753 %patch5 -p1
754
755 # -fvisbility fixes...
756 %patch6 -p1
757 %patch7 -p1
758 %patch8 -p1
759
760 # PRs
761 %patch10 -p1
762 %patch11 -p1
763 %patch12 -p1
764 %patch13 -p1
765 %ifarch %{ix86} %{x8664}
766 #patch14 -p1
767 #patch15 -p1
768 %endif
769 %patch16 -p1
770 %patch17 -p1
771 %patch18 -p1
772 %patch19 -p1
773 %patch20 -p1
774 %patch21 -p1
775 %patch22 -p1
776
777 # because we distribute modified version of gcc...
778 perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
779 perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
780
781 mv ChangeLog ChangeLog.general
782
783 %build
784 cd gcc
785 %{__autoconf}
786 cd ..
787 cd libjava/classpath
788 %{__autoconf}
789 cd ../..
790 cp -f /usr/share/automake/config.sub .
791
792 rm -rf obj-%{_target_platform}
793 install -d obj-%{_target_platform}
794 cd obj-%{_target_platform}
795
796 CFLAGS="%{rpmcflags}" \
797 CXXFLAGS="%{rpmcxxflags}" \
798 TEXCONFIG=false \
799 ../configure \
800         --prefix=%{_prefix} \
801         --libdir=%{_libdir} \
802         --libexecdir=%{_libdir} \
803         --infodir=%{_infodir} \
804         --mandir=%{_mandir} \
805         --enable-shared \
806         --enable-threads=posix \
807         --enable-__cxa_atexit \
808         --enable-languages="c%{?with_cxx:,c++}%{?with_fortran:,f95}%{?with_objc:,objc}%{?with_objcxx:,obj-c++}%{?with_ada:,ada}%{?with_java:,java}" \
809         --enable-c99 \
810         --enable-long-long \
811         --%{?with_multilib:en}%{!?with_multilib:dis}able-multilib \
812         --enable-nls \
813         --disable-werror \
814         --with-gnu-as \
815         --with-gnu-ld \
816         --with-demangler-in-ld \
817         --with-system-zlib \
818         --with-slibdir=%{_slibdir} \
819         --without-x \
820         %{?with_fortran:--enable-cmath} \
821 %if %{with java}
822         --enable-libgcj \
823         --enable-libgcj-multifile \
824         --enable-libgcj-database \
825         --enable-gtk-peer \
826         --enable-gtk-cairo \
827         --enable-jni \
828         --enable-xmlj \
829         --enable-alsa \
830         --enable-dssi \
831 %endif
832         %{_target_platform}
833
834 cd ..
835
836 %{__make} -C obj-%{_target_platform} \
837         %{?with_bootstrap:%{?with_profiling:profiled}bootstrap} \
838         GCJFLAGS="%{rpmcflags}" \
839         BOOT_CFLAGS="%{rpmcflags}" \
840         STAGE1_CFLAGS="%{rpmcflags} -O0" \
841         GNATLIBCFLAGS="%{rpmcflags}" \
842         LDFLAGS_FOR_TARGET="%{rpmldflags}" \
843         mandir=%{_mandir} \
844         infodir=%{_infodir}
845
846 %{?with_tests:%{__make} -k -C obj-%{_target_platform} check 2>&1 ||:}
847
848 %install
849 rm -rf $RPM_BUILD_ROOT
850 install -d $RPM_BUILD_ROOT{/lib,%{_aclocaldir},%{_datadir},%{_infodir}}
851
852 cd obj-%{_target_platform}
853
854 %{__make} -j1 install \
855         mandir=%{_mandir} \
856         infodir=%{_infodir} \
857         DESTDIR=$RPM_BUILD_ROOT
858
859 install gcc/specs $RPM_BUILD_ROOT%{_libdir}/gcc/%{_target_platform}/%{version}
860
861 %ifarch sparc64
862 ln -sf  %{_bindir}/sparc64-pld-linux-gcc \
863         $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
864 %endif
865
866 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
867 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
868 echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
869
870 libssp=$(cd $RPM_BUILD_ROOT%{_libdir}; echo libssp.so.*.*.*)
871 mv $RPM_BUILD_ROOT{%{_libdir}/$libssp,%{_slibdir}}
872 ln -sf %{_slibdir}/$libssp $RPM_BUILD_ROOT%{_libdir}/libssp.so
873 %if %{with multilib}
874 libssp=$($RPM_BUILD_ROOT%{_libdir32}; echo libssp.so.*.*.*`)
875 mv $RPM_BUILD_ROOT{%{_libdir32}/$libssp,%{_slibdir32}}
876 ln -sf %{_slibdir32}/$libssp $RPM_BUILD_ROOT%{_libdir32}/libssp.so
877 %endif
878
879 %if %{with fortran}
880 ln -sf gfortran $RPM_BUILD_ROOT%{_bindir}/g95
881 echo ".so gfortran.1" > $RPM_BUILD_ROOT%{_mandir}/man1/g95.1
882 %endif
883
884 %if %{with ada}
885 # move ada shared libraries to proper place...
886 mv -f   $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/adalib/*.so.1 \
887         $RPM_BUILD_ROOT%{_libdir}
888 # check if symlink to be made is valid
889 test -f $RPM_BUILD_ROOT%{_libdir}/libgnat-4.1.so.1
890 ln -sf  libgnat-4.1.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat-4.1.so
891 ln -sf  libgnarl-4.1.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl-4.1.so
892 ln -sf  libgnat-4.1.so $RPM_BUILD_ROOT%{_libdir}/libgnat.so
893 ln -sf  libgnarl-4.1.so $RPM_BUILD_ROOT%{_libdir}/libgnarl.so
894 %endif
895
896 cd ..
897
898 %if %{with java}
899 install -d java-doc
900 cp -f   libjava/READ* java-doc
901 cp -f   fastjar/README java-doc/README.fastjar
902 cp -f   libffi/README java-doc/README.libffi
903 cp -f   libffi/LICENSE java-doc/LICENSE.libffi
904 ln -sf  %{_javadir}/libgcj-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/libgcj.jar
905 %endif
906 %if %{with objc}
907 cp -f   libobjc/README gcc/objc/README.libobjc
908 %endif
909
910 # avoid -L poisoning in *.la - there should be only -L%{_libdir}/gcc/*/%{version}
911 # normalize libdir, to avoid propagation of unnecessary RPATHs by libtool
912 for f in libmudflap.la libmudflapth.la libssp.la \
913         %{?with_cxx:libstdc++.la libsupc++.la} \
914         %{?with_fortran:libgfortran.la libgfortranbegin.la} \
915         %{?with_java:libgcj.la libffi.la} \
916         %{?with_objc:libobjc.la};
917 do
918         %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/$f %{_libdir} > $RPM_BUILD_ROOT%{_libdir}/$f.fixed
919         mv $RPM_BUILD_ROOT%{_libdir}/$f{.fixed,}
920 %if %{with multilib}
921         %{SOURCE1} $RPM_BUILD_ROOT%{_libdir32}/$f %{_libdir32} > $RPM_BUILD_ROOT%{_libdir32}/$f.fixed
922         mv $RPM_BUILD_ROOT%{_libdir32}/$f{.fixed,}
923 %endif
924 done
925
926 # include/ contains install-tools/include/* and headers that were fixed up
927 # by fixincludes, we don't want former
928 gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/)
929 mkdir   $gccdir/tmp
930
931 # we have to save these however
932 %{?with_java:mv $gccdir/include/{gcj,libffi/ffitarget.h,jawt.h,jawt_md.h,jni.h,jni_md.h,jvmpi.h} $gccdir/tmp}
933 %{?with_objc:mv $gccdir/include/objc $gccdir/tmp}
934 mv $gccdir/include/syslimits.h $gccdir/tmp
935 rm -rf $gccdir/include
936 mv $gccdir/tmp $gccdir/include
937 cp $gccdir/install-tools/include/*.h $gccdir/include
938 # but we don't want anything more from install-tools
939 rm -rf $gccdir/install-tools
940
941 %if %{with multilib}
942 ln -sf %{_slibdir32}/libgcc_s.so.1      $gccdir/32/libgcc_s.so
943 %endif
944 ln -sf %{_slibdir}/libgcc_s.so.1        $gccdir/libgcc_s.so
945
946 %find_lang gcc
947 %find_lang cpplib
948 cat cpplib.lang >> gcc.lang
949 %{?with_cxx:%find_lang libstdc\+\+}
950
951 # cvs snap doesn't contain (release does) below files,
952 # so let's create dummy entries to satisfy %%files.
953 [ ! -f NEWS ] && touch NEWS
954 [ ! -f libgfortran/AUTHORS ] && touch libgfortran/AUTHORS
955 [ ! -f libgfortran/README ] && touch libgfortran/README
956
957 %clean
958 rm -rf $RPM_BUILD_ROOT
959
960 %post
961 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
962
963 %postun
964 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
965
966 %post ada
967 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
968
969 %postun ada
970 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
971
972 %post fortran
973 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
974
975 %postun fortran
976 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
977
978 %post java
979 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
980
981 %postun java
982 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
983
984 %post   -p /sbin/ldconfig -n libgcc
985 %postun -p /sbin/ldconfig -n libgcc
986 %post   -p /sbin/ldconfig -n libmudflap
987 %postun -p /sbin/ldconfig -n libmudflap
988 %post   -p /sbin/ldconfig -n libgnat
989 %postun -p /sbin/ldconfig -n libgnat
990 %post   -p /sbin/ldconfig -n libstdc++
991 %postun -p /sbin/ldconfig -n libstdc++
992 %post   -p /sbin/ldconfig -n libgfortran
993 %postun -p /sbin/ldconfig -n libgfortran
994 %post   -p /sbin/ldconfig -n libgcj
995 %postun -p /sbin/ldconfig -n libgcj
996 %post   -p /sbin/ldconfig -n libffi
997 %postun -p /sbin/ldconfig -n libffi
998 %post   -p /sbin/ldconfig -n libobjc
999 %postun -p /sbin/ldconfig -n libobjc
1000
1001 %files -f gcc.lang
1002 %defattr(644,root,root,755)
1003 %doc ChangeLog.general MAINTAINERS NEWS
1004 # bugs.html faq.html
1005 %doc gcc/{ChangeLog,ONEWS,README.Portability}
1006 %dir %{_libdir}/gcc
1007 %dir %{_libdir}/gcc/*
1008 %dir %{_libdir}/gcc/*/*
1009 %dir %{_libdir}/gcc/*/*/include
1010
1011 %attr(755,root,root) %{_bindir}/*-gcc*
1012 %attr(755,root,root) %{_bindir}/gcc
1013 %attr(755,root,root) %{_bindir}/gccbug
1014 %attr(755,root,root) %{_bindir}/gcov
1015 %attr(755,root,root) %{_bindir}/cc
1016 %attr(755,root,root) %{_bindir}/cpp
1017
1018 %{_includedir}/ssp
1019
1020 %{_mandir}/man1/cc.1*
1021 %{_mandir}/man1/cpp.1*
1022 %{_mandir}/man1/gcc.1*
1023 %{_mandir}/man1/gcov.1*
1024
1025 %{_infodir}/cpp*
1026 %{_infodir}/gcc*
1027
1028 %attr(755,root,root) /lib/cpp
1029
1030 %attr(755,root,root) %{_slibdir}/lib*.so
1031 %{_libdir}/libssp.la
1032 %attr(755,root,root) %{_libdir}/libssp.a
1033 %attr(755,root,root) %{_libdir}/libssp.so
1034 %{_libdir}/libssp_nonshared.a
1035 %{_libdir}/libssp_nonshared.la
1036 %if %{with multilib}
1037 %dir %{_libdir}/gcc/*/*/32
1038 %{_libdir}/gcc/*/*/32/libgcov.a
1039 %{_libdir}/gcc/*/*/32/libgcc.a
1040 %{_libdir}/gcc/*/*/32/libgcc_eh.a
1041 %{_libdir}/gcc/*/*/32/libgcc_s.so
1042 %{_libdir32}/libssp.la
1043 %attr(755,root,root) %{_libdir32}/libssp.a
1044 %attr(755,root,root) %{_libdir32}/libssp.so
1045 %{_libdir32}/libssp_nonshared.a
1046 %{_libdir32}/libssp_nonshared.la
1047 %endif
1048 %{_libdir}/gcc/*/*/libgcov.a
1049 %{_libdir}/gcc/*/*/libgcc.a
1050 %{_libdir}/gcc/*/*/libgcc_eh.a
1051 %{_libdir}/gcc/*/*/libgcc_s.so
1052 %{_libdir}/gcc/*/*/specs
1053 %if %{with multilib}
1054 %{_libdir}/gcc/*/*/32/crt*.o
1055 %endif
1056 %{_libdir}/gcc/*/*/crt*.o
1057 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1
1058 %attr(755,root,root) %{_libdir}/gcc/*/*/collect2
1059
1060 %{_libdir}/gcc/*/*/include/*.h
1061
1062 %files -n libgcc
1063 %defattr(644,root,root,755)
1064 %if %{with multilib}
1065 %attr(755,root,root) %{_slibdir32}/lib*.so.*
1066 %endif
1067 %attr(755,root,root) %{_slibdir}/lib*.so.*
1068
1069 %files -n libmudflap
1070 %defattr(644,root,root,755)
1071 %if %{with multilib}
1072 %attr(755,root,root) %{_libdir32}/libmudflap*.so.*.*.*
1073 %endif
1074 %attr(755,root,root) %{_libdir}/libmudflap*.so.*.*.*
1075
1076 %files -n libmudflap-devel
1077 %defattr(644,root,root,755)
1078 %{_includedir}/mf-runtime.h
1079 %if %{with multilib}
1080 %{_libdir32}/libmudflap*.la
1081 %attr(755,root,root) %{_libdir32}/libmudflap*.so
1082 %endif
1083 %{_libdir}/libmudflap*.la
1084 %attr(755,root,root) %{_libdir}/libmudflap*.so
1085
1086 %files -n libmudflap-static
1087 %defattr(644,root,root,755)
1088 %if %{with multilib}
1089 %{_libdir32}/libmudflap*.a
1090 %endif
1091 %{_libdir}/libmudflap*.a
1092
1093 %if %{with ada}
1094 %files ada
1095 %defattr(644,root,root,755)
1096 %doc gcc/ada/ChangeLog
1097 %attr(755,root,root) %{_bindir}/gnat*
1098 %attr(755,root,root) %{_bindir}/gpr*
1099 %attr(755,root,root) %{_libdir}/libgnarl*.so
1100 %attr(755,root,root) %{_libdir}/libgnat*.so
1101 %attr(755,root,root) %{_libdir}/gcc/*/*/gnat1
1102 %{_libdir}/gcc/*/*/adainclude
1103 %dir %{_libdir}/gcc/*/*/adalib
1104 %{_libdir}/gcc/*/*/adalib/*.ali
1105 %{_libdir}/gcc/*/*/adalib/g-trasym.o
1106 %{_libdir}/gcc/*/*/adalib/libgccprefix.a
1107 %ifarch %{ix86}
1108 %{_libdir}/gcc/*/*/adalib/libgmem.a
1109 %endif
1110 %{_infodir}/gnat*
1111
1112 %files -n libgnat
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{_libdir}/libgnarl*.so.1
1115 %attr(755,root,root) %{_libdir}/libgnat*.so.1
1116
1117 %files -n libgnat-static
1118 %defattr(644,root,root,755)
1119 %{_libdir}/gcc/*/*/adalib/libgnarl.a
1120 %{_libdir}/gcc/*/*/adalib/libgnat.a
1121 %endif
1122
1123 %if %{with cxx}
1124 %files c++
1125 %defattr(644,root,root,755)
1126 %doc gcc/cp/{ChangeLog,NEWS}
1127 %attr(755,root,root) %{_bindir}/g++
1128 %attr(755,root,root) %{_bindir}/*-g++
1129 %attr(755,root,root) %{_bindir}/c++
1130 %attr(755,root,root) %{_bindir}/*-c++
1131 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1plus
1132 %if %{with multilib}
1133 %{_libdir32}/libsupc++.a
1134 %{_libdir32}/libsupc++.la
1135 %endif
1136 %{_libdir}/libsupc++.a
1137 %{_libdir}/libsupc++.la
1138 %{_mandir}/man1/g++.1*
1139
1140 %files -n libstdc++ -f libstdc++.lang
1141 %defattr(644,root,root,755)
1142 %doc libstdc++-v3/{ChangeLog,README}
1143 %if %{with multilib}
1144 %attr(755,root,root) %{_libdir32}/libstdc++.so.*.*.*
1145 %endif
1146 %attr(755,root,root) %{_libdir}/libstdc++.so.*.*.*
1147
1148 %files -n libstdc++-devel
1149 %defattr(644,root,root,755)
1150 %doc libstdc++-v3/docs/html
1151 %dir %{_includedir}/c++
1152 %{_includedir}/c++/%{version}
1153 %if %{with java}
1154 %exclude %{_includedir}/c++/%{version}/java
1155 %exclude %{_includedir}/c++/%{version}/javax
1156 %exclude %{_includedir}/c++/%{version}/gcj
1157 %exclude %{_includedir}/c++/%{version}/gnu
1158 %endif
1159 %ifnarch sparc
1160 %exclude %{_includedir}/c++/%{version}/*/bits/stdc++.h.gch
1161 %endif
1162 %if %{with multilib}
1163 %{_libdir32}/libstdc++.la
1164 %attr(755,root,root) %{_libdir32}/libstdc++.so
1165 %endif
1166 %{_libdir}/libstdc++.la
1167 %attr(755,root,root) %{_libdir}/libstdc++.so
1168
1169 %files -n libstdc++-static
1170 %defattr(644,root,root,755)
1171 %if %{with multilib}
1172 %{_libdir32}/libstdc++.a
1173 %endif
1174 %{_libdir}/libstdc++.a
1175 %endif
1176
1177 %if %{with fortran}
1178 %files fortran
1179 %defattr(644,root,root,755)
1180 %doc gcc/fortran/ChangeLog
1181 %attr(755,root,root) %{_bindir}/g95
1182 %attr(755,root,root) %{_bindir}/gfortran
1183 %attr(755,root,root) %{_bindir}/*-gfortran
1184 %{_infodir}/gfortran*
1185 %attr(755,root,root) %{_libdir}/gcc/*/*/f951
1186 %if %{with multilib}
1187 %{_libdir32}/libgfortranbegin.a
1188 %{_libdir32}/libgfortranbegin.la
1189 %{_libdir32}/libgfortran.la
1190 %attr(755,root,root) %{_libdir32}/libgfortran.so
1191 %endif
1192 %{_libdir}/libgfortranbegin.a
1193 %{_libdir}/libgfortranbegin.la
1194 %{_libdir}/libgfortran.la
1195 %attr(755,root,root) %{_libdir}/libgfortran.so
1196 %{_mandir}/man1/g95.1*
1197 %{_mandir}/man1/gfortran.1*
1198
1199 %files -n libgfortran
1200 %defattr(644,root,root,755)
1201 %doc libgfortran/{AUTHORS,README,ChangeLog}
1202 %if %{with multilib}
1203 %attr(755,root,root) %{_libdir32}/libgfortran.so.*.*.*
1204 %endif
1205 %attr(755,root,root) %{_libdir}/libgfortran.so.*.*.*
1206
1207 %files -n libgfortran-static
1208 %defattr(644,root,root,755)
1209 %if %{with multilib}
1210 %{_libdir32}/libgfortran.a
1211 %endif
1212 %{_libdir}/libgfortran.a
1213 %endif
1214
1215 %if %{with java}
1216 %files java
1217 %defattr(644,root,root,755)
1218 %doc gcc/java/ChangeLog java-doc/*
1219 %attr(755,root,root) %{_bindir}/fastjar
1220 %attr(755,root,root) %{_bindir}/gcj*
1221 %attr(755,root,root) %{_bindir}/gjnih
1222 %attr(755,root,root) %{_bindir}/grepjar
1223 %attr(755,root,root) %{_bindir}/grmi*
1224 %attr(755,root,root) %{_bindir}/jcf-dump
1225 %attr(755,root,root) %{_bindir}/jv-*
1226 %attr(755,root,root) %{_bindir}/*-gcj*
1227 %attr(755,root,root) %{_libdir}/gcc/*/*/jc1
1228 %attr(755,root,root) %{_libdir}/gcc/*/*/jvgenmain
1229 %{_infodir}/fastjar*
1230 %{_infodir}/gcj*
1231 %{_mandir}/man1/fastjar*
1232 %{_mandir}/man1/gcj*
1233 %{_mandir}/man1/gjnih*
1234 %{_mandir}/man1/grepjar*
1235 %{_mandir}/man1/grmi*
1236 %{_mandir}/man1/jcf-*
1237 %{_mandir}/man1/jv-*
1238
1239 %files -n libgcj
1240 %defattr(644,root,root,755)
1241 %doc libjava/{ChangeLog,LIBGCJ_LICENSE,NEWS,README,THANKS}
1242 %attr(755,root,root) %{_bindir}/addr2name.awk
1243 %attr(755,root,root) %{_bindir}/gij
1244 %dir %{_libdir}/classpath
1245 %attr(755,root,root) %{_libdir}/classpath/libgjsmalsa.so.*.*.*
1246 %attr(755,root,root) %{_libdir}/classpath/libgjsmdssi.so.*.*.*
1247 %dir %{_libdir}/gcj-%{version}
1248 %{_libdir}/gcj-%{version}/classmap.db
1249 %attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.*
1250 %attr(755,root,root) %{_libdir}/libgij.so.*.*.*
1251 %{_libdir}/logging.properties
1252 %{_javadir}/libgcj*.jar
1253 %{_mandir}/man1/gij*
1254
1255 %files -n libgcj-devel
1256 %defattr(644,root,root,755)
1257 %{_includedir}/c++/%{version}/java
1258 %{_includedir}/c++/%{version}/javax
1259 %{_includedir}/c++/%{version}/gcj
1260 %{_includedir}/c++/%{version}/gnu
1261 %{_libdir}/classpath/libgjsmalsa.la
1262 %attr(755,root,root) %{_libdir}/classpath/libgjsmalsa.so
1263 %{_libdir}/classpath/libgjsmdssi.la
1264 %attr(755,root,root) %{_libdir}/classpath/libgjsmdssi.so
1265 %{_libdir}/gcc/*/*/include/gcj
1266 %{_libdir}/gcc/*/*/include/jawt.h
1267 %{_libdir}/gcc/*/*/include/jawt_md.h
1268 %{_libdir}/gcc/*/*/include/jni.h
1269 %{_libdir}/gcc/*/*/include/jvmpi.h
1270 %dir %{_libdir}/security
1271 %{_libdir}/security/*
1272 %{_libdir}/lib*cj.spec
1273 %{_libdir}/lib*cj*.la
1274 %attr(755,root,root) %{_libdir}/lib*cj*.so
1275 %{_libdir}/libgij.la
1276 %attr(755,root,root) %{_libdir}/libgij.so
1277 %{_pkgconfigdir}/libgcj.pc
1278
1279 %files -n libgcj-static
1280 %defattr(644,root,root,755)
1281 %{_libdir}/lib*cj*.a
1282 %{_libdir}/libgij.a
1283
1284 %files -n libffi
1285 %defattr(644,root,root,755)
1286 %doc libffi/{ChangeLog,ChangeLog.libgcj,LICENSE,README}
1287 %attr(755,root,root) %{_libdir}/libffi.so.*.*.*
1288
1289 %files -n libffi-devel
1290 %defattr(644,root,root,755)
1291 %{_libdir}/gcc/*/*/include/ffitarget.h
1292 %attr(755,root,root) %{_libdir}/libffi.so
1293 %{_libdir}/libffi.la
1294 %{_includedir}/ffi.h
1295
1296 %files -n libffi-static
1297 %defattr(644,root,root,755)
1298 %{_libdir}/libffi.a
1299 %endif
1300
1301 %if %{with objc}
1302 %files objc
1303 %defattr(644,root,root,755)
1304 %doc gcc/objc/README
1305 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1obj
1306 %if %{with multilib}
1307 %attr(755,root,root) %{_libdir32}/libobjc.so
1308 %{_libdir32}/libobjc.la
1309 %endif
1310 %attr(755,root,root) %{_libdir}/libobjc.so
1311 %{_libdir}/libobjc.la
1312 %{_libdir}/gcc/*/*/include/objc
1313
1314 %files -n libobjc
1315 %defattr(644,root,root,755)
1316 %doc libobjc/{ChangeLog,README*}
1317 %if %{with multilib}
1318 %attr(755,root,root) %{_libdir32}/libobjc.so.*.*.*
1319 %endif
1320 %attr(755,root,root) %{_libdir}/libobjc.so.*.*.*
1321
1322 %files -n libobjc-static
1323 %defattr(644,root,root,755)
1324 %if %{with multilib}
1325 %{_libdir32}/libobjc.a
1326 %endif
1327 %{_libdir}/libobjc.a
1328 %endif
1329
1330 %if %{with objcxx}
1331 %files objc++
1332 %defattr(644,root,root,755)
1333 %doc gcc/objcp/ChangeLog
1334 %attr(755,root,root) %{_libdir}/gcc/*/*/cc1objplus
1335 %endif
This page took 0.813702 seconds and 4 git commands to generate.