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
212 Group: Development/Toolchain
213 Summary: The GNU C Compiler and Support Files
217 Core package for the GNU Compiler Collection, including the C language
220 Language frontends other than C are split to different sub-packages,
221 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
226 %package -n gcc48-32bit
227 Summary: The GNU C Compiler 32bit support
228 Requires: gcc48 = %{version}-%{release}
229 Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
230 Requires: libgomp%{libgomp_sover}-32bit >= %{version}-%{release}
231 %if %{build_with_mudflap}
232 Requires: libmudflap%{libmudflap_sover}-32bit >= %{version}-%{release}
233 Requires: libmudflapth%{libmudflap_sover}-32bit >= %{version}-%{release}
235 Requires: glibc-devel-32bit
237 %description -n gcc48-32bit
238 This package contains 32bit support for the GNU Compiler Collection.
240 %package -n gcc48-64bit
241 Summary: The GNU C Compiler 64bit support
242 Requires: gcc48 = %{version}-%{release}
243 Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
244 Requires: libgomp%{libgomp_sover}-64bit >= %{version}-%{release}
245 %if %{build_with_mudflap}
246 Requires: libmudflap%{libmudflap_sover}-64bit >= %{version}-%{release}
247 Requires: libmudflapth%{libmudflap_sover}-64bit >= %{version}-%{release}
249 Requires: glibc-devel-64bit
251 %description -n gcc48-64bit
252 This package contains 64bit support for the GNU Compiler Collection.
256 Summary: Locale Data for the GNU Compiler Collection
258 Requires: gcc48 = %{version}-%{release}
261 Locale data for the GNU Compiler Collection (GCC) to give error message
262 in the current locale.
266 Summary: The GNU C++ Compiler
268 Requires: gcc48 = %{version}-%{release}
269 Requires: libstdc++48-devel = %{version}-%{release}
272 This package contains the GNU compiler for C++.
274 %package -n libstdc++48-devel
275 Summary: Include Files and Libraries mandatory for Development
276 License: GPL-3.0-with-GCC-exception
277 Requires: libstdc++%{libstdcxx_sover} >= %{version}-%{release}
278 Requires: glibc-devel
280 Requires: libunwind-devel
283 %description -n libstdc++48-devel
284 This package contains all the headers and libraries of the standard C++
285 library. It is needed for compiling C++ code.
286 %package -n libstdc++48-devel-32bit
287 Summary: Include Files and Libraries mandatory for Development
288 License: GPL-3.0-with-GCC-exception
289 Requires: libstdc++%{libstdcxx_sover}-32bit >= %{version}-%{release}
290 Requires: glibc-devel-32bit
292 Requires: libunwind-devel
295 %description -n libstdc++48-devel-32bit
296 This package contains all the headers and libraries of the standard C++
297 library. It is needed for compiling C++ code.
298 %package -n libstdc++48-devel-64bit
299 Summary: Include Files and Libraries mandatory for Development
300 License: GPL-3.0-with-GCC-exception
301 Requires: libstdc++%{libstdcxx_sover}-64bit >= %{version}-%{release}
302 Requires: glibc-devel-64bit
304 Requires: libunwind-devel
307 %description -n libstdc++48-devel-64bit
308 This package contains all the headers and libraries of the standard C++
309 library. It is needed for compiling C++ code.
311 %package -n libstdc++48-doc
312 Summary: Documentation for the GNU C++ standard library
316 %description -n libstdc++48-doc
317 Extensive HTML documentation for the GNU C++ standard library.
320 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
321 Summary: C compiler runtime library
322 License: GPL-3.0-with-GCC-exception
323 Group: System/Libraries
324 Provides: libgcc_s%{libgcc_s} = %{version}-%{release}
326 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
327 Libgcc is needed for dynamically linked C programs.
329 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
332 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
334 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
335 Summary: C compiler runtime library
336 License: GPL-3.0-with-GCC-exception
337 Group: System/Libraries
338 Provides: libgcc_s%{libgcc_s}-32bit = %{version}-%{release}
340 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
341 Libgcc is needed for dynamically linked C programs.
343 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
346 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
348 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
349 Summary: C compiler runtime library
350 License: GPL-3.0-with-GCC-exception
351 Group: System/Libraries
352 Provides: libgcc_s%{libgcc_s}-64bit = %{version}-%{release}
354 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
355 Libgcc is needed for dynamically linked C programs.
357 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
360 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
363 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}
364 Summary: The GNU compiler collection OpenMP runtime library
365 License: GPL-3.0-with-GCC-exception
366 Group: System/Libraries
367 Provides: libgomp%{libgomp_sover} = %{version}-%{release}
369 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}
370 This is the OpenMP runtime library needed by OpenMP enabled programs
371 that were built with the -fopenmp compiler option and by programs that
372 were auto-parallelized via the -ftree-parallelize-loops compiler
376 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}
379 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}
381 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
382 Summary: The GNU compiler collection OpenMP runtime library
383 License: GPL-3.0-with-GCC-exception
384 Group: System/Libraries
385 Provides: libgomp%{libgomp_sover}-32bit = %{version}-%{release}
387 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
388 This is the OpenMP runtime library needed by OpenMP enabled programs
389 that were built with the -fopenmp compiler option and by programs that
390 were auto-parallelized via the -ftree-parallelize-loops compiler
394 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
397 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
399 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
400 Summary: The GNU compiler collection OpenMP runtime library
401 License: GPL-3.0-with-GCC-exception
402 Group: System/Libraries
403 Provides: libgomp%{libgomp_sover}-64bit = %{version}-%{release}
405 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
406 This is the OpenMP runtime library needed by OpenMP enabled programs
407 that were built with the -fopenmp compiler option and by programs that
408 were auto-parallelized via the -ftree-parallelize-loops compiler
412 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
415 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
418 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
419 Summary: The standard C++ shared library
420 License: GPL-3.0-with-GCC-exception
421 Group: System/Libraries
422 Suggests: libstdc++%{libstdcxx_sover}-locale
423 Provides: libstdc++%{libstdcxx_sover} = %{version}-%{release}
425 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
426 The standard C++ library, needed for dynamically linked C++ programs.
429 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
432 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
434 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
435 Summary: The standard C++ shared library
436 License: GPL-3.0-with-GCC-exception
437 Group: System/Libraries
438 Suggests: libstdc++%{libstdcxx_sover}-locale
439 Provides: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release}
441 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
442 The standard C++ library, needed for dynamically linked C++ programs.
445 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
448 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
450 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
451 Summary: The standard C++ shared library
452 License: GPL-3.0-with-GCC-exception
453 Group: System/Libraries
454 Suggests: libstdc++%{libstdcxx_sover}-locale
455 Provides: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release}
457 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
458 The standard C++ library, needed for dynamically linked C++ programs.
461 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
464 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
467 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
468 Summary: Locale Data for the standard C++ shared library
469 License: GPL-3.0-with-GCC-exception
470 Group: System/Libraries
471 Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release}
473 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
474 The standard C++ library locale data.
478 Summary: Documentation for the GNU compiler collection
483 GNU info-pages for the GNU compiler collection covering both user-level
484 and internals documentation.
488 Summary: GNU Objective C Compiler
490 Requires: gcc48 = %{version}-%{release}
491 Requires: libobjc%{libobjc_sover} >= %{version}-%{release}
494 This package contains the GNU Objective C compiler. Objective C is an
495 object oriented language, created by Next Inc. and used in their
496 Nextstep OS. The source code is available in the gcc package.
498 Summary: GNU Objective C Compiler
500 Requires: gcc48 = %{version}-%{release}
501 Requires: libobjc%{libobjc_sover}-32bit >= %{version}-%{release}
503 %description objc-32bit
504 This package contains the GNU Objective C compiler. Objective C is an
505 object oriented language, created by Next Inc. and used in their
506 Nextstep OS. The source code is available in the gcc package.
508 Summary: GNU Objective C Compiler
510 Requires: gcc48 = %{version}-%{release}
511 Requires: libobjc%{libobjc_sover}-64bit >= %{version}-%{release}
513 %description objc-64bit
514 This package contains the GNU Objective C compiler. Objective C is an
515 object oriented language, created by Next Inc. and used in their
516 Nextstep OS. The source code is available in the gcc package.
518 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}
519 Summary: Library for the GNU Objective C Compiler
520 License: GPL-3.0-with-GCC-exception
521 Provides: libobjc%{libobjc_sover} = %{version}-%{release}
523 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}
524 The library for the GNU Objective C compiler.
526 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}
529 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}
531 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
532 Summary: Library for the GNU Objective C Compiler
533 License: GPL-3.0-with-GCC-exception
534 Provides: libobjc%{libobjc_sover}-32bit = %{version}-%{release}
536 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
537 The library for the GNU Objective C compiler.
539 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
542 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
544 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
545 Summary: Library for the GNU Objective C Compiler
546 License: GPL-3.0-with-GCC-exception
547 Provides: libobjc%{libobjc_sover}-64bit = %{version}-%{release}
549 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
550 The library for the GNU Objective C compiler.
552 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
555 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
559 Summary: GNU Objective C++ Compiler
561 Requires: gcc48-objc = %{version}-%{release}
562 Requires: gcc48-c++ = %{version}-%{release}
565 This package contains the GNU Objective C++ compiler. Objective C++ is an
566 object oriented language, created by Next Inc. and used in their
567 Nextstep OS. The source code is available in the gcc package.
571 Summary: The GCC Preprocessor
574 %description -n cpp48
575 This Package contains just the preprocessor that is used by the X11
580 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
582 Requires: gcc48 = %{version}-%{release}
583 Requires: libada48 = %{version}-%{release}
586 This package contains an Ada95 compiler and associated development
587 tools based on the GNU GCC technology. Ada95 is the object oriented
588 successor of the Ada83 language. To build this package from source you
589 must have installed a binary version to bootstrap the compiler.
591 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
593 Requires: gcc48-32bit = %{version}-%{release}
594 Requires: libada48-32bit = %{version}-%{release}
596 %description ada-32bit
597 This package contains an Ada95 compiler and associated development
598 tools based on the GNU GCC technology. Ada95 is the object oriented
599 successor of the Ada83 language. To build this package from source you
600 must have installed a binary version to bootstrap the compiler.
602 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
604 Requires: gcc48-64bit = %{version}-%{release}
605 Requires: libada48-64bit = %{version}-%{release}
607 %description ada-64bit
608 This package contains an Ada95 compiler and associated development
609 tools based on the GNU GCC technology. Ada95 is the object oriented
610 successor of the Ada83 language. To build this package from source you
611 must have installed a binary version to bootstrap the compiler.
614 Summary: GNU Ada Runtime Libraries
615 License: GPL-3.0-with-GCC-exception
616 %description -n libada48
617 This package contains the shared libraries required to run programs
618 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
619 shared libraries. It also contains the shared libraries for the
620 Implementation of the Ada Semantic Interface Specification (ASIS), the
621 implementation of Distributed Systems Programming (GLADE) and the Posix
622 1003.5 Binding (Florist).
629 %package -n libada48-32bit
630 Summary: GNU Ada Runtime Libraries
631 License: GPL-3.0-with-GCC-exception
632 %description -n libada48-32bit
633 This package contains the shared libraries required to run programs
634 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
635 shared libraries. It also contains the shared libraries for the
636 Implementation of the Ada Semantic Interface Specification (ASIS), the
637 implementation of Distributed Systems Programming (GLADE) and the Posix
638 1003.5 Binding (Florist).
640 %post -n libada48-32bit
643 %postun -n libada48-32bit
645 %package -n libada48-64bit
646 Summary: GNU Ada Runtime Libraries
647 License: GPL-3.0-with-GCC-exception
648 %description -n libada48-64bit
649 This package contains the shared libraries required to run programs
650 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
651 shared libraries. It also contains the shared libraries for the
652 Implementation of the Ada Semantic Interface Specification (ASIS), the
653 implementation of Distributed Systems Programming (GLADE) and the Posix
654 1003.5 Binding (Florist).
656 %post -n libada48-64bit
659 %postun -n libada48-64bit
663 Summary: The GNU Fortran Compiler and Support Files
665 Requires: gcc48 = %{version}-%{release}
666 Requires: libgfortran%{libgfortran_sover} >= %{version}-%{release}
667 %ifarch %quadmath_arch
668 Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
672 This is the Fortran compiler of the GNU Compiler Collection (GCC).
673 %package fortran-32bit
674 Summary: The GNU Fortran Compiler and Support Files
676 Requires: gcc48 = %{version}-%{release}
677 Requires: libgfortran%{libgfortran_sover}-32bit >= %{version}-%{release}
678 %ifarch %quadmath_arch
679 Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
682 %description fortran-32bit
683 This is the Fortran compiler of the GNU Compiler Collection (GCC).
684 %package fortran-64bit
685 Summary: The GNU Fortran Compiler and Support Files
687 Requires: gcc48 = %{version}-%{release}
688 Requires: libgfortran%{libgfortran_sover}-64bit >= %{version}-%{release}
689 %ifarch %quadmath_arch
690 Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
693 %description fortran-64bit
694 This is the Fortran compiler of the GNU Compiler Collection (GCC).
696 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
697 Summary: The GNU Fortran Compiler Runtime Library
698 License: GPL-3.0-with-GCC-exception
699 %ifarch %quadmath_arch
700 Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
702 Provides: libgfortran%{libgfortran_sover} = %{version}-%{release}
704 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
705 The runtime library needed to run programs compiled with the Fortran compiler
706 of the GNU Compiler Collection (GCC).
708 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
711 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
713 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
714 Summary: The GNU Fortran Compiler Runtime Library
715 License: GPL-3.0-with-GCC-exception
716 %ifarch %quadmath_arch
717 Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
719 Provides: libgfortran%{libgfortran_sover}-32bit = %{version}-%{release}
721 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
722 The runtime library needed to run programs compiled with the Fortran compiler
723 of the GNU Compiler Collection (GCC).
725 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
728 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
730 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
731 Summary: The GNU Fortran Compiler Runtime Library
732 License: GPL-3.0-with-GCC-exception
733 %ifarch %quadmath_arch
734 Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
736 Provides: libgfortran%{libgfortran_sover}-64bit = %{version}-%{release}
738 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
739 The runtime library needed to run programs compiled with the Fortran compiler
740 of the GNU Compiler Collection (GCC).
742 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
745 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
748 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
749 Summary: The GNU Fortran Compiler Quadmath Runtime Library
751 Provides: libquadmath%{libquadmath_sover} = %{version}-%{release}
753 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
754 The runtime library needed to run programs compiled with the Fortran compiler
755 of the GNU Compiler Collection (GCC) and quadruple precision floating point
758 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
761 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
763 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
764 Summary: The GNU Fortran Compiler Quadmath Runtime Library
766 Provides: libquadmath%{libquadmath_sover}-32bit = %{version}-%{release}
768 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
769 The runtime library needed to run programs compiled with the Fortran compiler
770 of the GNU Compiler Collection (GCC) and quadruple precision floating point
773 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
776 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
778 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
779 Summary: The GNU Fortran Compiler Quadmath Runtime Library
781 Provides: libquadmath%{libquadmath_sover}-64bit = %{version}-%{release}
783 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
784 The runtime library needed to run programs compiled with the Fortran compiler
785 of the GNU Compiler Collection (GCC) and quadruple precision floating point
788 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
791 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
794 %package -n libmudflap48
795 Summary: The Mudflap Extension Runtime Library
796 License: GPL-3.0-with-GCC-exception
798 %description -n libmudflap48
799 This is the Mudflap Extension Runtime Library.
801 %post -n libmudflap48
804 %postun -n libmudflap48
806 %package -n libmudflap48-32bit
807 Summary: The Mudflap Extension Runtime Library
808 License: GPL-3.0-with-GCC-exception
810 %description -n libmudflap48-32bit
811 This is the Mudflap Extension Runtime Library.
813 %post -n libmudflap48-32bit
816 %postun -n libmudflap48-32bit
818 %package -n libmudflap48-64bit
819 Summary: The Mudflap Extension Runtime Library
820 License: GPL-3.0-with-GCC-exception
822 %description -n libmudflap48-64bit
823 This is the Mudflap Extension Runtime Library.
825 %post -n libmudflap48-64bit
828 %postun -n libmudflap48-64bit
831 %package -n libitm%{libitm_sover}%{libitm_suffix}
832 Summary: The GNU Compiler Transactional Memory Runtime Library
835 %description -n libitm%{libitm_sover}%{libitm_suffix}
836 The runtime library needed to run programs compiled with the
837 -fgnu-tm option of the GNU Compiler Collection (GCC).
839 %post -n libitm%{libitm_sover}%{libitm_suffix}
842 %postun -n libitm%{libitm_sover}%{libitm_suffix}
844 %package -n libitm%{libitm_sover}%{libitm_suffix}-32bit
845 Summary: The GNU Compiler Transactional Memory Runtime Library
848 %description -n libitm%{libitm_sover}%{libitm_suffix}-32bit
849 The runtime library needed to run programs compiled with the
850 -fgnu-tm option of the GNU Compiler Collection (GCC).
852 %post -n libitm%{libitm_sover}%{libitm_suffix}-32bit
855 %postun -n libitm%{libitm_sover}%{libitm_suffix}-32bit
857 %package -n libitm%{libitm_sover}%{libitm_suffix}-64bit
858 Summary: The GNU Compiler Transactional Memory Runtime Library
861 %description -n libitm%{libitm_sover}%{libitm_suffix}-64bit
862 The runtime library needed to run programs compiled with the
863 -fgnu-tm option of the GNU Compiler Collection (GCC).
865 %post -n libitm%{libitm_sover}%{libitm_suffix}-64bit
868 %postun -n libitm%{libitm_sover}%{libitm_suffix}-64bit
871 %package -n libasan%{libasan_sover}%{libasan_suffix}
872 Summary: The GNU Compiler Address Sanitizer Runtime Library
875 %description -n libasan%{libasan_sover}%{libasan_suffix}
876 The runtime library needed to run programs compiled with the
877 -fsanitize=address option of the GNU Compiler Collection (GCC).
879 %post -n libasan%{libasan_sover}%{libasan_suffix}
882 %postun -n libasan%{libasan_sover}%{libasan_suffix}
884 %package -n libasan%{libasan_sover}%{libasan_suffix}-32bit
885 Summary: The GNU Compiler Address Sanitizer Runtime Library
888 %description -n libasan%{libasan_sover}%{libasan_suffix}-32bit
889 The runtime library needed to run programs compiled with the
890 -fsanitize=address option of the GNU Compiler Collection (GCC).
892 %post -n libasan%{libasan_sover}%{libasan_suffix}-32bit
895 %postun -n libasan%{libasan_sover}%{libasan_suffix}-32bit
897 %package -n libasan%{libasan_sover}%{libasan_suffix}-64bit
898 Summary: The GNU Compiler Address Sanitizer Runtime Library
901 %description -n libasan%{libasan_sover}%{libasan_suffix}-64bit
902 The runtime library needed to run programs compiled with the
903 -fsanitize=address option of the GNU Compiler Collection (GCC).
905 %post -n libasan%{libasan_sover}%{libasan_suffix}-64bit
908 %postun -n libasan%{libasan_sover}%{libasan_suffix}-64bit
911 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}
912 Summary: The GNU Compiler Thread Sanitizer Runtime Library
915 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}
916 The runtime library needed to run programs compiled with the
917 -fsanitize=thread option of the GNU Compiler Collection (GCC).
919 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}
922 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}
924 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
925 Summary: The GNU Compiler Thread Sanitizer Runtime Library
928 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
929 The runtime library needed to run programs compiled with the
930 -fsanitize=thread option of the GNU Compiler Collection (GCC).
932 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
935 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
937 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
938 Summary: The GNU Compiler Thread Sanitizer Runtime Library
941 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
942 The runtime library needed to run programs compiled with the
943 -fsanitize=thread option of the GNU Compiler Collection (GCC).
945 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
948 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
951 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}
952 Summary: The GNU Compiler Atomic Operations Runtime Library
953 License: GPL-3.0-with-GCC-exception
955 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}
956 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
958 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}
961 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}
963 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
964 Summary: The GNU Compiler Atomic Operations Runtime Library
965 License: GPL-3.0-with-GCC-exception
967 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
968 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
970 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
973 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
975 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
976 Summary: The GNU Compiler Atomic Operations Runtime Library
977 License: GPL-3.0-with-GCC-exception
979 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
980 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
982 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
985 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
990 Summary: Java Runtime Library for gcc
991 License: GPL-2.0-with-classpath-exception
992 Group: System/Libraries
994 %description -n libgcj48
995 This library is needed if you want to use the GNU Java compiler, gcj.
996 Source code for this package is in gcc.
1005 %package -n gcc48-java
1006 Summary: The GNU Java Compiler
1008 Requires: gcc48 = %{version}
1009 Requires: libgcj48-devel = %{version}-%{release}
1011 %description -n gcc48-java
1012 The Java compiler from the GCC-tools-suite.
1015 %package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1016 Summary: Fake library for BC-ABI compatibility.
1017 License: GPL-2.0-with-classpath-exception
1018 # libgcj_bc is special in that it just contains a symlink to
1019 # a proper libgcj version. So require that library and add
1020 # provides for the shlib version as created at link time
1021 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1022 %ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
1023 Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
1025 Provides: libgcj_bc.so.%{libgcj_bc_sover}
1028 %description -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1029 A fake library that is used at link time only. It ensures that
1030 binaries built with the BC-ABI link against a constant SONAME.
1031 This way, BC-ABI binaries continue to work if the SONAME underlying
1035 %package -n libgcj48-jar
1036 Summary: Java runtime library (jar files).
1037 License: GPL-2.0-with-classpath-exception
1039 %description -n libgcj48-jar
1040 These are the jar files that go along with the gcj front end to gcc.
1043 %package -n libgcj48-devel
1044 Summary: Include Files and Libraries mandatory for Development.
1045 License: GPL-2.0-with-classpath-exception
1046 Requires: libstdc++48-devel = %{version}
1047 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1048 Requires: libgcj_bc%{libgcj_bc_sover} >= %{version}-%{release}
1049 Requires: libgcj48-jar = %{version}-%{release}
1050 Requires: gtk2-devel
1051 Requires: libart_lgpl-devel
1052 Requires: glibc-devel
1053 Requires: zlib-devel
1055 Requires: libunwind-devel
1058 %description -n libgcj48-devel
1059 This package contains all necessary include files and libraries needed
1060 to develop applications that require these.
1063 %package -n gcc48-gij
1064 Summary: Java Bytecode Interpreter for gcc
1065 License: GPL-2.0-with-classpath-exception
1066 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1068 %description -n gcc48-gij
1069 This package contains the java bytecode interpreter gij and related tools.
1071 %package -n libffi%{libffi_sover}%{libffi_suffix}
1072 Summary: Foreign Function Interface library
1073 License: BSD-3-Clause
1075 %description -n libffi%{libffi_sover}%{libffi_suffix}
1076 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.
1078 %post -n libffi%{libffi_sover}%{libffi_suffix}
1081 %postun -n libffi%{libffi_sover}%{libffi_suffix}
1083 %package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1084 Summary: Foreign Function Interface library
1085 License: BSD-3-Clause
1087 %description -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1088 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.
1090 %post -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1093 %postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1095 %package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1096 Summary: Foreign Function Interface library
1097 License: BSD-3-Clause
1099 %description -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1100 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.
1102 %post -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1105 %postun -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1108 %package -n libffi48-devel
1109 Summary: Foreign Function Interface library development files
1110 License: BSD 3-Clause
1111 Requires: libffi%{libffi_sover} >= %{version}-%{release}
1113 %description -n libffi48-devel
1114 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.
1115 %package -n libffi48-devel-32bit
1116 Summary: Foreign Function Interface library development files
1117 License: BSD 3-Clause
1118 Requires: libffi%{libffi_sover}-32bit >= %{version}-%{release}
1120 %description -n libffi48-devel-32bit
1121 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.
1122 %package -n libffi48-devel-64bit
1123 Summary: Foreign Function Interface library development files
1124 License: BSD 3-Clause
1125 Requires: libffi%{libffi_sover}-64bit >= %{version}-%{release}
1127 %description -n libffi48-devel-64bit
1128 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.
1130 %package -n gcc48-testresults
1131 Summary: Testsuite results
1132 License: SUSE-Public-Domain
1134 %description -n gcc48-testresults
1135 Results from running the gcc and target library testsuites.
1139 # Define the canonical target and host architecture
1140 # %gcc_target_arch is supposed to be the full target triple
1141 # %TARGET_ARCH is the canonicalized CPU part
1142 # %CONFIGURE_TARGET is the target triple used for --target=
1143 %if 0%{?gcc_target_arch:1}
1144 %define CONFIGURE_TARGET %{gcc_target_arch}
1145 %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/;")
1146 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc"
1147 %define CONFIGURE_TARGET powerpc64-tizen-linux
1149 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc64"
1150 %define CONFIGURE_TARGET powerpc64-tizen-linux
1152 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1153 %define CONFIGURE_TARGET i586-tizen-linux
1155 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1156 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1158 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1159 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1161 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel"
1162 %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi
1165 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1167 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1169 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1172 %define GCCDIST powerpc64-tizen-linux
1175 %define GCCDIST sparc64-tizen-linux
1178 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1180 %define GCCDIST %{HOST_ARCH}-tizen-linux
1185 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1186 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1189 # Versionspecific directories
1190 %define versmainlibdir %{libsubdir}
1191 %define versmainlibdirbi32 %{libsubdir}/32
1192 %define versmainlibdirbi64 %{libsubdir}/64
1194 %define versmainlibdirbi32 %{libsubdir}
1195 %define versmainlibdirbi64 %{libsubdir}/64
1197 %if %{build_primary_64bit}
1198 %define versmainlibdirbi %{versmainlibdirbi32}
1200 %define versmainlibdirbi %{versmainlibdirbi64}
1203 %define mainlibdir %{_libdir}
1204 %define mainlibdirbi32 %{_prefix}/lib
1205 %define mainlibdirbi64 %{_prefix}/lib64
1206 %if %{build_primary_64bit}
1207 %define mainlibdirbi %{mainlibdirbi32}
1209 %define mainlibdirbi %{mainlibdirbi64}
1213 # Now define a few macros that make it easy to package libs and
1214 # related files just to the right package, without caring for the
1215 # exact path the files are in.
1216 # %mainlib package X from all dirs that belong to the main package
1217 # %biarchlib package X from all dirs that belong to the -32/64bit package
1218 %define mainlib() %{mainlibdir}/%1\
1220 %define biarchlib() %{nil}
1222 %if !%{separate_biarch}
1223 %define mainlib() %{mainlibdir}/%1\
1227 %define biarchlib() %{mainlibdirbi}/%1\
1232 %define versmainlib() %{versmainlibdir}/%1\
1234 %define versbiarchlib() %{nil}
1236 %if !%{separate_biarch}
1237 %define versmainlib() %{versmainlibdir}/%1\
1238 %{versmainlibdirbi}/%1\
1241 %define versbiarchlib() %{versmainlibdirbi}/%1\
1249 %setup -q -n gcc-%{version}
1252 # We are configuring ppc as ppc64 but with switched multilibs. Adjust
1253 # the libstdc++ abi testsuite baseline files accordingly
1255 if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
1256 mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
1257 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt \
1258 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64/
1259 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt \
1260 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/
1265 # Avoid rebuilding of generated files
1266 contrib/gcc_update --touch
1267 # Avoid fucking up testsuite results with Java and indirect dispatch
1268 export LD_AS_NEEDED=0
1269 # Split version file into version used for directories (X.Y) and
1270 # version to report with --version (X.Y.Z).
1271 # See also gcc-dir-version.patch.
1272 # Also decrement the patchlevel version by one
1273 if test `cat gcc/DEV-PHASE` == "prerelease"; then
1274 ( 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
1276 mv gcc/BASE-VER gcc/FULL-VER
1278 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
1280 rm -rf obj-%{GCCDIST}
1281 mkdir obj-%{GCCDIST}
1283 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
1284 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'`
1286 # -mcpu is superceded by -mtune but -mtune is not supported by
1287 # our bootstrap compiler. -mcpu gives a warning that stops
1288 # the build process, so remove it for now. Also remove all other
1289 # -march and -mtune flags. They are superseeded by proper
1290 # default compiler settings now.
1291 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'`
1294 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fsigned-char//g'`
1295 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-O1/-O2/g'`
1297 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1298 # Kill all -march/tune/cpu because that screws building the target libs
1299 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
1301 # Replace 2 spaces by one finally
1302 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
1306 languages=$languages,c++
1309 languages=$languages,objc
1311 %if %{build_fortran}
1312 languages=$languages,fortran
1315 languages=$languages,obj-c++
1318 languages=$languages,java
1321 languages=$languages,ada
1325 if test -z "$J"; then
1326 J=$(getconf _NPROCESSORS_CONF)
1329 test 1 -gt "$J" && J=1
1330 JL=$(($(getconf _NPROCESSORS_CONF)*2))
1332 if test "$J" == "0"; then
1335 if test "$JL" == "0"; then
1338 PARALLEL="-j$J -l$JL"
1340 # we don't want some miscompiles in the testsuite, or some fault in
1341 # the compiler to kill the machine. Hence we limit the amount of memory
1342 # by the physical RAM plus half of swap
1343 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
1344 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
1345 #ulimit -v $(((MEM + SWAP/2)*1024))
1347 # In general we want to ship release checking enabled compilers
1348 # and run BETA with checking enabled.
1349 #ENABLE_CHECKING="--enable-checking=yes"
1350 ENABLE_CHECKING="--enable-checking=release"
1352 # Work around tail/head -1 changes
1353 export _POSIX2_VERSION=199209
1355 # configure tries to parse include/features.h to detect
1356 # if glibc supports SSP. When cross compiling we would need
1357 # to install a cross glibc, which we don't, or make the whole
1358 # thing point to the native glibc, which is in /, hence the
1359 # --with-build-sysroot=/
1362 # Using the host gnatmake like
1363 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
1364 # GNATMAKE="gnatmake%{hostsuffix}"
1365 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
1367 mkdir -p host-tools/bin
1368 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
1369 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
1370 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
1371 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
1372 ln -sf /usr/%{_lib} host-tools/%{_lib}
1373 export PATH="`pwd`/host-tools/bin:$PATH"
1375 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1377 # --enable-threads=posix \
1380 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
1381 # temporary workaround for a miscompilation of hash functions in java code
1382 GCJ_EXTRA_FLAGS="-marm"
1384 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
1385 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
1387 --prefix=%{_prefix} \
1388 --infodir=%{_infodir} \
1389 --mandir=%{_mandir} \
1390 --libdir=%{_libdir} \
1391 --libexecdir=%{_libdir} \
1392 --disable-bootstrap \
1393 --enable-languages=$languages \
1395 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
1399 --with-bugurl="http://bugs.tizen.org/" \
1400 --with-pkgversion="Tizen" \
1401 %if !%{build_fortran}
1402 --disable-libquadmath \
1404 %if !%{build_libjava}
1407 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1408 --with-ecj-jar=%{libsubdir}/ecj.jar \
1409 --disable-java-awt \
1410 %if !%{biarch_libjava}
1411 --disable-libjava-multilib \
1414 %if !%{build_with_mudflap}
1415 --disable-libmudflap \
1417 --with-slibdir=/%{_lib} \
1418 --with-system-zlib \
1419 --enable-__cxa_atexit \
1420 --enable-libstdcxx-allocator=new \
1421 --disable-libstdcxx-pch \
1422 --enable-version-specific-runtime-libs \
1423 --enable-linker-build-id \
1424 %if 0%{?gcc_target_arch:1}
1425 %if 0%{?gcc_icecream:1}
1426 --with-build-sysroot=/ \
1427 --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
1428 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
1429 --enable-linux-futex \
1431 %if 0%{?canonical_target:1}
1432 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1435 --with-sysroot=%sysroot \
1437 %if 0%{?build_static:1}
1440 %if "%{TARGET_ARCH}" == "spu"
1441 --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
1445 --target=%{CONFIGURE_TARGET} \
1447 --program-suffix=%{binsuffix} \
1448 --enable-linux-futex \
1450 --with-system-libunwind \
1452 --without-system-libunwind \
1455 %if "%{TARGET_ARCH}" == "armv5tel"
1456 --with-arch=armv5te \
1459 --with-abi=aapcs-linux \
1460 --disable-sjlj-exceptions \
1462 %if "%{TARGET_ARCH}" == "armv7l"
1463 --with-arch=armv7-a \
1464 --with-tune=cortex-a8 \
1465 --with-float=softfp \
1468 --disable-sjlj-exceptions \
1470 %if "%{TARGET_ARCH}" == "armv7hl"
1471 --with-arch=armv7-a \
1472 --with-tune=cortex-a9 \
1474 --with-abi=aapcs-linux \
1475 --with-fpu=vfpv3-d16 \
1476 --disable-sjlj-exceptions \
1478 %if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
1479 %if "%{TARGET_ARCH}" == "powerpc"
1480 --with-cpu=default32 \
1482 --with-cpu-64=power4 \
1483 --enable-secureplt \
1484 --with-long-double-128 \
1486 %if "%{TARGET_ARCH}" == "sparc64"
1487 --with-cpu=ultrasparc \
1488 --with-long-double-128 \
1490 %if "%{TARGET_ARCH}" == "sparc"
1492 --with-long-double-128 \
1494 %if "%{TARGET_ARCH}" == "i586"
1495 --with-arch-32=i586 \
1496 --with-tune=generic \
1498 %if "%{TARGET_ARCH}" == "x86_64"
1499 --with-arch-32=i586 \
1500 --with-tune=generic \
1502 %if "%{TARGET_ARCH}" == "s390"
1503 --with-tune=z196 --with-arch=z10 \
1504 --with-long-double-128 \
1505 --enable-decimal-float \
1507 %if "%{TARGET_ARCH}" == "s390x"
1508 --with-tune=z196 --with-arch=z10 \
1509 --with-long-double-128 \
1510 --enable-decimal-float \
1515 %if 0%{?building_libffi:1}
1516 make stage1-bubble $PARALLEL
1517 make all-target-libffi $PARALLEL
1520 # Only run profiled bootstrap on archs where it works
1521 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1522 #make profiledbootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1524 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1525 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1529 %if 0%{?run_tests:1}
1530 echo "Run testsuite"
1531 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1532 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1533 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1534 # asan needs a whole shadow address space
1535 ulimit -v unlimited || true
1536 make -k check $PARALLEL || true
1537 mkdir ../testresults
1538 ../contrib/test_summary | tee ../testresults/test_summary.txt
1543 export NO_BRP_CHECK_BYTECODE_VERSION=true
1545 # Work around tail/head -1 changes
1546 export _POSIX2_VERSION=199209
1547 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1548 %if 0%{?building_libffi:1}
1549 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1551 %if 0%{?building_libjava:1}
1552 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1553 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1554 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1555 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1556 # install-common also installs collect2, gcov and the g++ and gfortran driver
1558 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1560 %if %{build_fortran}
1561 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1563 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1564 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1566 make install DESTDIR=$RPM_BUILD_ROOT
1568 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1569 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1570 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1571 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1572 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1573 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1578 # Remove libffi installed files if we did not want to build it
1579 %if !0%{?building_libffi:1}
1580 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1582 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1584 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1585 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1586 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1587 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1588 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1589 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3*
1592 # Remove some useless .la files
1593 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1594 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij \
1595 libasan libatomic libitm libtsan; do
1596 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1598 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1602 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1604 %if %{build_primary_64bit}
1605 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1607 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1612 # Merge multilib c++config.h to allow omitting the duplicate and
1613 # identical other arch specific headers
1615 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1616 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1617 if ! diff -up $cxxconfig $i; then
1632 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1637 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1638 #ifndef _CPP_CPPCONFIG_WRAPPER
1639 #define _CPP_CPPCONFIG_WRAPPER 1
1640 #include <bits/wordsize.h>
1641 #if __WORDSIZE == 32
1651 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1652 if ! test -z "$dir_ml"; then
1653 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1657 # move shared libs from versionspecific dir to main libdir
1659 %if 0%{?building_libjava:1}
1660 libgcj libgij libgcj-tools \
1662 %if %{build_fortran}
1664 %ifarch %quadmath_arch
1675 %ifarch %atomic_arch
1687 %if %{build_with_mudflap}
1688 libmudflap libmudflapth \
1692 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1693 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1695 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1696 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1698 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1699 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1700 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1702 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1703 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1707 # FIXME, tsan is not multilib
1710 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/libtsan.so
1714 %if !0%{?building_libjava:1}
1715 # And we want to move the shlib gdb pretty printers to a more sane
1716 # place so ldconfig does not complain
1717 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1718 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1719 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1721 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1722 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1723 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1724 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1729 %if 0%{?building_libjava:1}
1730 # libgcj_bc is special as the .so file is actually a different
1731 # library as the library refered to by the SONAME which should
1732 # be a simple link to our libgcj.
1733 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1736 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.%{libgcj_bc_sover}
1737 %if %{biarch_libjava}
1738 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1741 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.%{libgcj_bc_sover}
1745 # Move libgcc_s around
1746 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1747 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1748 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1750 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1752 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1754 %if %{build_primary_64bit}
1755 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1756 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1757 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1759 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1761 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1762 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1764 # 32-bit biarch systems
1765 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1766 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1767 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1769 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1771 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1772 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1778 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1779 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1780 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1781 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1783 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1784 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1785 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1786 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1790 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1792 # Remove some crap from the .la files:
1793 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1795 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1796 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1797 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1798 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1799 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1801 %if %{build_primary_64bit}
1802 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1803 -e '/^libdir/s|lib64/\.\./||' \
1805 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1812 %if 0%{?run_tests:1}
1813 cp `find . -name "*.sum"` ../testresults/
1814 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1815 chmod 644 ../testresults/*
1818 # Find C++ and Java headers
1819 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
1820 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
1821 -o \( -type d -printf "%%%%dir " , \
1822 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
1824 # Remove files that we do not need to clean up filelist
1825 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
1826 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
1827 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
1828 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
1829 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
1830 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
1831 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
1832 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
1833 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
1834 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
1835 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
1836 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
1837 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
1838 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1839 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
1840 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
1841 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
1842 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1843 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
1845 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
1846 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1847 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
1849 %if !0%{?building_libjava:1}%{?building_libffi:1}
1850 # delete compile flag tracking from crt files
1851 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
1853 %if %{build_primary_64bit}
1854 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
1856 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
1859 for o in $crt_list $crt32_list $crt64_list; do
1860 objcopy -R ".comment.SUSE.OPTs" $o
1864 %if 0%{?building_libjava:1}
1865 # gcj -static doesn't work properly anyway, unless using --whole-archive
1866 # let's save the space instead.
1867 find $RPM_BUILD_ROOT -name libgcj.a \
1868 -o -name libgcj-tools.a \
1871 -o -name libgcj_bc.a \
1874 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
1875 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
1877 # security files have broken install locations, also they cause conflicts
1878 # between libgcj versions. Simply delete them here, libgcj will use its
1879 # defaults in this case (which is what these files contain anyway).
1880 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
1881 rm -r $RPM_BUILD_ROOT%{_libdir}/security
1884 %if 0%{?building_libffi:1}
1885 # Move libffi headers, remove empty libffi libtool file
1886 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
1887 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
1888 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
1889 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
1891 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
1893 # Generate a simple pkg-config file
1894 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
1895 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
1899 %if !%{build_libjava}
1900 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
1901 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
1902 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
1903 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
1904 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
1905 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
1906 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
1908 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
1909 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
1911 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
1912 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
1913 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
1914 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
1916 %if %{build_primary_64bit}
1917 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
1919 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
1922 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
1923 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
1925 %if 0%{?building_libjava:1}
1926 # For building libjava only we need to delete other info docs
1927 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
1928 # Remove stale manpages for binaries we do not build
1929 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
1930 # For building the java frontend we need to copy the ecj jar
1931 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
1932 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
1934 # For regular build, some info files do not get renamed properly.
1936 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
1938 mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
1940 %if %{build_fortran}
1941 %ifarch %quadmath_arch
1942 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
1946 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
1947 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
1948 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
1953 %find_lang cpplib%{binsuffix}
1954 %find_lang gcc%{binsuffix}
1955 cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc48-locale.lang
1959 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1960 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1961 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1962 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1963 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1964 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1965 %if %{build_fortran}
1966 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1967 %ifarch %quadmath_arch
1968 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1972 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1975 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1976 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1977 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1981 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1982 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1983 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1984 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1985 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1986 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1987 %if %{build_fortran}
1988 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1989 %ifarch %quadmath_arch
1990 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1994 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1997 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1998 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1999 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2003 %defattr(-,root,root)
2005 %dir %{_libdir}/gcc/%{GCCDIST}
2007 %dir %{libsubdir}/include
2008 %dir %{libsubdir}/include-fixed
2010 %if %{build_primary_64bit}
2011 %dir %{libsubdir}/32
2013 %dir %{libsubdir}/64
2016 %{_prefix}/bin/gcc%{binsuffix}
2017 %{_prefix}/bin/gcov%{binsuffix}
2018 %{_prefix}/bin/gcc-ar%{binsuffix}
2019 %{_prefix}/bin/gcc-nm%{binsuffix}
2020 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2021 %{libsubdir}/collect2
2023 %{libsubdir}/lto-wrapper
2024 %{libsubdir}/liblto_plugin.so*
2025 %{libsubdir}/include-fixed/README
2026 %{libsubdir}/include-fixed/limits.h
2027 %{libsubdir}/include-fixed/syslimits.h
2028 %{libsubdir}/include/omp.h
2029 %{libsubdir}/include/float.h
2030 %{libsubdir}/include/iso646.h
2031 %{libsubdir}/include/stdarg.h
2032 %{libsubdir}/include/stdbool.h
2033 %{libsubdir}/include/stdfix.h
2034 %{libsubdir}/include/stddef.h
2035 %{libsubdir}/include/unwind.h
2036 %{libsubdir}/include/varargs.h
2037 %{libsubdir}/include/stdint.h
2038 %{libsubdir}/include/stdint-gcc.h
2039 %{libsubdir}/include/stdnoreturn.h
2040 %{libsubdir}/include/stdalign.h
2042 %{libsubdir}/include/visintrin.h
2045 %{libsubdir}/include/altivec.h
2046 %{libsubdir}/include/ppc-asm.h
2047 %{libsubdir}/include/paired.h
2048 %{libsubdir}/include/ppu_intrinsics.h
2049 %{libsubdir}/include/si2vmx.h
2050 %{libsubdir}/include/spe.h
2051 %{libsubdir}/include/spu2vmx.h
2052 %{libsubdir}/include/vec_types.h
2055 %{libsubdir}/include/ia64intrin.h
2058 %{libsubdir}/include/arm_neon.h
2061 %{libsubdir}/include/mmintrin.h
2062 %{libsubdir}/include/arm_neon.h
2063 %{libsubdir}/include/unwind-arm-common.h
2065 %ifarch %ix86 x86_64
2066 %{libsubdir}/include/cross-stdarg.h
2067 %{libsubdir}/include/cpuid.h
2068 %{libsubdir}/include/mm3dnow.h
2069 %{libsubdir}/include/mmintrin.h
2070 %{libsubdir}/include/ammintrin.h
2071 %{libsubdir}/include/bmmintrin.h
2072 %{libsubdir}/include/emmintrin.h
2073 %{libsubdir}/include/immintrin.h
2074 %{libsubdir}/include/avxintrin.h
2075 %{libsubdir}/include/pmmintrin.h
2076 %{libsubdir}/include/xmmintrin.h
2077 %{libsubdir}/include/tmmintrin.h
2078 %{libsubdir}/include/nmmintrin.h
2079 %{libsubdir}/include/smmintrin.h
2080 %{libsubdir}/include/wmmintrin.h
2081 %{libsubdir}/include/x86intrin.h
2082 %{libsubdir}/include/ia32intrin.h
2083 %{libsubdir}/include/mm_malloc.h
2084 %{libsubdir}/include/fma4intrin.h
2085 %{libsubdir}/include/xopintrin.h
2086 %{libsubdir}/include/lwpintrin.h
2087 %{libsubdir}/include/popcntintrin.h
2088 %{libsubdir}/include/bmiintrin.h
2089 %{libsubdir}/include/tbmintrin.h
2090 %{libsubdir}/include/avx2intrin.h
2091 %{libsubdir}/include/bmi2intrin.h
2092 %{libsubdir}/include/fmaintrin.h
2093 %{libsubdir}/include/lzcntintrin.h
2094 %{libsubdir}/include/f16cintrin.h
2095 %{libsubdir}/include/adxintrin.h
2096 %{libsubdir}/include/fxsrintrin.h
2097 %{libsubdir}/include/prfchwintrin.h
2098 %{libsubdir}/include/rdseedintrin.h
2099 %{libsubdir}/include/rtmintrin.h
2100 %{libsubdir}/include/xsaveintrin.h
2101 %{libsubdir}/include/xsaveoptintrin.h
2102 %{libsubdir}/include/xtestintrin.h
2104 %if %{build_with_mudflap}
2105 %{libsubdir}/include/mf-runtime.h
2107 %versmainlib *crt*.o
2108 %versmainlib libgcc*.a
2109 %versmainlib libgcov.a
2110 %versmainlib libgcc_s*.so
2111 %if %{build_with_mudflap}
2112 %versmainlib libmudflap.a
2113 %versmainlib libmudflap.so
2114 %versmainlib libmudflapth.a
2115 %versmainlib libmudflapth.so
2117 %versmainlib libgomp.so
2118 %versmainlib libgomp.a
2119 %versmainlib libgomp.spec
2121 %versmainlib libitm.so
2122 %versmainlib libitm.a
2123 %versmainlib libitm.spec
2125 %ifarch %atomic_arch
2126 %versmainlib libatomic.so
2127 %versmainlib libatomic.a
2130 %versmainlib libasan.so
2131 %versmainlib libasan.a
2132 %versmainlib libasan_preinit.o
2135 %versmainlib libtsan.so
2136 %versmainlib libtsan.a
2138 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2139 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2141 %if %{separate_biarch}
2142 %files -n gcc48%{separate_biarch_suffix}
2143 %defattr(-,root,root)
2144 %versbiarchlib *crt*.o
2145 %versbiarchlib libgcc*.a
2146 %versbiarchlib libgcov.a
2147 %versbiarchlib libgcc_s*.so
2148 %if %{build_with_mudflap}
2149 %versbiarchlib libmudflap.a
2150 %versbiarchlib libmudflap.so
2151 %versbiarchlib libmudflapth.a
2152 %versbiarchlib libmudflapth.so
2154 %versbiarchlib libgomp.so
2155 %versbiarchlib libgomp.a
2156 %versbiarchlib libgomp.spec
2158 %versbiarchlib libitm.so
2159 %versbiarchlib libitm.a
2160 %versbiarchlib libitm.spec
2162 %ifarch %atomic_arch
2163 %versbiarchlib libatomic.a
2164 %versbiarchlib libatomic.so
2167 %versbiarchlib libasan.a
2168 %versbiarchlib libasan.so
2169 %versbiarchlib libasan_preinit.o
2173 %versbiarchlib libtsan.a
2174 %versbiarchlib libtsan.so
2179 %files locale -f gcc48-locale.lang
2181 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
2185 %defattr(-,root,root)
2187 %dir %{_libdir}/gcc/%{GCCDIST}
2189 %{_prefix}/bin/g++%{binsuffix}
2190 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2191 %{libsubdir}/cc1plus
2193 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
2194 %defattr(-,root,root)
2195 %mainlib libstdc++.so.%{libstdcxx_sover}*
2197 %if %{separate_biarch}
2198 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}%{separate_biarch_suffix}
2199 %defattr(-,root,root)
2200 %biarchlib libstdc++.so.%{libstdcxx_sover}*
2203 %files -n libstdc++48-devel -f c++-headers
2204 %defattr(-,root,root)
2205 %versmainlib libstdc++.a
2206 %versmainlib libstdc++.so
2207 %versmainlib libsupc++.a
2208 %dir %{_datadir}/gdb
2209 %dir %{_datadir}/gdb/auto-load
2210 %dir %{_datadir}/gdb/auto-load%{_prefix}
2211 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2212 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2213 %{_datadir}/gcc%{binsuffix}
2215 %if %{separate_biarch}
2216 %files -n libstdc++48-devel%{separate_biarch_suffix}
2217 %defattr(-,root,root)
2218 %versbiarchlib libstdc++.a
2219 %versbiarchlib libstdc++.so
2220 %versbiarchlib libsupc++.a
2221 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2222 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2225 %files -n libstdc++48-doc
2226 %defattr(-,root,root)
2227 %doc libstdc++-v3/doc/html
2230 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
2231 %defattr(-,root,root)
2232 /%{_lib}/libgcc_s.so.%{libgcc_s}
2234 %if %{build_primary_64bit}
2235 %if !%{separate_bi32}
2236 /lib/libgcc_s.so.%{libgcc_s}
2239 %if !%{separate_bi64}
2240 /lib64/libgcc_s.so.%{libgcc_s}
2245 %if %{separate_bi64}
2246 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
2247 %defattr(-,root,root)
2248 /lib64/libgcc_s.so.%{libgcc_s}
2251 %if %{separate_bi32}
2252 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
2253 %defattr(-,root,root)
2254 /lib/libgcc_s.so.%{libgcc_s}
2258 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}
2259 %defattr(-,root,root)
2260 %mainlib libgomp.so.%{libgomp_sover}*
2262 %if %{separate_biarch}
2263 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}%{separate_biarch_suffix}
2264 %defattr(-,root,root)
2265 %biarchlib libgomp.so.%{libgomp_sover}*
2270 %files -n libasan%{libasan_sover}%{libasan_suffix}
2271 %defattr(-,root,root)
2272 %mainlib libasan.so.%{libasan_sover}*
2274 %if %{separate_biarch}
2275 %files -n libasan%{libasan_sover}%{libasan_suffix}%{separate_biarch_suffix}
2276 %defattr(-,root,root)
2277 %biarchlib libasan.so.%{libasan_sover}*
2283 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}
2284 %defattr(-,root,root)
2285 %mainlib libtsan.so.%{libtsan_sover}*
2288 %if %{separate_biarch}
2289 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}%{separate_biarch_suffix}
2290 %defattr(-,root,root)
2291 %biarchlib libtsan.so.%{libtsan_sover}*
2297 %ifarch %atomic_arch
2298 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}
2299 %defattr(-,root,root)
2300 %mainlib libatomic.so.%{libatomic_sover}*
2302 %if %{separate_biarch}
2303 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}%{separate_biarch_suffix}
2304 %defattr(-,root,root)
2305 %biarchlib libatomic.so.%{libatomic_sover}*
2311 %files -n libitm%{libitm_sover}%{libitm_suffix}
2312 %defattr(-,root,root)
2313 %mainlib libitm.so.%{libitm_sover}*
2315 %if %{separate_biarch}
2316 %files -n libitm%{libitm_sover}%{libitm_suffix}%{separate_biarch_suffix}
2317 %defattr(-,root,root)
2318 %biarchlib libitm.so.%{libitm_sover}*
2324 %if %{build_fortran}
2326 %defattr(-,root,root)
2327 %dir %{libsubdir}/finclude
2328 %{_prefix}/bin/gfortran%{binsuffix}
2330 %{libsubdir}/finclude/*
2331 %versmainlib libgfortran.a
2332 %versmainlib libgfortran.so
2333 %versmainlib libgfortran.spec
2334 %versmainlib libgfortranbegin.a
2335 %versmainlib libcaf_single.a
2336 %ifarch %quadmath_arch
2337 %{libsubdir}/include/quadmath.h
2338 %{libsubdir}/include/quadmath_weak.h
2339 %versmainlib libquadmath.a
2340 %versmainlib libquadmath.so
2342 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2344 %if %{separate_biarch}
2345 %files fortran%{separate_biarch_suffix}
2346 %defattr(-,root,root)
2347 %versbiarchlib libgfortran.a
2348 %versbiarchlib libgfortran.so
2349 %versbiarchlib libgfortran.spec
2350 %versbiarchlib libgfortranbegin.a
2351 %versbiarchlib libcaf_single.a
2352 %ifarch %quadmath_arch
2353 %versbiarchlib libquadmath.a
2354 %versbiarchlib libquadmath.so
2358 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
2359 %defattr(-,root,root)
2360 %mainlib libgfortran.so.%{libgfortran_sover}*
2362 %if %{separate_biarch}
2363 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}%{separate_biarch_suffix}
2364 %defattr(-,root,root)
2365 %biarchlib libgfortran.so.%{libgfortran_sover}*
2368 %ifarch %quadmath_arch
2369 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
2370 %defattr(-,root,root)
2371 %mainlib libquadmath.so.%{libquadmath_sover}*
2373 %if %{separate_biarch}
2374 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}%{separate_biarch_suffix}
2375 %defattr(-,root,root)
2376 %biarchlib libquadmath.so.%{libquadmath_sover}*
2381 %if %{build_with_mudflap}
2382 %files -n libmudflap48
2383 %defattr(-,root,root)
2384 %mainlib libmudflap.so.%{libmudflap_sover}*
2385 %mainlib libmudflapth.so.%{libmudflap_sover}*
2387 %if %{separate_biarch}
2388 %files -n libmudflap48%{separate_biarch_suffix}
2389 %defattr(-,root,root)
2390 %biarchlib libmudflap.so.%{libmudflap_sover}*
2391 %biarchlib libmudflapth.so.%{libmudflap_sover}*
2396 %defattr(-,root,root)
2397 %doc %{_infodir}/*.gz
2400 %defattr(-,root,root)
2402 %dir %{_libdir}/gcc/%{GCCDIST}
2404 %{_prefix}/bin/cpp%{binsuffix}
2407 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2411 %defattr(-,root,root)
2413 %{libsubdir}/include/objc
2414 %versmainlib libobjc.a
2415 %versmainlib libobjc.so
2417 %if %{separate_biarch}
2418 %files objc%{separate_biarch_suffix}
2419 %defattr(-,root,root)
2420 %versbiarchlib libobjc.a
2421 %versbiarchlib libobjc.so
2424 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}
2425 %defattr(-,root,root)
2426 %mainlib libobjc.so.%{libobjc_sover}*
2428 %if %{separate_biarch}
2429 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}%{separate_biarch_suffix}
2430 %defattr(-,root,root)
2431 %biarchlib libobjc.so.%{libobjc_sover}*
2438 %defattr(-,root,root)
2439 %{libsubdir}/cc1objplus
2445 %defattr(-,root,root)
2447 %dir %{_libdir}/gcc/%{GCCDIST}
2449 %{_prefix}/bin/gnat*
2450 %dir %{versmainlibdir}/adainclude
2451 %dir %{versmainlibdir}/adalib
2452 %{versmainlibdir}/adainclude
2453 %{versmainlibdir}/adalib/*.ali
2454 %{versmainlibdir}/adalib/*.a
2455 %{versmainlibdir}/adalib/libgnarl.so
2456 %{versmainlibdir}/adalib/libgnat.so
2457 %{versmainlibdir}/gnat1
2459 %if %{separate_biarch}
2460 %files ada%{separate_biarch_suffix}
2461 %defattr(-,root,root)
2462 %dir %{versmainlibdirbi}/adainclude
2463 %dir %{versmainlibdirbi}/adalib
2464 %{versmainlibdirbi}/adainclude
2465 %{versmainlibdirbi}/adalib/*.ali
2466 %{versmainlibdirbi}/adalib/*.a
2467 %{versmainlibdirbi}/adalib/libgnarl.so
2468 %{versmainlibdirbi}/adalib/libgnat.so
2472 %defattr(-,root,root)
2473 %mainlib libgnarl-*.so
2474 %mainlib libgnat-*.so
2476 %if %{separate_biarch}
2477 %files -n libada48%{separate_biarch_suffix}
2478 %defattr(-,root,root)
2479 %biarchlib libgnarl-*.so
2480 %biarchlib libgnat-*.so
2486 %if 0%{?building_libjava:1}
2487 %files -n gcc48-java
2488 %defattr(-,root,root)
2489 %{_prefix}/bin/gcj%{binsuffix}
2490 %{_prefix}/bin/gcjh%{binsuffix}
2491 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2492 %{_prefix}/bin/jcf-dump%{binsuffix}
2493 %{_prefix}/bin/jv-convert%{binsuffix}
2494 %{_prefix}/bin/gc-analyze%{binsuffix}
2495 %{_prefix}/bin/aot-compile%{binsuffix}
2496 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2498 %{libsubdir}/jvgenmain
2499 %{libsubdir}/ecj.jar
2501 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2502 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2503 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2504 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2505 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2506 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2507 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2508 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2513 %if %{build_libjava}
2515 %defattr(-,root,root)
2516 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
2518 %dir %{_libdir}/gcc/%{GCCDIST}
2520 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/classmap.db
2521 # We usually do not multilib libjava
2522 %if %{biarch_libjava}
2523 %versbiarchlib libgcj.la
2524 %biarchlib libgcj.so.*
2525 %biarchlib libgij.so.*
2526 %biarchlib libgcj-tools.so.*
2528 %versmainlib libgcj.la
2529 %mainlib libgcj.so.*
2530 %mainlib libgij.so.*
2531 %mainlib libgcj-tools.so.*
2533 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.la
2534 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.so
2535 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.la
2536 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.so
2538 %files -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
2539 %defattr(-,root,root)
2540 %if %{biarch_libjava}
2541 %biarchlib libgcj_bc.so.%{libgcj_bc_sover}*
2543 %mainlib libgcj_bc.so.%{libgcj_bc_sover}*
2546 %files -n libgcj48-jar
2547 %defattr(-,root,root)
2548 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2549 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2551 %files -n libgcj48-devel
2552 %defattr(-,root,root)
2553 %dir %{_prefix}/include/c++
2555 %dir %{libsubdir}/include
2557 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2558 %{libsubdir}/include/jawt.h
2559 %{libsubdir}/include/jawt_md.h
2560 %{libsubdir}/include/jni.h
2561 %{libsubdir}/include/jni_md.h
2562 %{libsubdir}/include/jvmpi.h
2569 %{libsubdir}/include/gcj
2570 %if %{biarch_libjava}
2571 %versbiarchlib libgcj.so
2572 %versbiarchlib libgcj.spec
2573 %versbiarchlib libgcj-tools.so
2574 %versbiarchlib libgij.so
2575 %versbiarchlib libgcj_bc.so
2577 %versmainlib libgcj.so
2578 %versmainlib libgcj.spec
2579 %versmainlib libgcj-tools.so
2580 %versmainlib libgij.so
2581 %versmainlib libgcj_bc.so
2585 %defattr(-,root,root)
2586 %{_prefix}/bin/gij%{binsuffix}
2587 %{_prefix}/bin/gappletviewer%{binsuffix}
2588 %{_prefix}/bin/gjar%{binsuffix}
2589 %{_prefix}/bin/gjarsigner%{binsuffix}
2590 %{_prefix}/bin/gjavah%{binsuffix}
2591 %{_prefix}/bin/gkeytool%{binsuffix}
2592 %{_prefix}/bin/gnative2ascii%{binsuffix}
2593 %{_prefix}/bin/gorbd%{binsuffix}
2594 %{_prefix}/bin/grmic%{binsuffix}
2595 %{_prefix}/bin/grmid%{binsuffix}
2596 %{_prefix}/bin/grmiregistry%{binsuffix}
2597 %{_prefix}/bin/gserialver%{binsuffix}
2598 %{_prefix}/bin/gtnameserv%{binsuffix}
2599 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2600 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2601 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2602 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2603 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2604 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2605 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2606 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2607 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2608 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2609 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2610 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2611 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2616 %if 0%{?building_libffi:1}
2617 %files -n libffi%{libffi_sover}%{libffi_suffix}
2618 %defattr(-,root,root)
2619 %mainlib libffi.so.%{libffi_sover}*
2621 %if %{separate_biarch}
2622 %files -n libffi%{libffi_sover}%{libffi_suffix}%{separate_biarch_suffix}
2623 %defattr(-,root,root)
2624 %biarchlib libffi.so.%{libffi_sover}*
2627 %post -n libffi48-devel
2628 %install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2629 %postun -n libffi48-devel
2630 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2632 %files -n libffi48-devel
2633 %defattr(-,root,root)
2634 %{_prefix}/include/ffi.h
2635 %{_prefix}/include/ffitarget.h
2638 %{_libdir}/pkgconfig/libffi.pc
2639 %doc %{_infodir}/libffi%{binsuffix}.info.gz
2640 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2641 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2642 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2643 %doc %{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3.gz
2645 %if %{separate_biarch}
2646 %files -n libffi48-devel%{separate_biarch_suffix}
2647 %defattr(-,root,root)
2648 %biarchlib libffi.so
2654 %if 0%{?run_tests:1}
2655 %files -n gcc48-testresults
2656 %defattr(-,root,root)
2657 %doc testresults/test_summary.txt
2658 %doc testresults/*.sum
2659 %doc testresults/*.log