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