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