2 # spec file for package gcc48
4 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
24 %define quadmath_arch %ix86 x86_64 ia64
25 %define tsan_arch x86_64
26 %define asan_arch x86_64 %ix86 ppc ppc64 %arm
27 %define itm_arch x86_64 %ix86 %arm ppc ppc64
28 %define atomic_arch x86_64 %ix86 %arm ppc ppc64 s390 s390x
30 # We don't want to build java
32 %define build_libjava 0
35 %define build_fortran 0%{?building_libjava:1}%{?building_libffi:1}
36 %define build_objc 0%{?building_libjava:1}%{?building_libffi:1}
37 %define build_objcp 0%{?building_libjava:1}%{?building_libffi:1}
38 %define build_with_mudflap 0
49 # For optional compilers only build C, C++ and Fortran
50 %if 0%{?build_optional_compiler_languages:1}
53 %define build_libjava 0
58 # Shared library SONAME versions
60 %define libgcj_sover %{nil}
61 %define libgcj_bc_sover %{nil}
62 %define libffi_sover %{nil}
63 %define libmudflap_sover %{nil}
64 %define libgomp_sover %{nil}
65 %define libstdcxx_sover %{nil}
66 %define libobjc_sover %{nil}
67 %define libgfortran_sover %{nil}
68 %define libquadmath_sover %{nil}
69 %define libasan_sover %{nil}
70 %define libtsan_sover %{nil}
71 %define libatomic_sover %{nil}
72 %define libitm_sover %{nil}
74 # Shared library package suffix
75 # This is used for the "non-standard" set of libraries, the standard
76 # being defined by %product_libs_gcc_ver, the GCC version that should
77 # provide un-suffixed shared library packages following the shared-library
78 # policy. Even suffixed variants should provide the shared-library policy
79 # mandated names and ensure they conflict with each other.
80 # Note that on SONAME changes of any library the %product_libs_gcc_ver
81 # define needs to be either split or the newest GCC version still providing
82 # the old SONAME needs to unconditionally produce an un-suffixed library
83 # if %product_libs_gcc_ver is newer than it. Similar the _oldest_ GCC
84 # version first providing a new SONAME needs to unconditionally produce
85 # an un-suffixed library if %product_libs_gcc_ver is lower that it.
86 %if %{!?product_libs_gcc_ver:48}%{?product_libs_gcc_ver} != 48
89 %define libgcc_s_suffix %{?pne:-gcc48}
90 # libgcj SONAME changes with every GCC version
91 %define libgcj_suffix %nil
92 %define libgcj_bc_suffix %{?pne:-gcc48}
93 %define libffi_suffix %{?pne:-gcc48}
94 %define libmudflap_suffix %{?pne:-gcc48}
95 %define libgomp_suffix %{?pne:-gcc48}
96 %define libstdcxx_suffix %{?pne:-gcc48}
97 %define libobjc_suffix %{?pne:-gcc48}
98 %define libgfortran_suffix %{?pne:-gcc48}
99 %define libquadmath_suffix %{?pne:-gcc48}
100 %define libasan_suffix %{?pne:-gcc48}
101 %define libtsan_suffix %{?pne:-gcc48}
102 %define libatomic_suffix %{?pne:-gcc48}
103 %define libitm_suffix %{?pne:-gcc48}
109 BuildRequires: gcc-c++
112 BuildRequires: glibc-devel-32bit
113 BuildRequires: mpc-devel
114 BuildRequires: mpfr-devel
116 BuildRequires: makeinfo
117 BuildRequires: zlib-devel
118 %ifarch %ix86 x86_64 ppc ppc64 s390 s390x ia64 %sparc hppa %arm
119 BuildRequires: cloog-isl-devel
120 BuildRequires: isl-devel
123 %define hostsuffix -4.7
124 BuildRequires: gcc47-ada
126 %if 0%{?building_libjava:1}%{?building_testsuite:1}
127 BuildRequires: fastjar
129 %if 0%{?building_libffi:1}
130 BuildRequires: pkg-config
133 BuildRequires: libunwind-devel
136 BuildRequires: dejagnu
137 BuildRequires: expect
141 %define separate_bi32 0
142 %define separate_bi64 0
144 # Beware, this does _not_ separate libgcj, as for that one multilibing
145 # is inactive for the time being
146 %define separate_bi64 1
148 %ifarch x86_64 s390x ppc64 sparc64
149 %define separate_bi32 1
152 # Define two macros to trigger -32bit or -64bit package variants
153 %define separate_biarch 0
155 %define separate_biarch 1
156 %define separate_biarch_suffix -32bit
159 %define separate_biarch 1
160 %define separate_biarch_suffix -64bit
163 %ifarch x86_64 ia64 s390x alpha ppc64 sparc64
164 # 64-bit is primary build target
165 %define build_primary_64bit 1
167 %define build_primary_64bit 0
170 %define biarch_libjava 0
172 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
174 URL: http://gcc.gnu.org/
177 %define gcc_dir_version 4.8
178 %define binsuffix -4.8
180 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
181 Requires: binutils glibc-devel
182 Requires: cpp48 = %{version}-%{release}
183 Requires: libgcc_s%{libgcc_s} >= %{version}-%{release}
184 Requires: libgomp%{libgomp_sover} >= %{version}-%{release}
185 %if %{build_with_mudflap}
186 Requires: libmudflap%{libmudflap_sover} >= %{version}-%{release}
187 Requires: libmudflapth%{libmudflap_sover} >= %{version}-%{release}
190 Requires: libasan%{libasan_sover} >= %{version}-%{release}
193 Requires: libtsan%{libtsan_sover} >= %{version}-%{release}
196 Requires: libatomic%{libatomic_sover} >= %{version}-%{release}
199 Requires: libitm%{libitm_sover} >= %{version}-%{release}
201 Suggests: gcc48-info gcc48-locale
204 BuildRoot: %{_tmppath}/%{name}-%{version}-build
205 Source: gcc-%{version}.tar.bz2
207 Source3: gcc48-rpmlintrc
209 Source6: baselibs.conf
210 Source1001: gcc.manifest
213 Group: Development/Toolchain
214 Summary: The GNU C Compiler and Support Files
218 Core package for the GNU Compiler Collection, including the C language
221 Language frontends other than C are split to different sub-packages,
222 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
227 %package -n gcc48-32bit
228 Summary: The GNU C Compiler 32bit support
229 Requires: gcc48 = %{version}-%{release}
230 Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
231 Requires: libgomp%{libgomp_sover}-32bit >= %{version}-%{release}
232 %if %{build_with_mudflap}
233 Requires: libmudflap%{libmudflap_sover}-32bit >= %{version}-%{release}
234 Requires: libmudflapth%{libmudflap_sover}-32bit >= %{version}-%{release}
236 Requires: glibc-devel-32bit
238 %description -n gcc48-32bit
239 This package contains 32bit support for the GNU Compiler Collection.
241 %package -n gcc48-64bit
242 Summary: The GNU C Compiler 64bit support
243 Requires: gcc48 = %{version}-%{release}
244 Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
245 Requires: libgomp%{libgomp_sover}-64bit >= %{version}-%{release}
246 %if %{build_with_mudflap}
247 Requires: libmudflap%{libmudflap_sover}-64bit >= %{version}-%{release}
248 Requires: libmudflapth%{libmudflap_sover}-64bit >= %{version}-%{release}
250 Requires: glibc-devel-64bit
252 %description -n gcc48-64bit
253 This package contains 64bit support for the GNU Compiler Collection.
257 Summary: Locale Data for the GNU Compiler Collection
259 Requires: gcc48 = %{version}-%{release}
262 Locale data for the GNU Compiler Collection (GCC) to give error message
263 in the current locale.
267 Summary: The GNU C++ Compiler
269 Requires: gcc48 = %{version}-%{release}
270 Requires: libstdc++48-devel = %{version}-%{release}
273 This package contains the GNU compiler for C++.
275 %package -n libstdc++48-devel
276 Summary: Include Files and Libraries mandatory for Development
277 License: GPL-3.0-with-GCC-exception
278 Requires: libstdc++%{libstdcxx_sover} >= %{version}-%{release}
279 Requires: glibc-devel
281 Requires: libunwind-devel
284 %description -n libstdc++48-devel
285 This package contains all the headers and libraries of the standard C++
286 library. It is needed for compiling C++ code.
287 %package -n libstdc++48-devel-32bit
288 Summary: Include Files and Libraries mandatory for Development
289 License: GPL-3.0-with-GCC-exception
290 Requires: libstdc++%{libstdcxx_sover}-32bit >= %{version}-%{release}
291 Requires: glibc-devel-32bit
293 Requires: libunwind-devel
296 %description -n libstdc++48-devel-32bit
297 This package contains all the headers and libraries of the standard C++
298 library. It is needed for compiling C++ code.
299 %package -n libstdc++48-devel-64bit
300 Summary: Include Files and Libraries mandatory for Development
301 License: GPL-3.0-with-GCC-exception
302 Requires: libstdc++%{libstdcxx_sover}-64bit >= %{version}-%{release}
303 Requires: glibc-devel-64bit
305 Requires: libunwind-devel
308 %description -n libstdc++48-devel-64bit
309 This package contains all the headers and libraries of the standard C++
310 library. It is needed for compiling C++ code.
312 %package -n libstdc++48-doc
313 Summary: Documentation for the GNU C++ standard library
317 %description -n libstdc++48-doc
318 Extensive HTML documentation for the GNU C++ standard library.
321 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
322 Summary: C compiler runtime library
323 License: GPL-3.0-with-GCC-exception
324 Group: System/Libraries
325 Provides: libgcc_s%{libgcc_s} = %{version}-%{release}
327 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
328 Libgcc is needed for dynamically linked C programs.
330 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
333 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
335 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
336 Summary: C compiler runtime library
337 License: GPL-3.0-with-GCC-exception
338 Group: System/Libraries
339 Provides: libgcc_s%{libgcc_s}-32bit = %{version}-%{release}
341 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
342 Libgcc is needed for dynamically linked C programs.
344 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
347 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
349 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
350 Summary: C compiler runtime library
351 License: GPL-3.0-with-GCC-exception
352 Group: System/Libraries
353 Provides: libgcc_s%{libgcc_s}-64bit = %{version}-%{release}
355 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
356 Libgcc is needed for dynamically linked C programs.
358 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
361 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
364 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}
365 Summary: The GNU compiler collection OpenMP runtime library
366 License: GPL-3.0-with-GCC-exception
367 Group: System/Libraries
368 Provides: libgomp%{libgomp_sover} = %{version}-%{release}
370 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}
371 This is the OpenMP runtime library needed by OpenMP enabled programs
372 that were built with the -fopenmp compiler option and by programs that
373 were auto-parallelized via the -ftree-parallelize-loops compiler
377 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}
380 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}
382 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
383 Summary: The GNU compiler collection OpenMP runtime library
384 License: GPL-3.0-with-GCC-exception
385 Group: System/Libraries
386 Provides: libgomp%{libgomp_sover}-32bit = %{version}-%{release}
388 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
389 This is the OpenMP runtime library needed by OpenMP enabled programs
390 that were built with the -fopenmp compiler option and by programs that
391 were auto-parallelized via the -ftree-parallelize-loops compiler
395 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
398 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
400 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
401 Summary: The GNU compiler collection OpenMP runtime library
402 License: GPL-3.0-with-GCC-exception
403 Group: System/Libraries
404 Provides: libgomp%{libgomp_sover}-64bit = %{version}-%{release}
406 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
407 This is the OpenMP runtime library needed by OpenMP enabled programs
408 that were built with the -fopenmp compiler option and by programs that
409 were auto-parallelized via the -ftree-parallelize-loops compiler
413 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
416 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
419 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
420 Summary: The standard C++ shared library
421 License: GPL-3.0-with-GCC-exception
422 Group: System/Libraries
423 Suggests: libstdc++%{libstdcxx_sover}-locale
424 Provides: libstdc++%{libstdcxx_sover} = %{version}-%{release}
426 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
427 The standard C++ library, needed for dynamically linked C++ programs.
430 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
433 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
435 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
436 Summary: The standard C++ shared library
437 License: GPL-3.0-with-GCC-exception
438 Group: System/Libraries
439 Suggests: libstdc++%{libstdcxx_sover}-locale
440 Provides: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release}
442 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
443 The standard C++ library, needed for dynamically linked C++ programs.
446 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
449 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
451 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
452 Summary: The standard C++ shared library
453 License: GPL-3.0-with-GCC-exception
454 Group: System/Libraries
455 Suggests: libstdc++%{libstdcxx_sover}-locale
456 Provides: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release}
458 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
459 The standard C++ library, needed for dynamically linked C++ programs.
462 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
465 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
468 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
469 Summary: Locale Data for the standard C++ shared library
470 License: GPL-3.0-with-GCC-exception
471 Group: System/Libraries
472 Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release}
474 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
475 The standard C++ library locale data.
479 Summary: Documentation for the GNU compiler collection
484 GNU info-pages for the GNU compiler collection covering both user-level
485 and internals documentation.
489 Summary: GNU Objective C Compiler
491 Requires: gcc48 = %{version}-%{release}
492 Requires: libobjc%{libobjc_sover} >= %{version}-%{release}
495 This package contains the GNU Objective C compiler. Objective C is an
496 object oriented language, created by Next Inc. and used in their
497 Nextstep OS. The source code is available in the gcc package.
499 Summary: GNU Objective C Compiler
501 Requires: gcc48 = %{version}-%{release}
502 Requires: libobjc%{libobjc_sover}-32bit >= %{version}-%{release}
504 %description objc-32bit
505 This package contains the GNU Objective C compiler. Objective C is an
506 object oriented language, created by Next Inc. and used in their
507 Nextstep OS. The source code is available in the gcc package.
509 Summary: GNU Objective C Compiler
511 Requires: gcc48 = %{version}-%{release}
512 Requires: libobjc%{libobjc_sover}-64bit >= %{version}-%{release}
514 %description objc-64bit
515 This package contains the GNU Objective C compiler. Objective C is an
516 object oriented language, created by Next Inc. and used in their
517 Nextstep OS. The source code is available in the gcc package.
519 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}
520 Summary: Library for the GNU Objective C Compiler
521 License: GPL-3.0-with-GCC-exception
522 Provides: libobjc%{libobjc_sover} = %{version}-%{release}
524 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}
525 The library for the GNU Objective C compiler.
527 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}
530 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}
532 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
533 Summary: Library for the GNU Objective C Compiler
534 License: GPL-3.0-with-GCC-exception
535 Provides: libobjc%{libobjc_sover}-32bit = %{version}-%{release}
537 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
538 The library for the GNU Objective C compiler.
540 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
543 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
545 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
546 Summary: Library for the GNU Objective C Compiler
547 License: GPL-3.0-with-GCC-exception
548 Provides: libobjc%{libobjc_sover}-64bit = %{version}-%{release}
550 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
551 The library for the GNU Objective C compiler.
553 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
556 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
560 Summary: GNU Objective C++ Compiler
562 Requires: gcc48-objc = %{version}-%{release}
563 Requires: gcc48-c++ = %{version}-%{release}
566 This package contains the GNU Objective C++ compiler. Objective C++ is an
567 object oriented language, created by Next Inc. and used in their
568 Nextstep OS. The source code is available in the gcc package.
572 Summary: The GCC Preprocessor
575 %description -n cpp48
576 This Package contains just the preprocessor that is used by the X11
581 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
583 Requires: gcc48 = %{version}-%{release}
584 Requires: libada48 = %{version}-%{release}
587 This package contains an Ada95 compiler and associated development
588 tools based on the GNU GCC technology. Ada95 is the object oriented
589 successor of the Ada83 language. To build this package from source you
590 must have installed a binary version to bootstrap the compiler.
592 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
594 Requires: gcc48-32bit = %{version}-%{release}
595 Requires: libada48-32bit = %{version}-%{release}
597 %description ada-32bit
598 This package contains an Ada95 compiler and associated development
599 tools based on the GNU GCC technology. Ada95 is the object oriented
600 successor of the Ada83 language. To build this package from source you
601 must have installed a binary version to bootstrap the compiler.
603 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
605 Requires: gcc48-64bit = %{version}-%{release}
606 Requires: libada48-64bit = %{version}-%{release}
608 %description ada-64bit
609 This package contains an Ada95 compiler and associated development
610 tools based on the GNU GCC technology. Ada95 is the object oriented
611 successor of the Ada83 language. To build this package from source you
612 must have installed a binary version to bootstrap the compiler.
615 Summary: GNU Ada Runtime Libraries
616 License: GPL-3.0-with-GCC-exception
617 %description -n libada48
618 This package contains the shared libraries required to run programs
619 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
620 shared libraries. It also contains the shared libraries for the
621 Implementation of the Ada Semantic Interface Specification (ASIS), the
622 implementation of Distributed Systems Programming (GLADE) and the Posix
623 1003.5 Binding (Florist).
630 %package -n libada48-32bit
631 Summary: GNU Ada Runtime Libraries
632 License: GPL-3.0-with-GCC-exception
633 %description -n libada48-32bit
634 This package contains the shared libraries required to run programs
635 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
636 shared libraries. It also contains the shared libraries for the
637 Implementation of the Ada Semantic Interface Specification (ASIS), the
638 implementation of Distributed Systems Programming (GLADE) and the Posix
639 1003.5 Binding (Florist).
641 %post -n libada48-32bit
644 %postun -n libada48-32bit
646 %package -n libada48-64bit
647 Summary: GNU Ada Runtime Libraries
648 License: GPL-3.0-with-GCC-exception
649 %description -n libada48-64bit
650 This package contains the shared libraries required to run programs
651 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
652 shared libraries. It also contains the shared libraries for the
653 Implementation of the Ada Semantic Interface Specification (ASIS), the
654 implementation of Distributed Systems Programming (GLADE) and the Posix
655 1003.5 Binding (Florist).
657 %post -n libada48-64bit
660 %postun -n libada48-64bit
664 Summary: The GNU Fortran Compiler and Support Files
666 Requires: gcc48 = %{version}-%{release}
667 Requires: libgfortran%{libgfortran_sover} >= %{version}-%{release}
668 %ifarch %quadmath_arch
669 Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
673 This is the Fortran compiler of the GNU Compiler Collection (GCC).
674 %package fortran-32bit
675 Summary: The GNU Fortran Compiler and Support Files
677 Requires: gcc48 = %{version}-%{release}
678 Requires: libgfortran%{libgfortran_sover}-32bit >= %{version}-%{release}
679 %ifarch %quadmath_arch
680 Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
683 %description fortran-32bit
684 This is the Fortran compiler of the GNU Compiler Collection (GCC).
685 %package fortran-64bit
686 Summary: The GNU Fortran Compiler and Support Files
688 Requires: gcc48 = %{version}-%{release}
689 Requires: libgfortran%{libgfortran_sover}-64bit >= %{version}-%{release}
690 %ifarch %quadmath_arch
691 Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
694 %description fortran-64bit
695 This is the Fortran compiler of the GNU Compiler Collection (GCC).
697 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
698 Summary: The GNU Fortran Compiler Runtime Library
699 License: GPL-3.0-with-GCC-exception
700 %ifarch %quadmath_arch
701 Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
703 Provides: libgfortran%{libgfortran_sover} = %{version}-%{release}
705 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
706 The runtime library needed to run programs compiled with the Fortran compiler
707 of the GNU Compiler Collection (GCC).
709 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
712 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
714 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
715 Summary: The GNU Fortran Compiler Runtime Library
716 License: GPL-3.0-with-GCC-exception
717 %ifarch %quadmath_arch
718 Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
720 Provides: libgfortran%{libgfortran_sover}-32bit = %{version}-%{release}
722 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
723 The runtime library needed to run programs compiled with the Fortran compiler
724 of the GNU Compiler Collection (GCC).
726 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
729 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
731 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
732 Summary: The GNU Fortran Compiler Runtime Library
733 License: GPL-3.0-with-GCC-exception
734 %ifarch %quadmath_arch
735 Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
737 Provides: libgfortran%{libgfortran_sover}-64bit = %{version}-%{release}
739 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
740 The runtime library needed to run programs compiled with the Fortran compiler
741 of the GNU Compiler Collection (GCC).
743 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
746 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
749 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
750 Summary: The GNU Fortran Compiler Quadmath Runtime Library
752 Provides: libquadmath%{libquadmath_sover} = %{version}-%{release}
754 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
755 The runtime library needed to run programs compiled with the Fortran compiler
756 of the GNU Compiler Collection (GCC) and quadruple precision floating point
759 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
762 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
764 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
765 Summary: The GNU Fortran Compiler Quadmath Runtime Library
767 Provides: libquadmath%{libquadmath_sover}-32bit = %{version}-%{release}
769 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
770 The runtime library needed to run programs compiled with the Fortran compiler
771 of the GNU Compiler Collection (GCC) and quadruple precision floating point
774 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
777 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
779 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
780 Summary: The GNU Fortran Compiler Quadmath Runtime Library
782 Provides: libquadmath%{libquadmath_sover}-64bit = %{version}-%{release}
784 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
785 The runtime library needed to run programs compiled with the Fortran compiler
786 of the GNU Compiler Collection (GCC) and quadruple precision floating point
789 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
792 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
795 %package -n libmudflap48
796 Summary: The Mudflap Extension Runtime Library
797 License: GPL-3.0-with-GCC-exception
799 %description -n libmudflap48
800 This is the Mudflap Extension Runtime Library.
802 %post -n libmudflap48
805 %postun -n libmudflap48
807 %package -n libmudflap48-32bit
808 Summary: The Mudflap Extension Runtime Library
809 License: GPL-3.0-with-GCC-exception
811 %description -n libmudflap48-32bit
812 This is the Mudflap Extension Runtime Library.
814 %post -n libmudflap48-32bit
817 %postun -n libmudflap48-32bit
819 %package -n libmudflap48-64bit
820 Summary: The Mudflap Extension Runtime Library
821 License: GPL-3.0-with-GCC-exception
823 %description -n libmudflap48-64bit
824 This is the Mudflap Extension Runtime Library.
826 %post -n libmudflap48-64bit
829 %postun -n libmudflap48-64bit
832 %package -n libitm%{libitm_sover}%{libitm_suffix}
833 Summary: The GNU Compiler Transactional Memory Runtime Library
836 %description -n libitm%{libitm_sover}%{libitm_suffix}
837 The runtime library needed to run programs compiled with the
838 -fgnu-tm option of the GNU Compiler Collection (GCC).
840 %post -n libitm%{libitm_sover}%{libitm_suffix}
843 %postun -n libitm%{libitm_sover}%{libitm_suffix}
845 %package -n libitm%{libitm_sover}%{libitm_suffix}-32bit
846 Summary: The GNU Compiler Transactional Memory Runtime Library
849 %description -n libitm%{libitm_sover}%{libitm_suffix}-32bit
850 The runtime library needed to run programs compiled with the
851 -fgnu-tm option of the GNU Compiler Collection (GCC).
853 %post -n libitm%{libitm_sover}%{libitm_suffix}-32bit
856 %postun -n libitm%{libitm_sover}%{libitm_suffix}-32bit
858 %package -n libitm%{libitm_sover}%{libitm_suffix}-64bit
859 Summary: The GNU Compiler Transactional Memory Runtime Library
862 %description -n libitm%{libitm_sover}%{libitm_suffix}-64bit
863 The runtime library needed to run programs compiled with the
864 -fgnu-tm option of the GNU Compiler Collection (GCC).
866 %post -n libitm%{libitm_sover}%{libitm_suffix}-64bit
869 %postun -n libitm%{libitm_sover}%{libitm_suffix}-64bit
872 %package -n libasan%{libasan_sover}%{libasan_suffix}
873 Summary: The GNU Compiler Address Sanitizer Runtime Library
876 %description -n libasan%{libasan_sover}%{libasan_suffix}
877 The runtime library needed to run programs compiled with the
878 -fsanitize=address option of the GNU Compiler Collection (GCC).
880 %post -n libasan%{libasan_sover}%{libasan_suffix}
883 %postun -n libasan%{libasan_sover}%{libasan_suffix}
885 %package -n libasan%{libasan_sover}%{libasan_suffix}-32bit
886 Summary: The GNU Compiler Address Sanitizer Runtime Library
889 %description -n libasan%{libasan_sover}%{libasan_suffix}-32bit
890 The runtime library needed to run programs compiled with the
891 -fsanitize=address option of the GNU Compiler Collection (GCC).
893 %post -n libasan%{libasan_sover}%{libasan_suffix}-32bit
896 %postun -n libasan%{libasan_sover}%{libasan_suffix}-32bit
898 %package -n libasan%{libasan_sover}%{libasan_suffix}-64bit
899 Summary: The GNU Compiler Address Sanitizer Runtime Library
902 %description -n libasan%{libasan_sover}%{libasan_suffix}-64bit
903 The runtime library needed to run programs compiled with the
904 -fsanitize=address option of the GNU Compiler Collection (GCC).
906 %post -n libasan%{libasan_sover}%{libasan_suffix}-64bit
909 %postun -n libasan%{libasan_sover}%{libasan_suffix}-64bit
912 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}
913 Summary: The GNU Compiler Thread Sanitizer Runtime Library
916 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}
917 The runtime library needed to run programs compiled with the
918 -fsanitize=thread option of the GNU Compiler Collection (GCC).
920 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}
923 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}
925 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
926 Summary: The GNU Compiler Thread Sanitizer Runtime Library
929 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
930 The runtime library needed to run programs compiled with the
931 -fsanitize=thread option of the GNU Compiler Collection (GCC).
933 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
936 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
938 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
939 Summary: The GNU Compiler Thread Sanitizer Runtime Library
942 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
943 The runtime library needed to run programs compiled with the
944 -fsanitize=thread option of the GNU Compiler Collection (GCC).
946 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
949 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
952 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}
953 Summary: The GNU Compiler Atomic Operations Runtime Library
954 License: GPL-3.0-with-GCC-exception
956 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}
957 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
959 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}
962 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}
964 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
965 Summary: The GNU Compiler Atomic Operations Runtime Library
966 License: GPL-3.0-with-GCC-exception
968 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
969 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
971 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
974 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
976 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
977 Summary: The GNU Compiler Atomic Operations Runtime Library
978 License: GPL-3.0-with-GCC-exception
980 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
981 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
983 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
986 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
991 Summary: Java Runtime Library for gcc
992 License: GPL-2.0-with-classpath-exception
993 Group: System/Libraries
995 %description -n libgcj48
996 This library is needed if you want to use the GNU Java compiler, gcj.
997 Source code for this package is in gcc.
1006 %package -n gcc48-java
1007 Summary: The GNU Java Compiler
1009 Requires: gcc48 = %{version}
1010 Requires: libgcj48-devel = %{version}-%{release}
1012 %description -n gcc48-java
1013 The Java compiler from the GCC-tools-suite.
1016 %package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1017 Summary: Fake library for BC-ABI compatibility.
1018 License: GPL-2.0-with-classpath-exception
1019 # libgcj_bc is special in that it just contains a symlink to
1020 # a proper libgcj version. So require that library and add
1021 # provides for the shlib version as created at link time
1022 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1023 %ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
1024 Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
1026 Provides: libgcj_bc.so.%{libgcj_bc_sover}
1029 %description -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1030 A fake library that is used at link time only. It ensures that
1031 binaries built with the BC-ABI link against a constant SONAME.
1032 This way, BC-ABI binaries continue to work if the SONAME underlying
1036 %package -n libgcj48-jar
1037 Summary: Java runtime library (jar files).
1038 License: GPL-2.0-with-classpath-exception
1040 %description -n libgcj48-jar
1041 These are the jar files that go along with the gcj front end to gcc.
1044 %package -n libgcj48-devel
1045 Summary: Include Files and Libraries mandatory for Development.
1046 License: GPL-2.0-with-classpath-exception
1047 Requires: libstdc++48-devel = %{version}
1048 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1049 Requires: libgcj_bc%{libgcj_bc_sover} >= %{version}-%{release}
1050 Requires: libgcj48-jar = %{version}-%{release}
1051 Requires: gtk2-devel
1052 Requires: libart_lgpl-devel
1053 Requires: glibc-devel
1054 Requires: zlib-devel
1056 Requires: libunwind-devel
1059 %description -n libgcj48-devel
1060 This package contains all necessary include files and libraries needed
1061 to develop applications that require these.
1064 %package -n gcc48-gij
1065 Summary: Java Bytecode Interpreter for gcc
1066 License: GPL-2.0-with-classpath-exception
1067 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1069 %description -n gcc48-gij
1070 This package contains the java bytecode interpreter gij and related tools.
1072 %package -n libffi%{libffi_sover}%{libffi_suffix}
1073 Summary: Foreign Function Interface library
1074 License: BSD-3-Clause
1076 %description -n libffi%{libffi_sover}%{libffi_suffix}
1077 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1079 %post -n libffi%{libffi_sover}%{libffi_suffix}
1082 %postun -n libffi%{libffi_sover}%{libffi_suffix}
1084 %package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1085 Summary: Foreign Function Interface library
1086 License: BSD-3-Clause
1088 %description -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1089 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1091 %post -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1094 %postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1096 %package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1097 Summary: Foreign Function Interface library
1098 License: BSD-3-Clause
1100 %description -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1101 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1103 %post -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1106 %postun -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1109 %package -n libffi48-devel
1110 Summary: Foreign Function Interface library development files
1111 License: BSD 3-Clause
1112 Requires: libffi%{libffi_sover} >= %{version}-%{release}
1114 %description -n libffi48-devel
1115 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1116 %package -n libffi48-devel-32bit
1117 Summary: Foreign Function Interface library development files
1118 License: BSD 3-Clause
1119 Requires: libffi%{libffi_sover}-32bit >= %{version}-%{release}
1121 %description -n libffi48-devel-32bit
1122 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1123 %package -n libffi48-devel-64bit
1124 Summary: Foreign Function Interface library development files
1125 License: BSD 3-Clause
1126 Requires: libffi%{libffi_sover}-64bit >= %{version}-%{release}
1128 %description -n libffi48-devel-64bit
1129 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1131 %package -n gcc48-testresults
1132 Summary: Testsuite results
1133 License: SUSE-Public-Domain
1135 %description -n gcc48-testresults
1136 Results from running the gcc and target library testsuites.
1140 # Define the canonical target and host architecture
1141 # %gcc_target_arch is supposed to be the full target triple
1142 # %TARGET_ARCH is the canonicalized CPU part
1143 # %CONFIGURE_TARGET is the target triple used for --target=
1144 %if 0%{?gcc_target_arch:1}
1145 %define CONFIGURE_TARGET %{gcc_target_arch}
1146 %define TARGET_ARCH %(echo %{gcc_target_arch} | cut -d - -f 1 | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1147 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc"
1148 %define CONFIGURE_TARGET powerpc64-tizen-linux
1150 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc64"
1151 %define CONFIGURE_TARGET powerpc64-tizen-linux
1153 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1154 %define CONFIGURE_TARGET i586-tizen-linux
1156 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1157 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1159 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1160 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1162 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel"
1163 %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi
1166 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1168 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1170 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1173 %define GCCDIST powerpc64-tizen-linux
1176 %define GCCDIST sparc64-tizen-linux
1179 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1181 %define GCCDIST %{HOST_ARCH}-tizen-linux
1186 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1187 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1190 # Versionspecific directories
1191 %define versmainlibdir %{libsubdir}
1192 %define versmainlibdirbi32 %{libsubdir}/32
1193 %define versmainlibdirbi64 %{libsubdir}/64
1195 %define versmainlibdirbi32 %{libsubdir}
1196 %define versmainlibdirbi64 %{libsubdir}/64
1198 %if %{build_primary_64bit}
1199 %define versmainlibdirbi %{versmainlibdirbi32}
1201 %define versmainlibdirbi %{versmainlibdirbi64}
1204 %define mainlibdir %{_libdir}
1205 %define mainlibdirbi32 %{_prefix}/lib
1206 %define mainlibdirbi64 %{_prefix}/lib64
1207 %if %{build_primary_64bit}
1208 %define mainlibdirbi %{mainlibdirbi32}
1210 %define mainlibdirbi %{mainlibdirbi64}
1214 # Now define a few macros that make it easy to package libs and
1215 # related files just to the right package, without caring for the
1216 # exact path the files are in.
1217 # %mainlib package X from all dirs that belong to the main package
1218 # %biarchlib package X from all dirs that belong to the -32/64bit package
1219 %define mainlib() %{mainlibdir}/%1\
1221 %define biarchlib() %{nil}
1223 %if !%{separate_biarch}
1224 %define mainlib() %{mainlibdir}/%1\
1228 %define biarchlib() %{mainlibdirbi}/%1\
1233 %define versmainlib() %{versmainlibdir}/%1\
1235 %define versbiarchlib() %{nil}
1237 %if !%{separate_biarch}
1238 %define versmainlib() %{versmainlibdir}/%1\
1239 %{versmainlibdirbi}/%1\
1242 %define versbiarchlib() %{versmainlibdirbi}/%1\
1250 %setup -q -n gcc-%{version}
1254 # We are configuring ppc as ppc64 but with switched multilibs. Adjust
1255 # the libstdc++ abi testsuite baseline files accordingly
1257 if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
1258 mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
1259 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt \
1260 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64/
1261 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt \
1262 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/
1267 # Avoid rebuilding of generated files
1268 contrib/gcc_update --touch
1269 # Avoid fucking up testsuite results with Java and indirect dispatch
1270 export LD_AS_NEEDED=0
1271 # Split version file into version used for directories (X.Y) and
1272 # version to report with --version (X.Y.Z).
1273 # See also gcc-dir-version.patch.
1274 # Also decrement the patchlevel version by one
1275 if test `cat gcc/DEV-PHASE` == "prerelease"; then
1276 ( cat gcc/BASE-VER | cut -d '.' -f 1-2 | tr -d '\n'; echo -n .; cat gcc/BASE-VER | cut -d '.' -f 3 | tr '0123456789' '0012345678' ) > gcc/FULL-VER
1278 mv gcc/BASE-VER gcc/FULL-VER
1280 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
1282 rm -rf obj-%{GCCDIST}
1283 mkdir obj-%{GCCDIST}
1285 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
1286 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g' -e 's/-Wmissing-format-attribute//g' -e 's/-fstack-protector//g' -e 's/-ffortify=.//g' -e 's/-Wall//g' -e 's/-m32//g' -e 's/-m64//g'`
1288 # -mcpu is superceded by -mtune but -mtune is not supported by
1289 # our bootstrap compiler. -mcpu gives a warning that stops
1290 # the build process, so remove it for now. Also remove all other
1291 # -march and -mtune flags. They are superseeded by proper
1292 # default compiler settings now.
1293 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-mcpu=i.86//g' -e 's/-march=i.86//g' -e 's/-mtune=i.86//g'`
1296 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fsigned-char//g'`
1297 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-O1/-O2/g'`
1299 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1300 # Kill all -march/tune/cpu because that screws building the target libs
1301 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
1303 # Replace 2 spaces by one finally
1304 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
1308 languages=$languages,c++
1311 languages=$languages,objc
1313 %if %{build_fortran}
1314 languages=$languages,fortran
1317 languages=$languages,obj-c++
1320 languages=$languages,java
1323 languages=$languages,ada
1327 if test -z "$J"; then
1328 J=$(getconf _NPROCESSORS_CONF)
1331 test 1 -gt "$J" && J=1
1332 JL=$(($(getconf _NPROCESSORS_CONF)*2))
1334 if test "$J" == "0"; then
1337 if test "$JL" == "0"; then
1340 PARALLEL="-j$J -l$JL"
1342 # we don't want some miscompiles in the testsuite, or some fault in
1343 # the compiler to kill the machine. Hence we limit the amount of memory
1344 # by the physical RAM plus half of swap
1345 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
1346 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
1347 #ulimit -v $(((MEM + SWAP/2)*1024))
1349 # In general we want to ship release checking enabled compilers
1350 # and run BETA with checking enabled.
1351 #ENABLE_CHECKING="--enable-checking=yes"
1352 ENABLE_CHECKING="--enable-checking=release"
1354 # Work around tail/head -1 changes
1355 export _POSIX2_VERSION=199209
1357 # configure tries to parse include/features.h to detect
1358 # if glibc supports SSP. When cross compiling we would need
1359 # to install a cross glibc, which we don't, or make the whole
1360 # thing point to the native glibc, which is in /, hence the
1361 # --with-build-sysroot=/
1364 # Using the host gnatmake like
1365 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
1366 # GNATMAKE="gnatmake%{hostsuffix}"
1367 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
1369 mkdir -p host-tools/bin
1370 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
1371 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
1372 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
1373 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
1374 ln -sf /usr/%{_lib} host-tools/%{_lib}
1375 export PATH="`pwd`/host-tools/bin:$PATH"
1377 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1379 # --enable-threads=posix \
1382 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
1383 # temporary workaround for a miscompilation of hash functions in java code
1384 GCJ_EXTRA_FLAGS="-marm"
1386 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
1387 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
1389 --prefix=%{_prefix} \
1390 --infodir=%{_infodir} \
1391 --mandir=%{_mandir} \
1392 --libdir=%{_libdir} \
1393 --libexecdir=%{_libdir} \
1394 --disable-bootstrap \
1395 --enable-languages=$languages \
1397 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
1401 --with-bugurl="http://bugs.tizen.org/" \
1402 --with-pkgversion="Tizen" \
1403 %if !%{build_fortran}
1404 --disable-libquadmath \
1406 %if !%{build_libjava}
1409 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1410 --with-ecj-jar=%{libsubdir}/ecj.jar \
1411 --disable-java-awt \
1412 %if !%{biarch_libjava}
1413 --disable-libjava-multilib \
1416 %if !%{build_with_mudflap}
1417 --disable-libmudflap \
1419 --with-slibdir=/%{_lib} \
1420 --with-system-zlib \
1421 --enable-__cxa_atexit \
1422 --enable-libstdcxx-allocator=new \
1423 --disable-libstdcxx-pch \
1424 --enable-version-specific-runtime-libs \
1425 --enable-linker-build-id \
1426 %if 0%{?gcc_target_arch:1}
1427 %if 0%{?gcc_icecream:1}
1429 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/include/c++/%{gcc_dir_version} \
1430 --enable-linux-futex \
1432 %if 0%{?canonical_target:1}
1433 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1436 --with-sysroot=%sysroot \
1438 %if 0%{?build_static:1}
1441 %if "%{TARGET_ARCH}" == "spu"
1442 --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
1446 --target=%{CONFIGURE_TARGET} \
1448 --program-suffix=%{binsuffix} \
1449 --enable-linux-futex \
1451 --with-system-libunwind \
1453 --without-system-libunwind \
1456 %if "%{TARGET_ARCH}" == "armv5tel"
1457 --with-arch=armv5te \
1460 --with-abi=aapcs-linux \
1461 --disable-sjlj-exceptions \
1463 %if "%{TARGET_ARCH}" == "armv7l"
1464 --with-arch=armv7-a \
1465 --with-tune=cortex-a8 \
1466 --with-float=softfp \
1469 --disable-sjlj-exceptions \
1471 %if "%{TARGET_ARCH}" == "armv7hl"
1472 --with-arch=armv7-a \
1473 --with-tune=cortex-a9 \
1475 --with-abi=aapcs-linux \
1476 --with-fpu=vfpv3-d16 \
1477 --disable-sjlj-exceptions \
1479 %if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
1480 %if "%{TARGET_ARCH}" == "powerpc"
1481 --with-cpu=default32 \
1483 --with-cpu-64=power4 \
1484 --enable-secureplt \
1485 --with-long-double-128 \
1487 %if "%{TARGET_ARCH}" == "sparc64"
1488 --with-cpu=ultrasparc \
1489 --with-long-double-128 \
1491 %if "%{TARGET_ARCH}" == "sparc"
1493 --with-long-double-128 \
1495 %if "%{TARGET_ARCH}" == "i586"
1496 --with-arch-32=i586 \
1497 --with-tune=generic \
1499 %if "%{TARGET_ARCH}" == "x86_64"
1500 --with-arch-32=i586 \
1501 --with-tune=generic \
1503 %if "%{TARGET_ARCH}" == "s390"
1504 --with-tune=z196 --with-arch=z10 \
1505 --with-long-double-128 \
1506 --enable-decimal-float \
1508 %if "%{TARGET_ARCH}" == "s390x"
1509 --with-tune=z196 --with-arch=z10 \
1510 --with-long-double-128 \
1511 --enable-decimal-float \
1516 %if 0%{?building_libffi:1}
1517 make stage1-bubble $PARALLEL
1518 make all-target-libffi $PARALLEL
1521 # Only run profiled bootstrap on archs where it works
1522 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1523 #make profiledbootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1525 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1526 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1530 %if 0%{?run_tests:1}
1531 echo "Run testsuite"
1532 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1533 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1534 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1535 # asan needs a whole shadow address space
1536 ulimit -v unlimited || true
1537 make -k check $PARALLEL || true
1538 mkdir ../testresults
1539 ../contrib/test_summary | tee ../testresults/test_summary.txt
1544 export NO_BRP_CHECK_BYTECODE_VERSION=true
1546 # Work around tail/head -1 changes
1547 export _POSIX2_VERSION=199209
1548 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1549 %if 0%{?building_libffi:1}
1550 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1552 %if 0%{?building_libjava:1}
1553 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1554 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1555 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1556 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1557 # install-common also installs collect2, gcov and the g++ and gfortran driver
1559 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1561 %if %{build_fortran}
1562 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1564 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1565 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1567 make install DESTDIR=$RPM_BUILD_ROOT
1569 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1570 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1571 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1572 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1573 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1574 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1579 # Remove libffi installed files if we did not want to build it
1580 %if !0%{?building_libffi:1}
1581 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1583 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1585 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1586 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1587 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1588 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1589 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1590 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3*
1593 # Remove some useless .la files
1594 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1595 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij \
1596 libasan libatomic libitm libtsan; do
1597 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1599 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1603 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1605 %if %{build_primary_64bit}
1606 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1608 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1613 # Merge multilib c++config.h to allow omitting the duplicate and
1614 # identical other arch specific headers
1616 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1617 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1618 if ! diff -up $cxxconfig $i; then
1633 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1638 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1639 #ifndef _CPP_CPPCONFIG_WRAPPER
1640 #define _CPP_CPPCONFIG_WRAPPER 1
1641 #include <bits/wordsize.h>
1642 #if __WORDSIZE == 32
1652 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1653 if ! test -z "$dir_ml"; then
1654 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1658 # move shared libs from versionspecific dir to main libdir
1660 %if 0%{?building_libjava:1}
1661 libgcj libgij libgcj-tools \
1663 %if %{build_fortran}
1665 %ifarch %quadmath_arch
1676 %ifarch %atomic_arch
1688 %if %{build_with_mudflap}
1689 libmudflap libmudflapth \
1693 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1694 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1696 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1697 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1699 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1700 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1701 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1703 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1704 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1708 # FIXME, tsan is not multilib
1711 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/libtsan.so
1715 %if !0%{?building_libjava:1}
1716 # And we want to move the shlib gdb pretty printers to a more sane
1717 # place so ldconfig does not complain
1718 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1719 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1720 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1722 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1723 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1724 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1725 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1730 %if 0%{?building_libjava:1}
1731 # libgcj_bc is special as the .so file is actually a different
1732 # library as the library refered to by the SONAME which should
1733 # be a simple link to our libgcj.
1734 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1737 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.%{libgcj_bc_sover}
1738 %if %{biarch_libjava}
1739 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1742 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.%{libgcj_bc_sover}
1746 # Move libgcc_s around
1747 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1748 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1749 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1751 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1753 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1755 %if %{build_primary_64bit}
1756 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1757 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1758 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1760 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1762 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1763 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1765 # 32-bit biarch systems
1766 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1767 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1768 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1770 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1772 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1773 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1779 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1780 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1781 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1782 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1784 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1785 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1786 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1787 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1791 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1793 # Remove some crap from the .la files:
1794 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1796 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1797 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1798 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1799 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1800 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1802 %if %{build_primary_64bit}
1803 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1804 -e '/^libdir/s|lib64/\.\./||' \
1806 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1813 %if 0%{?run_tests:1}
1814 cp `find . -name "*.sum"` ../testresults/
1815 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1816 chmod 644 ../testresults/*
1819 # Find C++ and Java headers
1820 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
1821 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
1822 -o \( -type d -printf "%%%%dir " , \
1823 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
1825 # Remove files that we do not need to clean up filelist
1826 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
1827 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
1828 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
1829 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
1830 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
1831 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
1832 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
1833 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
1834 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
1835 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
1836 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
1837 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
1838 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
1839 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1840 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
1841 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
1842 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
1843 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1844 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
1846 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
1847 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1848 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
1850 %if !0%{?building_libjava:1}%{?building_libffi:1}
1851 # delete compile flag tracking from crt files
1852 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
1854 %if %{build_primary_64bit}
1855 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
1857 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
1860 for o in $crt_list $crt32_list $crt64_list; do
1861 objcopy -R ".comment.SUSE.OPTs" $o
1865 %if 0%{?building_libjava:1}
1866 # gcj -static doesn't work properly anyway, unless using --whole-archive
1867 # let's save the space instead.
1868 find $RPM_BUILD_ROOT -name libgcj.a \
1869 -o -name libgcj-tools.a \
1872 -o -name libgcj_bc.a \
1875 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
1876 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
1878 # security files have broken install locations, also they cause conflicts
1879 # between libgcj versions. Simply delete them here, libgcj will use its
1880 # defaults in this case (which is what these files contain anyway).
1881 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
1882 rm -r $RPM_BUILD_ROOT%{_libdir}/security
1885 %if 0%{?building_libffi:1}
1886 # Move libffi headers, remove empty libffi libtool file
1887 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
1888 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
1889 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
1890 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
1892 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
1894 # Generate a simple pkg-config file
1895 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
1896 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
1900 %if !%{build_libjava}
1901 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
1902 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
1903 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
1904 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
1905 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
1906 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
1907 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
1909 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
1910 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
1912 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
1913 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
1914 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
1915 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
1917 %if %{build_primary_64bit}
1918 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
1920 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
1923 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
1924 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
1926 %if 0%{?building_libjava:1}
1927 # For building libjava only we need to delete other info docs
1928 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
1929 # Remove stale manpages for binaries we do not build
1930 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
1931 # For building the java frontend we need to copy the ecj jar
1932 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
1933 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
1935 # For regular build, some info files do not get renamed properly.
1937 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
1939 mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
1941 %if %{build_fortran}
1942 %ifarch %quadmath_arch
1943 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
1947 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
1948 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
1949 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
1954 %find_lang cpplib%{binsuffix}
1955 %find_lang gcc%{binsuffix}
1956 cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc48-locale.lang
1960 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1961 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1962 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1963 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1964 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1965 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1966 %if %{build_fortran}
1967 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1968 %ifarch %quadmath_arch
1969 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1973 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1976 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1977 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1978 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1982 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1983 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1984 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1985 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1986 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1987 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1988 %if %{build_fortran}
1989 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1990 %ifarch %quadmath_arch
1991 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1995 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1998 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1999 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2000 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2004 %manifest gcc.manifest
2005 %defattr(-,root,root)
2007 %dir %{_libdir}/gcc/%{GCCDIST}
2009 %dir %{libsubdir}/include
2010 %dir %{libsubdir}/include-fixed
2012 %if %{build_primary_64bit}
2013 %dir %{libsubdir}/32
2015 %dir %{libsubdir}/64
2018 %{_prefix}/bin/gcc%{binsuffix}
2019 %{_prefix}/bin/gcov%{binsuffix}
2020 %{_prefix}/bin/gcc-ar%{binsuffix}
2021 %{_prefix}/bin/gcc-nm%{binsuffix}
2022 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2023 %{libsubdir}/collect2
2025 %{libsubdir}/lto-wrapper
2026 %{libsubdir}/liblto_plugin.so*
2027 %{libsubdir}/include-fixed/README
2028 %{libsubdir}/include-fixed/limits.h
2029 %{libsubdir}/include-fixed/syslimits.h
2030 %{libsubdir}/include/omp.h
2031 %{libsubdir}/include/float.h
2032 %{libsubdir}/include/iso646.h
2033 %{libsubdir}/include/stdarg.h
2034 %{libsubdir}/include/stdbool.h
2035 %{libsubdir}/include/stdfix.h
2036 %{libsubdir}/include/stddef.h
2037 %{libsubdir}/include/unwind.h
2038 %{libsubdir}/include/varargs.h
2039 %{libsubdir}/include/stdint.h
2040 %{libsubdir}/include/stdint-gcc.h
2041 %{libsubdir}/include/stdnoreturn.h
2042 %{libsubdir}/include/stdalign.h
2044 %{libsubdir}/include/visintrin.h
2047 %{libsubdir}/include/altivec.h
2048 %{libsubdir}/include/ppc-asm.h
2049 %{libsubdir}/include/paired.h
2050 %{libsubdir}/include/ppu_intrinsics.h
2051 %{libsubdir}/include/si2vmx.h
2052 %{libsubdir}/include/spe.h
2053 %{libsubdir}/include/spu2vmx.h
2054 %{libsubdir}/include/vec_types.h
2057 %{libsubdir}/include/ia64intrin.h
2060 %{libsubdir}/include/arm_neon.h
2063 %{libsubdir}/include/mmintrin.h
2064 %{libsubdir}/include/arm_neon.h
2065 %{libsubdir}/include/unwind-arm-common.h
2067 %ifarch %ix86 x86_64
2068 %{libsubdir}/include/cross-stdarg.h
2069 %{libsubdir}/include/cpuid.h
2070 %{libsubdir}/include/mm3dnow.h
2071 %{libsubdir}/include/mmintrin.h
2072 %{libsubdir}/include/ammintrin.h
2073 %{libsubdir}/include/bmmintrin.h
2074 %{libsubdir}/include/emmintrin.h
2075 %{libsubdir}/include/immintrin.h
2076 %{libsubdir}/include/avxintrin.h
2077 %{libsubdir}/include/pmmintrin.h
2078 %{libsubdir}/include/xmmintrin.h
2079 %{libsubdir}/include/tmmintrin.h
2080 %{libsubdir}/include/nmmintrin.h
2081 %{libsubdir}/include/smmintrin.h
2082 %{libsubdir}/include/wmmintrin.h
2083 %{libsubdir}/include/x86intrin.h
2084 %{libsubdir}/include/ia32intrin.h
2085 %{libsubdir}/include/mm_malloc.h
2086 %{libsubdir}/include/fma4intrin.h
2087 %{libsubdir}/include/xopintrin.h
2088 %{libsubdir}/include/lwpintrin.h
2089 %{libsubdir}/include/popcntintrin.h
2090 %{libsubdir}/include/bmiintrin.h
2091 %{libsubdir}/include/tbmintrin.h
2092 %{libsubdir}/include/avx2intrin.h
2093 %{libsubdir}/include/bmi2intrin.h
2094 %{libsubdir}/include/fmaintrin.h
2095 %{libsubdir}/include/lzcntintrin.h
2096 %{libsubdir}/include/f16cintrin.h
2097 %{libsubdir}/include/adxintrin.h
2098 %{libsubdir}/include/fxsrintrin.h
2099 %{libsubdir}/include/prfchwintrin.h
2100 %{libsubdir}/include/rdseedintrin.h
2101 %{libsubdir}/include/rtmintrin.h
2102 %{libsubdir}/include/xsaveintrin.h
2103 %{libsubdir}/include/xsaveoptintrin.h
2104 %{libsubdir}/include/xtestintrin.h
2106 %if %{build_with_mudflap}
2107 %{libsubdir}/include/mf-runtime.h
2109 %versmainlib *crt*.o
2110 %versmainlib libgcc*.a
2111 %versmainlib libgcov.a
2112 %versmainlib libgcc_s*.so
2113 %if %{build_with_mudflap}
2114 %versmainlib libmudflap.a
2115 %versmainlib libmudflap.so
2116 %versmainlib libmudflapth.a
2117 %versmainlib libmudflapth.so
2119 %versmainlib libgomp.so
2120 %versmainlib libgomp.a
2121 %versmainlib libgomp.spec
2123 %versmainlib libitm.so
2124 %versmainlib libitm.a
2125 %versmainlib libitm.spec
2127 %ifarch %atomic_arch
2128 %versmainlib libatomic.so
2129 %versmainlib libatomic.a
2132 %versmainlib libasan.so
2133 %versmainlib libasan.a
2134 %versmainlib libasan_preinit.o
2137 %versmainlib libtsan.so
2138 %versmainlib libtsan.a
2140 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2141 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2143 %if %{separate_biarch}
2144 %files -n gcc48%{separate_biarch_suffix}
2145 %manifest gcc.manifest
2146 %defattr(-,root,root)
2147 %versbiarchlib *crt*.o
2148 %versbiarchlib libgcc*.a
2149 %versbiarchlib libgcov.a
2150 %versbiarchlib libgcc_s*.so
2151 %if %{build_with_mudflap}
2152 %versbiarchlib libmudflap.a
2153 %versbiarchlib libmudflap.so
2154 %versbiarchlib libmudflapth.a
2155 %versbiarchlib libmudflapth.so
2157 %versbiarchlib libgomp.so
2158 %versbiarchlib libgomp.a
2159 %versbiarchlib libgomp.spec
2161 %versbiarchlib libitm.so
2162 %versbiarchlib libitm.a
2163 %versbiarchlib libitm.spec
2165 %ifarch %atomic_arch
2166 %versbiarchlib libatomic.a
2167 %versbiarchlib libatomic.so
2170 %versbiarchlib libasan.a
2171 %versbiarchlib libasan.so
2172 %versbiarchlib libasan_preinit.o
2176 %versbiarchlib libtsan.a
2177 %versbiarchlib libtsan.so
2182 %files locale -f gcc48-locale.lang
2183 %manifest gcc.manifest
2185 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
2186 %manifest gcc.manifest
2190 %manifest gcc.manifest
2191 %defattr(-,root,root)
2193 %dir %{_libdir}/gcc/%{GCCDIST}
2195 %{_prefix}/bin/g++%{binsuffix}
2196 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2197 %{libsubdir}/cc1plus
2199 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
2200 %manifest gcc.manifest
2201 %defattr(-,root,root)
2202 %mainlib libstdc++.so.%{libstdcxx_sover}*
2204 %if %{separate_biarch}
2205 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}%{separate_biarch_suffix}
2206 %manifest gcc.manifest
2207 %defattr(-,root,root)
2208 %biarchlib libstdc++.so.%{libstdcxx_sover}*
2211 %files -n libstdc++48-devel -f c++-headers
2212 %manifest gcc.manifest
2213 %defattr(-,root,root)
2214 %versmainlib libstdc++.a
2215 %versmainlib libstdc++.so
2216 %versmainlib libsupc++.a
2217 %dir %{_datadir}/gdb
2218 %dir %{_datadir}/gdb/auto-load
2219 %dir %{_datadir}/gdb/auto-load%{_prefix}
2220 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2221 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2222 %{_datadir}/gcc%{binsuffix}
2224 %if %{separate_biarch}
2225 %files -n libstdc++48-devel%{separate_biarch_suffix}
2226 %manifest gcc.manifest
2227 %defattr(-,root,root)
2228 %versbiarchlib libstdc++.a
2229 %versbiarchlib libstdc++.so
2230 %versbiarchlib libsupc++.a
2231 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2232 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2235 %files -n libstdc++48-doc
2236 %manifest gcc.manifest
2237 %defattr(-,root,root)
2238 %doc libstdc++-v3/doc/html
2241 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
2242 %manifest gcc.manifest
2243 %defattr(-,root,root)
2244 /%{_lib}/libgcc_s.so.%{libgcc_s}
2246 %if %{build_primary_64bit}
2247 %if !%{separate_bi32}
2248 /lib/libgcc_s.so.%{libgcc_s}
2251 %if !%{separate_bi64}
2252 /lib64/libgcc_s.so.%{libgcc_s}
2257 %if %{separate_bi64}
2258 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
2259 %manifest gcc.manifest
2260 %defattr(-,root,root)
2261 /lib64/libgcc_s.so.%{libgcc_s}
2264 %if %{separate_bi32}
2265 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
2266 %manifest gcc.manifest
2267 %defattr(-,root,root)
2268 /lib/libgcc_s.so.%{libgcc_s}
2272 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}
2273 %manifest gcc.manifest
2274 %defattr(-,root,root)
2275 %mainlib libgomp.so.%{libgomp_sover}*
2277 %if %{separate_biarch}
2278 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}%{separate_biarch_suffix}
2279 %manifest gcc.manifest
2280 %defattr(-,root,root)
2281 %biarchlib libgomp.so.%{libgomp_sover}*
2286 %files -n libasan%{libasan_sover}%{libasan_suffix}
2287 %manifest gcc.manifest
2288 %defattr(-,root,root)
2289 %mainlib libasan.so.%{libasan_sover}*
2291 %if %{separate_biarch}
2292 %files -n libasan%{libasan_sover}%{libasan_suffix}%{separate_biarch_suffix}
2293 %manifest gcc.manifest
2294 %defattr(-,root,root)
2295 %biarchlib libasan.so.%{libasan_sover}*
2301 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}
2302 %manifest gcc.manifest
2303 %defattr(-,root,root)
2304 %mainlib libtsan.so.%{libtsan_sover}*
2307 %if %{separate_biarch}
2308 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}%{separate_biarch_suffix}
2309 %manifest gcc.manifest
2310 %defattr(-,root,root)
2311 %biarchlib libtsan.so.%{libtsan_sover}*
2317 %ifarch %atomic_arch
2318 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}
2319 %manifest gcc.manifest
2320 %defattr(-,root,root)
2321 %mainlib libatomic.so.%{libatomic_sover}*
2323 %if %{separate_biarch}
2324 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}%{separate_biarch_suffix}
2325 %manifest gcc.manifest
2326 %defattr(-,root,root)
2327 %biarchlib libatomic.so.%{libatomic_sover}*
2333 %files -n libitm%{libitm_sover}%{libitm_suffix}
2334 %manifest gcc.manifest
2335 %defattr(-,root,root)
2336 %mainlib libitm.so.%{libitm_sover}*
2338 %if %{separate_biarch}
2339 %files -n libitm%{libitm_sover}%{libitm_suffix}%{separate_biarch_suffix}
2340 %manifest gcc.manifest
2341 %defattr(-,root,root)
2342 %biarchlib libitm.so.%{libitm_sover}*
2348 %if %{build_fortran}
2350 %manifest gcc.manifest
2351 %defattr(-,root,root)
2352 %dir %{libsubdir}/finclude
2353 %{_prefix}/bin/gfortran%{binsuffix}
2355 %{libsubdir}/finclude/*
2356 %versmainlib libgfortran.a
2357 %versmainlib libgfortran.so
2358 %versmainlib libgfortran.spec
2359 %versmainlib libgfortranbegin.a
2360 %versmainlib libcaf_single.a
2361 %ifarch %quadmath_arch
2362 %{libsubdir}/include/quadmath.h
2363 %{libsubdir}/include/quadmath_weak.h
2364 %versmainlib libquadmath.a
2365 %versmainlib libquadmath.so
2367 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2369 %if %{separate_biarch}
2370 %files fortran%{separate_biarch_suffix}
2371 %manifest gcc.manifest
2372 %defattr(-,root,root)
2373 %versbiarchlib libgfortran.a
2374 %versbiarchlib libgfortran.so
2375 %versbiarchlib libgfortran.spec
2376 %versbiarchlib libgfortranbegin.a
2377 %versbiarchlib libcaf_single.a
2378 %ifarch %quadmath_arch
2379 %versbiarchlib libquadmath.a
2380 %versbiarchlib libquadmath.so
2384 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
2385 %manifest gcc.manifest
2386 %defattr(-,root,root)
2387 %mainlib libgfortran.so.%{libgfortran_sover}*
2389 %if %{separate_biarch}
2390 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}%{separate_biarch_suffix}
2391 %manifest gcc.manifest
2392 %defattr(-,root,root)
2393 %biarchlib libgfortran.so.%{libgfortran_sover}*
2396 %ifarch %quadmath_arch
2397 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
2398 %manifest gcc.manifest
2399 %defattr(-,root,root)
2400 %mainlib libquadmath.so.%{libquadmath_sover}*
2402 %if %{separate_biarch}
2403 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}%{separate_biarch_suffix}
2404 %manifest gcc.manifest
2405 %defattr(-,root,root)
2406 %biarchlib libquadmath.so.%{libquadmath_sover}*
2411 %if %{build_with_mudflap}
2412 %files -n libmudflap48
2413 %manifest gcc.manifest
2414 %defattr(-,root,root)
2415 %mainlib libmudflap.so.%{libmudflap_sover}*
2416 %mainlib libmudflapth.so.%{libmudflap_sover}*
2418 %if %{separate_biarch}
2419 %files -n libmudflap48%{separate_biarch_suffix}
2420 %manifest gcc.manifest
2421 %defattr(-,root,root)
2422 %biarchlib libmudflap.so.%{libmudflap_sover}*
2423 %biarchlib libmudflapth.so.%{libmudflap_sover}*
2428 %manifest gcc.manifest
2429 %defattr(-,root,root)
2430 %doc %{_infodir}/*.gz
2433 %manifest gcc.manifest
2434 %defattr(-,root,root)
2436 %dir %{_libdir}/gcc/%{GCCDIST}
2438 %{_prefix}/bin/cpp%{binsuffix}
2441 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2445 %manifest gcc.manifest
2446 %defattr(-,root,root)
2448 %{libsubdir}/include/objc
2449 %versmainlib libobjc.a
2450 %versmainlib libobjc.so
2452 %if %{separate_biarch}
2453 %files objc%{separate_biarch_suffix}
2454 %manifest gcc.manifest
2455 %defattr(-,root,root)
2456 %versbiarchlib libobjc.a
2457 %versbiarchlib libobjc.so
2460 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}
2461 %manifest gcc.manifest
2462 %defattr(-,root,root)
2463 %mainlib libobjc.so.%{libobjc_sover}*
2465 %if %{separate_biarch}
2466 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}%{separate_biarch_suffix}
2467 %manifest gcc.manifest
2468 %defattr(-,root,root)
2469 %biarchlib libobjc.so.%{libobjc_sover}*
2476 %manifest gcc.manifest
2477 %defattr(-,root,root)
2478 %{libsubdir}/cc1objplus
2484 %manifest gcc.manifest
2485 %defattr(-,root,root)
2487 %dir %{_libdir}/gcc/%{GCCDIST}
2489 %{_prefix}/bin/gnat*
2490 %dir %{versmainlibdir}/adainclude
2491 %dir %{versmainlibdir}/adalib
2492 %{versmainlibdir}/adainclude
2493 %{versmainlibdir}/adalib/*.ali
2494 %{versmainlibdir}/adalib/*.a
2495 %{versmainlibdir}/adalib/libgnarl.so
2496 %{versmainlibdir}/adalib/libgnat.so
2497 %{versmainlibdir}/gnat1
2499 %if %{separate_biarch}
2500 %files ada%{separate_biarch_suffix}
2501 %manifest gcc.manifest
2502 %defattr(-,root,root)
2503 %dir %{versmainlibdirbi}/adainclude
2504 %dir %{versmainlibdirbi}/adalib
2505 %{versmainlibdirbi}/adainclude
2506 %{versmainlibdirbi}/adalib/*.ali
2507 %{versmainlibdirbi}/adalib/*.a
2508 %{versmainlibdirbi}/adalib/libgnarl.so
2509 %{versmainlibdirbi}/adalib/libgnat.so
2513 %manifest gcc.manifest
2514 %defattr(-,root,root)
2515 %mainlib libgnarl-*.so
2516 %mainlib libgnat-*.so
2518 %if %{separate_biarch}
2519 %files -n libada48%{separate_biarch_suffix}
2520 %manifest gcc.manifest
2521 %defattr(-,root,root)
2522 %biarchlib libgnarl-*.so
2523 %biarchlib libgnat-*.so
2529 %if 0%{?building_libjava:1}
2530 %files -n gcc48-java
2531 %manifest gcc.manifest
2532 %defattr(-,root,root)
2533 %{_prefix}/bin/gcj%{binsuffix}
2534 %{_prefix}/bin/gcjh%{binsuffix}
2535 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2536 %{_prefix}/bin/jcf-dump%{binsuffix}
2537 %{_prefix}/bin/jv-convert%{binsuffix}
2538 %{_prefix}/bin/gc-analyze%{binsuffix}
2539 %{_prefix}/bin/aot-compile%{binsuffix}
2540 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2542 %{libsubdir}/jvgenmain
2543 %{libsubdir}/ecj.jar
2545 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2546 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2547 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2548 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2549 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2550 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2551 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2552 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2557 %if %{build_libjava}
2559 %manifest gcc.manifest
2560 %defattr(-,root,root)
2561 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
2563 %dir %{_libdir}/gcc/%{GCCDIST}
2565 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/classmap.db
2566 # We usually do not multilib libjava
2567 %if %{biarch_libjava}
2568 %versbiarchlib libgcj.la
2569 %biarchlib libgcj.so.*
2570 %biarchlib libgij.so.*
2571 %biarchlib libgcj-tools.so.*
2573 %versmainlib libgcj.la
2574 %mainlib libgcj.so.*
2575 %mainlib libgij.so.*
2576 %mainlib libgcj-tools.so.*
2578 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.la
2579 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.so
2580 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.la
2581 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.so
2583 %files -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
2584 %manifest gcc.manifest
2585 %defattr(-,root,root)
2586 %if %{biarch_libjava}
2587 %biarchlib libgcj_bc.so.%{libgcj_bc_sover}*
2589 %mainlib libgcj_bc.so.%{libgcj_bc_sover}*
2592 %files -n libgcj48-jar
2593 %manifest gcc.manifest
2594 %defattr(-,root,root)
2595 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2596 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2598 %files -n libgcj48-devel
2599 %manifest gcc.manifest
2600 %defattr(-,root,root)
2601 %dir %{_prefix}/include/c++
2603 %dir %{libsubdir}/include
2605 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2606 %{libsubdir}/include/jawt.h
2607 %{libsubdir}/include/jawt_md.h
2608 %{libsubdir}/include/jni.h
2609 %{libsubdir}/include/jni_md.h
2610 %{libsubdir}/include/jvmpi.h
2617 %{libsubdir}/include/gcj
2618 %if %{biarch_libjava}
2619 %versbiarchlib libgcj.so
2620 %versbiarchlib libgcj.spec
2621 %versbiarchlib libgcj-tools.so
2622 %versbiarchlib libgij.so
2623 %versbiarchlib libgcj_bc.so
2625 %versmainlib libgcj.so
2626 %versmainlib libgcj.spec
2627 %versmainlib libgcj-tools.so
2628 %versmainlib libgij.so
2629 %versmainlib libgcj_bc.so
2633 %manifest gcc.manifest
2634 %defattr(-,root,root)
2635 %{_prefix}/bin/gij%{binsuffix}
2636 %{_prefix}/bin/gappletviewer%{binsuffix}
2637 %{_prefix}/bin/gjar%{binsuffix}
2638 %{_prefix}/bin/gjarsigner%{binsuffix}
2639 %{_prefix}/bin/gjavah%{binsuffix}
2640 %{_prefix}/bin/gkeytool%{binsuffix}
2641 %{_prefix}/bin/gnative2ascii%{binsuffix}
2642 %{_prefix}/bin/gorbd%{binsuffix}
2643 %{_prefix}/bin/grmic%{binsuffix}
2644 %{_prefix}/bin/grmid%{binsuffix}
2645 %{_prefix}/bin/grmiregistry%{binsuffix}
2646 %{_prefix}/bin/gserialver%{binsuffix}
2647 %{_prefix}/bin/gtnameserv%{binsuffix}
2648 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2649 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2650 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2651 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2652 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2653 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2654 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2655 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2656 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2657 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2658 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2659 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2660 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2665 %if 0%{?building_libffi:1}
2666 %files -n libffi%{libffi_sover}%{libffi_suffix}
2667 %manifest gcc.manifest
2668 %defattr(-,root,root)
2669 %mainlib libffi.so.%{libffi_sover}*
2671 %if %{separate_biarch}
2672 %files -n libffi%{libffi_sover}%{libffi_suffix}%{separate_biarch_suffix}
2673 %manifest gcc.manifest
2674 %defattr(-,root,root)
2675 %biarchlib libffi.so.%{libffi_sover}*
2678 %post -n libffi48-devel
2679 %install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2680 %postun -n libffi48-devel
2681 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2683 %files -n libffi48-devel
2684 %manifest gcc.manifest
2685 %defattr(-,root,root)
2686 %{_prefix}/include/ffi.h
2687 %{_prefix}/include/ffitarget.h
2690 %{_libdir}/pkgconfig/libffi.pc
2691 %doc %{_infodir}/libffi%{binsuffix}.info.gz
2692 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2693 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2694 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2695 %doc %{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3.gz
2697 %if %{separate_biarch}
2698 %files -n libffi48-devel%{separate_biarch_suffix}
2699 %manifest gcc.manifest
2700 %defattr(-,root,root)
2701 %biarchlib libffi.so
2707 %if 0%{?run_tests:1}
2708 %files -n gcc48-testresults
2709 %manifest gcc.manifest
2710 %defattr(-,root,root)
2711 %doc testresults/test_summary.txt
2712 %doc testresults/*.sum
2713 %doc testresults/*.log