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
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_version %(echo %version | sed 's/_.*//')
178 %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1-2)
179 %define snapshot_date %(echo %version | sed 's/[34]\.[0-9]\.[0-6]//' | sed 's/_/-/')
180 %define binsuffix -4.8
182 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
183 Requires: binutils glibc-devel
184 Requires: cpp48 = %{version}-%{release}
185 Requires: libgcc_s%{libgcc_s} >= %{version}-%{release}
186 Requires: libgomp%{libgomp_sover} >= %{version}-%{release}
187 %if %{build_with_mudflap}
188 Requires: libmudflap%{libmudflap_sover} >= %{version}-%{release}
189 Requires: libmudflapth%{libmudflap_sover} >= %{version}-%{release}
192 Requires: libasan%{libasan_sover} >= %{version}-%{release}
195 Requires: libtsan%{libtsan_sover} >= %{version}-%{release}
198 Requires: libatomic%{libatomic_sover} >= %{version}-%{release}
201 Requires: libitm%{libitm_sover} >= %{version}-%{release}
203 Suggests: gcc48-info gcc48-locale
206 BuildRoot: %{_tmppath}/%{name}-%{version}-build
207 Source: gcc-%{version}.tar.bz2
209 Source3: gcc48-rpmlintrc
211 Source6: baselibs.conf
214 Group: Development/Toolchain
215 Summary: The GNU C Compiler and Support Files
219 Core package for the GNU Compiler Collection, including the C language
222 Language frontends other than C are split to different sub-packages,
223 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
228 %package -n gcc48-32bit
229 Summary: The GNU C Compiler 32bit support
230 Requires: gcc48 = %{version}-%{release}
231 Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
232 Requires: libgomp%{libgomp_sover}-32bit >= %{version}-%{release}
233 %if %{build_with_mudflap}
234 Requires: libmudflap%{libmudflap_sover}-32bit >= %{version}-%{release}
235 Requires: libmudflapth%{libmudflap_sover}-32bit >= %{version}-%{release}
237 Requires: glibc-devel-32bit
239 %description -n gcc48-32bit
240 This package contains 32bit support for the GNU Compiler Collection.
242 %package -n gcc48-64bit
243 Summary: The GNU C Compiler 64bit support
244 Requires: gcc48 = %{version}-%{release}
245 Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
246 Requires: libgomp%{libgomp_sover}-64bit >= %{version}-%{release}
247 %if %{build_with_mudflap}
248 Requires: libmudflap%{libmudflap_sover}-64bit >= %{version}-%{release}
249 Requires: libmudflapth%{libmudflap_sover}-64bit >= %{version}-%{release}
251 Requires: glibc-devel-64bit
253 %description -n gcc48-64bit
254 This package contains 64bit support for the GNU Compiler Collection.
258 Summary: Locale Data for the GNU Compiler Collection
260 Requires: gcc48 = %{version}-%{release}
263 Locale data for the GNU Compiler Collection (GCC) to give error message
264 in the current locale.
268 Summary: The GNU C++ Compiler
270 Requires: gcc48 = %{version}-%{release}
271 Requires: libstdc++48-devel = %{version}-%{release}
274 This package contains the GNU compiler for C++.
276 %package -n libstdc++48-devel
277 Summary: Include Files and Libraries mandatory for Development
278 License: GPL-3.0-with-GCC-exception
279 Requires: libstdc++%{libstdcxx_sover} >= %{version}-%{release}
280 Requires: glibc-devel
282 Requires: libunwind-devel
285 %description -n libstdc++48-devel
286 This package contains all the headers and libraries of the standard C++
287 library. It is needed for compiling C++ code.
288 %package -n libstdc++48-devel-32bit
289 Summary: Include Files and Libraries mandatory for Development
290 License: GPL-3.0-with-GCC-exception
291 Requires: libstdc++%{libstdcxx_sover}-32bit >= %{version}-%{release}
292 Requires: glibc-devel-32bit
294 Requires: libunwind-devel
297 %description -n libstdc++48-devel-32bit
298 This package contains all the headers and libraries of the standard C++
299 library. It is needed for compiling C++ code.
300 %package -n libstdc++48-devel-64bit
301 Summary: Include Files and Libraries mandatory for Development
302 License: GPL-3.0-with-GCC-exception
303 Requires: libstdc++%{libstdcxx_sover}-64bit >= %{version}-%{release}
304 Requires: glibc-devel-64bit
306 Requires: libunwind-devel
309 %description -n libstdc++48-devel-64bit
310 This package contains all the headers and libraries of the standard C++
311 library. It is needed for compiling C++ code.
313 %package -n libstdc++48-doc
314 Summary: Documentation for the GNU C++ standard library
318 %description -n libstdc++48-doc
319 Extensive HTML documentation for the GNU C++ standard library.
322 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
323 Summary: C compiler runtime library
324 License: GPL-3.0-with-GCC-exception
325 Group: System/Libraries
326 Provides: libgcc_s%{libgcc_s} = %{version}-%{release}
328 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
329 Libgcc is needed for dynamically linked C programs.
331 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
334 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
336 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
337 Summary: C compiler runtime library
338 License: GPL-3.0-with-GCC-exception
339 Group: System/Libraries
340 Provides: libgcc_s%{libgcc_s}-32bit = %{version}-%{release}
342 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
343 Libgcc is needed for dynamically linked C programs.
345 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
348 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
350 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
351 Summary: C compiler runtime library
352 License: GPL-3.0-with-GCC-exception
353 Group: System/Libraries
354 Provides: libgcc_s%{libgcc_s}-64bit = %{version}-%{release}
356 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
357 Libgcc is needed for dynamically linked C programs.
359 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
362 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
365 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}
366 Summary: The GNU compiler collection OpenMP runtime library
367 License: GPL-3.0-with-GCC-exception
368 Group: System/Libraries
369 Provides: libgomp%{libgomp_sover} = %{version}-%{release}
371 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}
372 This is the OpenMP runtime library needed by OpenMP enabled programs
373 that were built with the -fopenmp compiler option and by programs that
374 were auto-parallelized via the -ftree-parallelize-loops compiler
378 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}
381 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}
383 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
384 Summary: The GNU compiler collection OpenMP runtime library
385 License: GPL-3.0-with-GCC-exception
386 Group: System/Libraries
387 Provides: libgomp%{libgomp_sover}-32bit = %{version}-%{release}
389 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
390 This is the OpenMP runtime library needed by OpenMP enabled programs
391 that were built with the -fopenmp compiler option and by programs that
392 were auto-parallelized via the -ftree-parallelize-loops compiler
396 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
399 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
401 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
402 Summary: The GNU compiler collection OpenMP runtime library
403 License: GPL-3.0-with-GCC-exception
404 Group: System/Libraries
405 Provides: libgomp%{libgomp_sover}-64bit = %{version}-%{release}
407 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
408 This is the OpenMP runtime library needed by OpenMP enabled programs
409 that were built with the -fopenmp compiler option and by programs that
410 were auto-parallelized via the -ftree-parallelize-loops compiler
414 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
417 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
420 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
421 Summary: The standard C++ shared library
422 License: GPL-3.0-with-GCC-exception
423 Group: System/Libraries
424 Suggests: libstdc++%{libstdcxx_sover}-locale
425 Provides: libstdc++%{libstdcxx_sover} = %{version}-%{release}
427 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
428 The standard C++ library, needed for dynamically linked C++ programs.
431 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
434 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
436 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
437 Summary: The standard C++ shared library
438 License: GPL-3.0-with-GCC-exception
439 Group: System/Libraries
440 Suggests: libstdc++%{libstdcxx_sover}-locale
441 Provides: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release}
443 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
444 The standard C++ library, needed for dynamically linked C++ programs.
447 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
450 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
452 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
453 Summary: The standard C++ shared library
454 License: GPL-3.0-with-GCC-exception
455 Group: System/Libraries
456 Suggests: libstdc++%{libstdcxx_sover}-locale
457 Provides: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release}
459 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
460 The standard C++ library, needed for dynamically linked C++ programs.
463 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
466 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
469 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
470 Summary: Locale Data for the standard C++ shared library
471 License: GPL-3.0-with-GCC-exception
472 Group: System/Libraries
473 Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release}
475 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
476 The standard C++ library locale data.
480 Summary: Documentation for the GNU compiler collection
485 GNU info-pages for the GNU compiler collection covering both user-level
486 and internals documentation.
490 Summary: GNU Objective C Compiler
492 Requires: gcc48 = %{version}-%{release}
493 Requires: libobjc%{libobjc_sover} >= %{version}-%{release}
496 This package contains the GNU Objective C compiler. Objective C is an
497 object oriented language, created by Next Inc. and used in their
498 Nextstep OS. The source code is available in the gcc package.
500 Summary: GNU Objective C Compiler
502 Requires: gcc48 = %{version}-%{release}
503 Requires: libobjc%{libobjc_sover}-32bit >= %{version}-%{release}
505 %description objc-32bit
506 This package contains the GNU Objective C compiler. Objective C is an
507 object oriented language, created by Next Inc. and used in their
508 Nextstep OS. The source code is available in the gcc package.
510 Summary: GNU Objective C Compiler
512 Requires: gcc48 = %{version}-%{release}
513 Requires: libobjc%{libobjc_sover}-64bit >= %{version}-%{release}
515 %description objc-64bit
516 This package contains the GNU Objective C compiler. Objective C is an
517 object oriented language, created by Next Inc. and used in their
518 Nextstep OS. The source code is available in the gcc package.
520 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}
521 Summary: Library for the GNU Objective C Compiler
522 License: GPL-3.0-with-GCC-exception
523 Provides: libobjc%{libobjc_sover} = %{version}-%{release}
525 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}
526 The library for the GNU Objective C compiler.
528 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}
531 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}
533 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
534 Summary: Library for the GNU Objective C Compiler
535 License: GPL-3.0-with-GCC-exception
536 Provides: libobjc%{libobjc_sover}-32bit = %{version}-%{release}
538 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
539 The library for the GNU Objective C compiler.
541 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
544 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
546 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
547 Summary: Library for the GNU Objective C Compiler
548 License: GPL-3.0-with-GCC-exception
549 Provides: libobjc%{libobjc_sover}-64bit = %{version}-%{release}
551 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
552 The library for the GNU Objective C compiler.
554 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
557 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
561 Summary: GNU Objective C++ Compiler
563 Requires: gcc48-objc = %{version}-%{release}
564 Requires: gcc48-c++ = %{version}-%{release}
567 This package contains the GNU Objective C++ compiler. Objective C++ is an
568 object oriented language, created by Next Inc. and used in their
569 Nextstep OS. The source code is available in the gcc package.
573 Summary: The GCC Preprocessor
576 %description -n cpp48
577 This Package contains just the preprocessor that is used by the X11
582 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
584 Requires: gcc48 = %{version}-%{release}
585 Requires: libada48 = %{version}-%{release}
588 This package contains an Ada95 compiler and associated development
589 tools based on the GNU GCC technology. Ada95 is the object oriented
590 successor of the Ada83 language. To build this package from source you
591 must have installed a binary version to bootstrap the compiler.
593 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
595 Requires: gcc48-32bit = %{version}-%{release}
596 Requires: libada48-32bit = %{version}-%{release}
598 %description ada-32bit
599 This package contains an Ada95 compiler and associated development
600 tools based on the GNU GCC technology. Ada95 is the object oriented
601 successor of the Ada83 language. To build this package from source you
602 must have installed a binary version to bootstrap the compiler.
604 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
606 Requires: gcc48-64bit = %{version}-%{release}
607 Requires: libada48-64bit = %{version}-%{release}
609 %description ada-64bit
610 This package contains an Ada95 compiler and associated development
611 tools based on the GNU GCC technology. Ada95 is the object oriented
612 successor of the Ada83 language. To build this package from source you
613 must have installed a binary version to bootstrap the compiler.
616 Summary: GNU Ada Runtime Libraries
617 License: GPL-3.0-with-GCC-exception
618 %description -n libada48
619 This package contains the shared libraries required to run programs
620 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
621 shared libraries. It also contains the shared libraries for the
622 Implementation of the Ada Semantic Interface Specification (ASIS), the
623 implementation of Distributed Systems Programming (GLADE) and the Posix
624 1003.5 Binding (Florist).
631 %package -n libada48-32bit
632 Summary: GNU Ada Runtime Libraries
633 License: GPL-3.0-with-GCC-exception
634 %description -n libada48-32bit
635 This package contains the shared libraries required to run programs
636 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
637 shared libraries. It also contains the shared libraries for the
638 Implementation of the Ada Semantic Interface Specification (ASIS), the
639 implementation of Distributed Systems Programming (GLADE) and the Posix
640 1003.5 Binding (Florist).
642 %post -n libada48-32bit
645 %postun -n libada48-32bit
647 %package -n libada48-64bit
648 Summary: GNU Ada Runtime Libraries
649 License: GPL-3.0-with-GCC-exception
650 %description -n libada48-64bit
651 This package contains the shared libraries required to run programs
652 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
653 shared libraries. It also contains the shared libraries for the
654 Implementation of the Ada Semantic Interface Specification (ASIS), the
655 implementation of Distributed Systems Programming (GLADE) and the Posix
656 1003.5 Binding (Florist).
658 %post -n libada48-64bit
661 %postun -n libada48-64bit
665 Summary: The GNU Fortran Compiler and Support Files
667 Requires: gcc48 = %{version}-%{release}
668 Requires: libgfortran%{libgfortran_sover} >= %{version}-%{release}
669 %ifarch %quadmath_arch
670 Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
674 This is the Fortran compiler of the GNU Compiler Collection (GCC).
675 %package fortran-32bit
676 Summary: The GNU Fortran Compiler and Support Files
678 Requires: gcc48 = %{version}-%{release}
679 Requires: libgfortran%{libgfortran_sover}-32bit >= %{version}-%{release}
680 %ifarch %quadmath_arch
681 Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
684 %description fortran-32bit
685 This is the Fortran compiler of the GNU Compiler Collection (GCC).
686 %package fortran-64bit
687 Summary: The GNU Fortran Compiler and Support Files
689 Requires: gcc48 = %{version}-%{release}
690 Requires: libgfortran%{libgfortran_sover}-64bit >= %{version}-%{release}
691 %ifarch %quadmath_arch
692 Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
695 %description fortran-64bit
696 This is the Fortran compiler of the GNU Compiler Collection (GCC).
698 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
699 Summary: The GNU Fortran Compiler Runtime Library
700 License: GPL-3.0-with-GCC-exception
701 %ifarch %quadmath_arch
702 Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
704 Provides: libgfortran%{libgfortran_sover} = %{version}-%{release}
706 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
707 The runtime library needed to run programs compiled with the Fortran compiler
708 of the GNU Compiler Collection (GCC).
710 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
713 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
715 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
716 Summary: The GNU Fortran Compiler Runtime Library
717 License: GPL-3.0-with-GCC-exception
718 %ifarch %quadmath_arch
719 Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
721 Provides: libgfortran%{libgfortran_sover}-32bit = %{version}-%{release}
723 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
724 The runtime library needed to run programs compiled with the Fortran compiler
725 of the GNU Compiler Collection (GCC).
727 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
730 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
732 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
733 Summary: The GNU Fortran Compiler Runtime Library
734 License: GPL-3.0-with-GCC-exception
735 %ifarch %quadmath_arch
736 Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
738 Provides: libgfortran%{libgfortran_sover}-64bit = %{version}-%{release}
740 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
741 The runtime library needed to run programs compiled with the Fortran compiler
742 of the GNU Compiler Collection (GCC).
744 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
747 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
750 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
751 Summary: The GNU Fortran Compiler Quadmath Runtime Library
753 Provides: libquadmath%{libquadmath_sover} = %{version}-%{release}
755 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
756 The runtime library needed to run programs compiled with the Fortran compiler
757 of the GNU Compiler Collection (GCC) and quadruple precision floating point
760 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
763 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
765 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
766 Summary: The GNU Fortran Compiler Quadmath Runtime Library
768 Provides: libquadmath%{libquadmath_sover}-32bit = %{version}-%{release}
770 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
771 The runtime library needed to run programs compiled with the Fortran compiler
772 of the GNU Compiler Collection (GCC) and quadruple precision floating point
775 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
778 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
780 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
781 Summary: The GNU Fortran Compiler Quadmath Runtime Library
783 Provides: libquadmath%{libquadmath_sover}-64bit = %{version}-%{release}
785 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
786 The runtime library needed to run programs compiled with the Fortran compiler
787 of the GNU Compiler Collection (GCC) and quadruple precision floating point
790 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
793 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
796 %package -n libmudflap48
797 Summary: The Mudflap Extension Runtime Library
798 License: GPL-3.0-with-GCC-exception
800 %description -n libmudflap48
801 This is the Mudflap Extension Runtime Library.
803 %post -n libmudflap48
806 %postun -n libmudflap48
808 %package -n libmudflap48-32bit
809 Summary: The Mudflap Extension Runtime Library
810 License: GPL-3.0-with-GCC-exception
812 %description -n libmudflap48-32bit
813 This is the Mudflap Extension Runtime Library.
815 %post -n libmudflap48-32bit
818 %postun -n libmudflap48-32bit
820 %package -n libmudflap48-64bit
821 Summary: The Mudflap Extension Runtime Library
822 License: GPL-3.0-with-GCC-exception
824 %description -n libmudflap48-64bit
825 This is the Mudflap Extension Runtime Library.
827 %post -n libmudflap48-64bit
830 %postun -n libmudflap48-64bit
833 %package -n libitm%{libitm_sover}%{libitm_suffix}
834 Summary: The GNU Compiler Transactional Memory Runtime Library
837 %description -n libitm%{libitm_sover}%{libitm_suffix}
838 The runtime library needed to run programs compiled with the
839 -fgnu-tm option of the GNU Compiler Collection (GCC).
841 %post -n libitm%{libitm_sover}%{libitm_suffix}
844 %postun -n libitm%{libitm_sover}%{libitm_suffix}
846 %package -n libitm%{libitm_sover}%{libitm_suffix}-32bit
847 Summary: The GNU Compiler Transactional Memory Runtime Library
850 %description -n libitm%{libitm_sover}%{libitm_suffix}-32bit
851 The runtime library needed to run programs compiled with the
852 -fgnu-tm option of the GNU Compiler Collection (GCC).
854 %post -n libitm%{libitm_sover}%{libitm_suffix}-32bit
857 %postun -n libitm%{libitm_sover}%{libitm_suffix}-32bit
859 %package -n libitm%{libitm_sover}%{libitm_suffix}-64bit
860 Summary: The GNU Compiler Transactional Memory Runtime Library
863 %description -n libitm%{libitm_sover}%{libitm_suffix}-64bit
864 The runtime library needed to run programs compiled with the
865 -fgnu-tm option of the GNU Compiler Collection (GCC).
867 %post -n libitm%{libitm_sover}%{libitm_suffix}-64bit
870 %postun -n libitm%{libitm_sover}%{libitm_suffix}-64bit
873 %package -n libasan%{libasan_sover}%{libasan_suffix}
874 Summary: The GNU Compiler Address Sanitizer Runtime Library
877 %description -n libasan%{libasan_sover}%{libasan_suffix}
878 The runtime library needed to run programs compiled with the
879 -fsanitize=address option of the GNU Compiler Collection (GCC).
881 %post -n libasan%{libasan_sover}%{libasan_suffix}
884 %postun -n libasan%{libasan_sover}%{libasan_suffix}
886 %package -n libasan%{libasan_sover}%{libasan_suffix}-32bit
887 Summary: The GNU Compiler Address Sanitizer Runtime Library
890 %description -n libasan%{libasan_sover}%{libasan_suffix}-32bit
891 The runtime library needed to run programs compiled with the
892 -fsanitize=address option of the GNU Compiler Collection (GCC).
894 %post -n libasan%{libasan_sover}%{libasan_suffix}-32bit
897 %postun -n libasan%{libasan_sover}%{libasan_suffix}-32bit
899 %package -n libasan%{libasan_sover}%{libasan_suffix}-64bit
900 Summary: The GNU Compiler Address Sanitizer Runtime Library
903 %description -n libasan%{libasan_sover}%{libasan_suffix}-64bit
904 The runtime library needed to run programs compiled with the
905 -fsanitize=address option of the GNU Compiler Collection (GCC).
907 %post -n libasan%{libasan_sover}%{libasan_suffix}-64bit
910 %postun -n libasan%{libasan_sover}%{libasan_suffix}-64bit
913 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}
914 Summary: The GNU Compiler Thread Sanitizer Runtime Library
917 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}
918 The runtime library needed to run programs compiled with the
919 -fsanitize=thread option of the GNU Compiler Collection (GCC).
921 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}
924 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}
926 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
927 Summary: The GNU Compiler Thread Sanitizer Runtime Library
930 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
931 The runtime library needed to run programs compiled with the
932 -fsanitize=thread option of the GNU Compiler Collection (GCC).
934 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
937 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
939 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
940 Summary: The GNU Compiler Thread Sanitizer Runtime Library
943 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
944 The runtime library needed to run programs compiled with the
945 -fsanitize=thread option of the GNU Compiler Collection (GCC).
947 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
950 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
953 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}
954 Summary: The GNU Compiler Atomic Operations Runtime Library
955 License: GPL-3.0-with-GCC-exception
957 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}
958 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
960 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}
963 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}
965 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
966 Summary: The GNU Compiler Atomic Operations Runtime Library
967 License: GPL-3.0-with-GCC-exception
969 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
970 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
972 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
975 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
977 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
978 Summary: The GNU Compiler Atomic Operations Runtime Library
979 License: GPL-3.0-with-GCC-exception
981 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
982 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
984 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
987 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
992 Summary: Java Runtime Library for gcc
993 License: GPL-2.0-with-classpath-exception
994 Group: System/Libraries
996 %description -n libgcj48
997 This library is needed if you want to use the GNU Java compiler, gcj.
998 Source code for this package is in gcc.
1007 %package -n gcc48-java
1008 Summary: The GNU Java Compiler
1010 Requires: gcc48 = %{version}
1011 Requires: libgcj48-devel = %{version}-%{release}
1013 %description -n gcc48-java
1014 The Java compiler from the GCC-tools-suite.
1017 %package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1018 Summary: Fake library for BC-ABI compatibility.
1019 License: GPL-2.0-with-classpath-exception
1020 # libgcj_bc is special in that it just contains a symlink to
1021 # a proper libgcj version. So require that library and add
1022 # provides for the shlib version as created at link time
1023 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1024 %ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
1025 Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
1027 Provides: libgcj_bc.so.%{libgcj_bc_sover}
1030 %description -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1031 A fake library that is used at link time only. It ensures that
1032 binaries built with the BC-ABI link against a constant SONAME.
1033 This way, BC-ABI binaries continue to work if the SONAME underlying
1037 %package -n libgcj48-jar
1038 Summary: Java runtime library (jar files).
1039 License: GPL-2.0-with-classpath-exception
1041 %description -n libgcj48-jar
1042 These are the jar files that go along with the gcj front end to gcc.
1045 %package -n libgcj48-devel
1046 Summary: Include Files and Libraries mandatory for Development.
1047 License: GPL-2.0-with-classpath-exception
1048 Requires: libstdc++48-devel = %{version}
1049 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1050 Requires: libgcj_bc%{libgcj_bc_sover} >= %{version}-%{release}
1051 Requires: libgcj48-jar = %{version}-%{release}
1052 Requires: gtk2-devel
1053 Requires: libart_lgpl-devel
1054 Requires: glibc-devel
1055 Requires: zlib-devel
1057 Requires: libunwind-devel
1060 %description -n libgcj48-devel
1061 This package contains all necessary include files and libraries needed
1062 to develop applications that require these.
1065 %package -n gcc48-gij
1066 Summary: Java Bytecode Interpreter for gcc
1067 License: GPL-2.0-with-classpath-exception
1068 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
1070 %description -n gcc48-gij
1071 This package contains the java bytecode interpreter gij and related tools.
1073 %package -n libffi%{libffi_sover}%{libffi_suffix}
1074 Summary: Foreign Function Interface library
1075 License: BSD-3-Clause
1077 %description -n libffi%{libffi_sover}%{libffi_suffix}
1078 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.
1080 %post -n libffi%{libffi_sover}%{libffi_suffix}
1083 %postun -n libffi%{libffi_sover}%{libffi_suffix}
1085 %package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1086 Summary: Foreign Function Interface library
1087 License: BSD-3-Clause
1089 %description -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1090 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.
1092 %post -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1095 %postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit
1097 %package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1098 Summary: Foreign Function Interface library
1099 License: BSD-3-Clause
1101 %description -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1102 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.
1104 %post -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1107 %postun -n libffi%{libffi_sover}%{libffi_suffix}-64bit
1110 %package -n libffi48-devel
1111 Summary: Foreign Function Interface library development files
1112 License: BSD 3-Clause
1113 Requires: libffi%{libffi_sover} >= %{version}-%{release}
1115 %description -n libffi48-devel
1116 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.
1117 %package -n libffi48-devel-32bit
1118 Summary: Foreign Function Interface library development files
1119 License: BSD 3-Clause
1120 Requires: libffi%{libffi_sover}-32bit >= %{version}-%{release}
1122 %description -n libffi48-devel-32bit
1123 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.
1124 %package -n libffi48-devel-64bit
1125 Summary: Foreign Function Interface library development files
1126 License: BSD 3-Clause
1127 Requires: libffi%{libffi_sover}-64bit >= %{version}-%{release}
1129 %description -n libffi48-devel-64bit
1130 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.
1132 %package -n gcc48-testresults
1133 Summary: Testsuite results
1134 License: SUSE-Public-Domain
1136 %description -n gcc48-testresults
1137 Results from running the gcc and target library testsuites.
1141 # Define the canonical target and host architecture
1142 # %gcc_target_arch is supposed to be the full target triple
1143 # %TARGET_ARCH is the canonicalized CPU part
1144 # %CONFIGURE_TARGET is the target triple used for --target=
1145 %if 0%{?gcc_target_arch:1}
1146 %define CONFIGURE_TARGET %{gcc_target_arch}
1147 %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/;")
1148 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc"
1149 %define CONFIGURE_TARGET powerpc64-tizen-linux
1151 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc64"
1152 %define CONFIGURE_TARGET powerpc64-tizen-linux
1154 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1155 %define CONFIGURE_TARGET i586-tizen-linux
1157 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1158 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1160 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1161 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1163 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel"
1164 %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi
1167 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1169 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1171 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1174 %define GCCDIST powerpc64-tizen-linux
1177 %define GCCDIST sparc64-tizen-linux
1180 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1182 %define GCCDIST %{HOST_ARCH}-tizen-linux
1187 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1188 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1191 # Versionspecific directories
1192 %define versmainlibdir %{libsubdir}
1193 %define versmainlibdirbi32 %{libsubdir}/32
1194 %define versmainlibdirbi64 %{libsubdir}/64
1196 %define versmainlibdirbi32 %{libsubdir}
1197 %define versmainlibdirbi64 %{libsubdir}/64
1199 %if %{build_primary_64bit}
1200 %define versmainlibdirbi %{versmainlibdirbi32}
1202 %define versmainlibdirbi %{versmainlibdirbi64}
1205 %define mainlibdir %{_libdir}
1206 %define mainlibdirbi32 %{_prefix}/lib
1207 %define mainlibdirbi64 %{_prefix}/lib64
1208 %if %{build_primary_64bit}
1209 %define mainlibdirbi %{mainlibdirbi32}
1211 %define mainlibdirbi %{mainlibdirbi64}
1215 # Now define a few macros that make it easy to package libs and
1216 # related files just to the right package, without caring for the
1217 # exact path the files are in.
1218 # %mainlib package X from all dirs that belong to the main package
1219 # %biarchlib package X from all dirs that belong to the -32/64bit package
1220 %define mainlib() %{mainlibdir}/%1\
1222 %define biarchlib() %{nil}
1224 %if !%{separate_biarch}
1225 %define mainlib() %{mainlibdir}/%1\
1229 %define biarchlib() %{mainlibdirbi}/%1\
1234 %define versmainlib() %{versmainlibdir}/%1\
1236 %define versbiarchlib() %{nil}
1238 %if !%{separate_biarch}
1239 %define versmainlib() %{versmainlibdir}/%1\
1240 %{versmainlibdirbi}/%1\
1243 %define versbiarchlib() %{versmainlibdirbi}/%1\
1251 %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_libjava}
1406 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1407 --with-ecj-jar=%{libsubdir}/ecj.jar \
1408 --disable-java-awt \
1409 %if !%{biarch_libjava}
1410 --disable-libjava-multilib \
1413 %if !%{build_with_mudflap}
1414 --disable-libmudflap \
1416 --with-slibdir=/%{_lib} \
1417 --with-system-zlib \
1418 --enable-__cxa_atexit \
1419 --enable-libstdcxx-allocator=new \
1420 --disable-libstdcxx-pch \
1421 --enable-version-specific-runtime-libs \
1422 --enable-linker-build-id \
1423 %if 0%{?gcc_target_arch:1}
1424 %if 0%{?gcc_icecream:1}
1425 --with-build-sysroot=/ \
1426 --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
1427 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
1428 --enable-linux-futex \
1430 %if 0%{?canonical_target:1}
1431 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1434 --with-sysroot=%sysroot \
1436 %if 0%{?build_static:1}
1439 %if "%{TARGET_ARCH}" == "spu"
1440 --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
1444 --target=%{CONFIGURE_TARGET} \
1446 --program-suffix=%{binsuffix} \
1447 --enable-linux-futex \
1449 --with-system-libunwind \
1451 --without-system-libunwind \
1454 %if "%{TARGET_ARCH}" == "armv5tel"
1455 --with-arch=armv5te \
1458 --with-abi=aapcs-linux \
1459 --disable-sjlj-exceptions \
1461 %if "%{TARGET_ARCH}" == "armv7l"
1462 --with-arch=armv7-a \
1463 --with-tune=cortex-a8 \
1464 --with-float=softfp \
1466 --disable-sjlj-exceptions \
1468 %if "%{TARGET_ARCH}" == "armv7hl"
1469 --with-arch=armv7-a \
1470 --with-tune=cortex-a9 \
1472 --with-abi=aapcs-linux \
1473 --with-fpu=vfpv3-d16 \
1474 --disable-sjlj-exceptions \
1476 %if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
1477 %if "%{TARGET_ARCH}" == "powerpc"
1478 --with-cpu=default32 \
1480 --with-cpu-64=power4 \
1481 --enable-secureplt \
1482 --with-long-double-128 \
1484 %if "%{TARGET_ARCH}" == "sparc64"
1485 --with-cpu=ultrasparc \
1486 --with-long-double-128 \
1488 %if "%{TARGET_ARCH}" == "sparc"
1490 --with-long-double-128 \
1492 %if "%{TARGET_ARCH}" == "i586"
1493 --with-arch-32=i586 \
1494 --with-tune=generic \
1496 %if "%{TARGET_ARCH}" == "x86_64"
1497 --with-arch-32=i586 \
1498 --with-tune=generic \
1500 %if "%{TARGET_ARCH}" == "s390"
1501 --with-tune=z196 --with-arch=z10 \
1502 --with-long-double-128 \
1503 --enable-decimal-float \
1505 %if "%{TARGET_ARCH}" == "s390x"
1506 --with-tune=z196 --with-arch=z10 \
1507 --with-long-double-128 \
1508 --enable-decimal-float \
1513 %if 0%{?building_libffi:1}
1514 make stage1-bubble $PARALLEL
1515 make all-target-libffi $PARALLEL
1518 # Only run profiled bootstrap on archs where it works
1519 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1520 #make profiledbootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1522 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1523 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1527 %if 0%{?run_tests:1}
1528 echo "Run testsuite"
1529 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1530 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1531 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1532 # asan needs a whole shadow address space
1533 ulimit -v unlimited || true
1534 make -k check $PARALLEL || true
1535 mkdir ../testresults
1536 ../contrib/test_summary | tee ../testresults/test_summary.txt
1541 export NO_BRP_CHECK_BYTECODE_VERSION=true
1543 # Work around tail/head -1 changes
1544 export _POSIX2_VERSION=199209
1545 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1546 %if 0%{?building_libffi:1}
1547 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1549 %if 0%{?building_libjava:1}
1550 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1551 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1552 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1553 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1554 # install-common also installs collect2, gcov and the g++ and gfortran driver
1556 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1558 %if %{build_fortran}
1559 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1561 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1562 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1564 make install DESTDIR=$RPM_BUILD_ROOT
1566 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1567 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1568 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1569 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1570 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1571 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1576 # Remove libffi installed files if we did not want to build it
1577 %if !0%{?building_libffi:1}
1578 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1580 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1582 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1583 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1584 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1585 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1586 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1587 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3*
1590 # Remove some useless .la files
1591 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1592 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij \
1593 libasan libatomic libitm libtsan; do
1594 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1596 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1600 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1602 %if %{build_primary_64bit}
1603 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1605 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1610 # Merge multilib c++config.h to allow omitting the duplicate and
1611 # identical other arch specific headers
1613 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1614 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1615 if ! diff -up $cxxconfig $i; then
1630 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1635 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1636 #ifndef _CPP_CPPCONFIG_WRAPPER
1637 #define _CPP_CPPCONFIG_WRAPPER 1
1638 #include <bits/wordsize.h>
1639 #if __WORDSIZE == 32
1649 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1650 if ! test -z "$dir_ml"; then
1651 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1655 # move shared libs from versionspecific dir to main libdir
1657 %if 0%{?building_libjava:1}
1658 libgcj libgij libgcj-tools \
1660 %if %{build_fortran}
1662 %ifarch %quadmath_arch
1673 %ifarch %atomic_arch
1685 %if %{build_with_mudflap}
1686 libmudflap libmudflapth \
1690 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1691 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1693 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1694 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1696 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1697 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1698 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1700 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1701 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1705 # FIXME, tsan is not multilib
1708 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/libtsan.so
1712 %if !0%{?building_libjava:1}
1713 # And we want to move the shlib gdb pretty printers to a more sane
1714 # place so ldconfig does not complain
1715 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1716 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1717 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1719 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1720 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1721 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1722 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1727 %if 0%{?building_libjava:1}
1728 # libgcj_bc is special as the .so file is actually a different
1729 # library as the library refered to by the SONAME which should
1730 # be a simple link to our libgcj.
1731 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1734 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.%{libgcj_bc_sover}
1735 %if %{biarch_libjava}
1736 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1739 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.%{libgcj_bc_sover}
1743 # Move libgcc_s around
1744 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1745 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1746 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1748 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1750 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1752 %if %{build_primary_64bit}
1753 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1754 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1755 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1757 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1759 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1760 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1762 # 32-bit biarch systems
1763 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1764 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1765 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1767 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1769 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1770 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1776 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1777 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1778 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1779 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1781 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1782 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1783 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1784 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1788 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1790 # Remove some crap from the .la files:
1791 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1793 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1794 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1795 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1796 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1797 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1799 %if %{build_primary_64bit}
1800 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1801 -e '/^libdir/s|lib64/\.\./||' \
1803 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1810 %if 0%{?run_tests:1}
1811 cp `find . -name "*.sum"` ../testresults/
1812 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1813 chmod 644 ../testresults/*
1816 # Find C++ and Java headers
1817 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
1818 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
1819 -o \( -type d -printf "%%%%dir " , \
1820 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
1822 # Remove files that we do not need to clean up filelist
1823 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
1824 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
1825 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
1826 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
1827 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
1828 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
1829 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
1830 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
1831 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
1832 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
1833 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
1834 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
1835 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
1836 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1837 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
1838 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
1839 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
1840 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1841 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
1843 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
1844 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1845 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
1847 %if !0%{?building_libjava:1}%{?building_libffi:1}
1848 # delete compile flag tracking from crt files
1849 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
1851 %if %{build_primary_64bit}
1852 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
1854 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
1857 for o in $crt_list $crt32_list $crt64_list; do
1858 objcopy -R ".comment.SUSE.OPTs" $o
1862 %if 0%{?building_libjava:1}
1863 # gcj -static doesn't work properly anyway, unless using --whole-archive
1864 # let's save the space instead.
1865 find $RPM_BUILD_ROOT -name libgcj.a \
1866 -o -name libgcj-tools.a \
1869 -o -name libgcj_bc.a \
1872 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
1873 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
1875 # security files have broken install locations, also they cause conflicts
1876 # between libgcj versions. Simply delete them here, libgcj will use its
1877 # defaults in this case (which is what these files contain anyway).
1878 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
1879 rm -r $RPM_BUILD_ROOT%{_libdir}/security
1882 %if 0%{?building_libffi:1}
1883 # Move libffi headers, remove empty libffi libtool file
1884 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
1885 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
1886 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
1887 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
1889 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
1891 # Generate a simple pkg-config file
1892 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
1893 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
1897 %if !%{build_libjava}
1898 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
1899 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
1900 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
1901 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
1902 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
1903 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
1904 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
1906 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
1907 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
1909 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
1910 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
1911 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
1912 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
1914 %if %{build_primary_64bit}
1915 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
1917 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
1920 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
1921 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
1923 %if 0%{?building_libjava:1}
1924 # For building libjava only we need to delete other info docs
1925 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
1926 # Remove stale manpages for binaries we do not build
1927 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
1928 # For building the java frontend we need to copy the ecj jar
1929 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
1930 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
1932 # For regular build, some info files do not get renamed properly.
1934 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
1936 mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
1938 %if %{build_fortran}
1939 %ifarch %quadmath_arch
1940 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
1944 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
1945 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
1946 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
1951 %find_lang cpplib%{binsuffix}
1952 %find_lang gcc%{binsuffix}
1953 cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc48-locale.lang
1957 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1958 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1959 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1960 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1961 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1962 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1963 %if %{build_fortran}
1964 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1965 %ifarch %quadmath_arch
1966 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1970 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1973 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1974 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1975 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1979 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1980 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1981 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1982 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1983 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1984 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1985 %if %{build_fortran}
1986 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1987 %ifarch %quadmath_arch
1988 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1992 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1995 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1996 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1997 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2001 %defattr(-,root,root)
2003 %dir %{_libdir}/gcc/%{GCCDIST}
2005 %dir %{libsubdir}/include
2006 %dir %{libsubdir}/include-fixed
2008 %if %{build_primary_64bit}
2009 %dir %{libsubdir}/32
2011 %dir %{libsubdir}/64
2014 %{_prefix}/bin/gcc%{binsuffix}
2015 %{_prefix}/bin/gcov%{binsuffix}
2016 %{_prefix}/bin/gcc-ar%{binsuffix}
2017 %{_prefix}/bin/gcc-nm%{binsuffix}
2018 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2019 %{libsubdir}/collect2
2021 %{libsubdir}/lto-wrapper
2022 %{libsubdir}/liblto_plugin.so*
2023 %{libsubdir}/include-fixed/README
2024 %{libsubdir}/include-fixed/limits.h
2025 %{libsubdir}/include-fixed/syslimits.h
2026 %{libsubdir}/include/omp.h
2027 %{libsubdir}/include/float.h
2028 %{libsubdir}/include/iso646.h
2029 %{libsubdir}/include/stdarg.h
2030 %{libsubdir}/include/stdbool.h
2031 %{libsubdir}/include/stdfix.h
2032 %{libsubdir}/include/stddef.h
2033 %{libsubdir}/include/unwind.h
2034 %{libsubdir}/include/varargs.h
2035 %{libsubdir}/include/stdint.h
2036 %{libsubdir}/include/stdint-gcc.h
2037 %{libsubdir}/include/stdnoreturn.h
2038 %{libsubdir}/include/stdalign.h
2040 %{libsubdir}/include/visintrin.h
2043 %{libsubdir}/include/altivec.h
2044 %{libsubdir}/include/ppc-asm.h
2045 %{libsubdir}/include/paired.h
2046 %{libsubdir}/include/ppu_intrinsics.h
2047 %{libsubdir}/include/si2vmx.h
2048 %{libsubdir}/include/spe.h
2049 %{libsubdir}/include/spu2vmx.h
2050 %{libsubdir}/include/vec_types.h
2053 %{libsubdir}/include/ia64intrin.h
2056 %{libsubdir}/include/arm_neon.h
2059 %{libsubdir}/include/mmintrin.h
2060 %{libsubdir}/include/arm_neon.h
2061 %{libsubdir}/include/unwind-arm-common.h
2063 %ifarch %ix86 x86_64
2064 %{libsubdir}/include/cross-stdarg.h
2065 %{libsubdir}/include/cpuid.h
2066 %{libsubdir}/include/mm3dnow.h
2067 %{libsubdir}/include/mmintrin.h
2068 %{libsubdir}/include/ammintrin.h
2069 %{libsubdir}/include/bmmintrin.h
2070 %{libsubdir}/include/emmintrin.h
2071 %{libsubdir}/include/immintrin.h
2072 %{libsubdir}/include/avxintrin.h
2073 %{libsubdir}/include/pmmintrin.h
2074 %{libsubdir}/include/xmmintrin.h
2075 %{libsubdir}/include/tmmintrin.h
2076 %{libsubdir}/include/nmmintrin.h
2077 %{libsubdir}/include/smmintrin.h
2078 %{libsubdir}/include/wmmintrin.h
2079 %{libsubdir}/include/x86intrin.h
2080 %{libsubdir}/include/ia32intrin.h
2081 %{libsubdir}/include/mm_malloc.h
2082 %{libsubdir}/include/fma4intrin.h
2083 %{libsubdir}/include/xopintrin.h
2084 %{libsubdir}/include/lwpintrin.h
2085 %{libsubdir}/include/popcntintrin.h
2086 %{libsubdir}/include/bmiintrin.h
2087 %{libsubdir}/include/tbmintrin.h
2088 %{libsubdir}/include/avx2intrin.h
2089 %{libsubdir}/include/bmi2intrin.h
2090 %{libsubdir}/include/fmaintrin.h
2091 %{libsubdir}/include/lzcntintrin.h
2092 %{libsubdir}/include/f16cintrin.h
2093 %{libsubdir}/include/adxintrin.h
2094 %{libsubdir}/include/fxsrintrin.h
2095 %{libsubdir}/include/prfchwintrin.h
2096 %{libsubdir}/include/rdseedintrin.h
2097 %{libsubdir}/include/rtmintrin.h
2098 %{libsubdir}/include/xsaveintrin.h
2099 %{libsubdir}/include/xsaveoptintrin.h
2100 %{libsubdir}/include/xtestintrin.h
2102 %if %{build_with_mudflap}
2103 %{libsubdir}/include/mf-runtime.h
2105 %versmainlib *crt*.o
2106 %versmainlib libgcc*.a
2107 %versmainlib libgcov.a
2108 %versmainlib libgcc_s*.so
2109 %if %{build_with_mudflap}
2110 %versmainlib libmudflap.a
2111 %versmainlib libmudflap.so
2112 %versmainlib libmudflapth.a
2113 %versmainlib libmudflapth.so
2115 %versmainlib libgomp.so
2116 %versmainlib libgomp.a
2117 %versmainlib libgomp.spec
2119 %versmainlib libitm.so
2120 %versmainlib libitm.a
2121 %versmainlib libitm.spec
2123 %ifarch %atomic_arch
2124 %versmainlib libatomic.so
2125 %versmainlib libatomic.a
2128 %versmainlib libasan.so
2129 %versmainlib libasan.a
2130 %versmainlib libasan_preinit.o
2133 %versmainlib libtsan.so
2134 %versmainlib libtsan.a
2136 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2137 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2139 %if %{separate_biarch}
2140 %files -n gcc48%{separate_biarch_suffix}
2141 %defattr(-,root,root)
2142 %versbiarchlib *crt*.o
2143 %versbiarchlib libgcc*.a
2144 %versbiarchlib libgcov.a
2145 %versbiarchlib libgcc_s*.so
2146 %if %{build_with_mudflap}
2147 %versbiarchlib libmudflap.a
2148 %versbiarchlib libmudflap.so
2149 %versbiarchlib libmudflapth.a
2150 %versbiarchlib libmudflapth.so
2152 %versbiarchlib libgomp.so
2153 %versbiarchlib libgomp.a
2154 %versbiarchlib libgomp.spec
2156 %versbiarchlib libitm.so
2157 %versbiarchlib libitm.a
2158 %versbiarchlib libitm.spec
2160 %ifarch %atomic_arch
2161 %versbiarchlib libatomic.a
2162 %versbiarchlib libatomic.so
2165 %versbiarchlib libasan.a
2166 %versbiarchlib libasan.so
2167 %versbiarchlib libasan_preinit.o
2171 %versbiarchlib libtsan.a
2172 %versbiarchlib libtsan.so
2177 %files locale -f gcc48-locale.lang
2179 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
2183 %defattr(-,root,root)
2185 %dir %{_libdir}/gcc/%{GCCDIST}
2187 %{_prefix}/bin/g++%{binsuffix}
2188 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2189 %{libsubdir}/cc1plus
2191 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
2192 %defattr(-,root,root)
2193 %mainlib libstdc++.so.%{libstdcxx_sover}*
2195 %if %{separate_biarch}
2196 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}%{separate_biarch_suffix}
2197 %defattr(-,root,root)
2198 %biarchlib libstdc++.so.%{libstdcxx_sover}*
2201 %files -n libstdc++48-devel -f c++-headers
2202 %defattr(-,root,root)
2203 %versmainlib libstdc++.a
2204 %versmainlib libstdc++.so
2205 %versmainlib libsupc++.a
2206 %dir %{_datadir}/gdb
2207 %dir %{_datadir}/gdb/auto-load
2208 %dir %{_datadir}/gdb/auto-load%{_prefix}
2209 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2210 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2211 %{_datadir}/gcc%{binsuffix}
2213 %if %{separate_biarch}
2214 %files -n libstdc++48-devel%{separate_biarch_suffix}
2215 %defattr(-,root,root)
2216 %versbiarchlib libstdc++.a
2217 %versbiarchlib libstdc++.so
2218 %versbiarchlib libsupc++.a
2219 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2220 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2223 %files -n libstdc++48-doc
2224 %defattr(-,root,root)
2225 %doc libstdc++-v3/doc/html
2228 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
2229 %defattr(-,root,root)
2230 /%{_lib}/libgcc_s.so.%{libgcc_s}
2232 %if %{build_primary_64bit}
2233 %if !%{separate_bi32}
2234 /lib/libgcc_s.so.%{libgcc_s}
2237 %if !%{separate_bi64}
2238 /lib64/libgcc_s.so.%{libgcc_s}
2243 %if %{separate_bi64}
2244 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
2245 %defattr(-,root,root)
2246 /lib64/libgcc_s.so.%{libgcc_s}
2249 %if %{separate_bi32}
2250 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
2251 %defattr(-,root,root)
2252 /lib/libgcc_s.so.%{libgcc_s}
2256 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}
2257 %defattr(-,root,root)
2258 %mainlib libgomp.so.%{libgomp_sover}*
2260 %if %{separate_biarch}
2261 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}%{separate_biarch_suffix}
2262 %defattr(-,root,root)
2263 %biarchlib libgomp.so.%{libgomp_sover}*
2268 %files -n libasan%{libasan_sover}%{libasan_suffix}
2269 %defattr(-,root,root)
2270 %mainlib libasan.so.%{libasan_sover}*
2272 %if %{separate_biarch}
2273 %files -n libasan%{libasan_sover}%{libasan_suffix}%{separate_biarch_suffix}
2274 %defattr(-,root,root)
2275 %biarchlib libasan.so.%{libasan_sover}*
2281 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}
2282 %defattr(-,root,root)
2283 %mainlib libtsan.so.%{libtsan_sover}*
2286 %if %{separate_biarch}
2287 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}%{separate_biarch_suffix}
2288 %defattr(-,root,root)
2289 %biarchlib libtsan.so.%{libtsan_sover}*
2295 %ifarch %atomic_arch
2296 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}
2297 %defattr(-,root,root)
2298 %mainlib libatomic.so.%{libatomic_sover}*
2300 %if %{separate_biarch}
2301 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}%{separate_biarch_suffix}
2302 %defattr(-,root,root)
2303 %biarchlib libatomic.so.%{libatomic_sover}*
2309 %files -n libitm%{libitm_sover}%{libitm_suffix}
2310 %defattr(-,root,root)
2311 %mainlib libitm.so.%{libitm_sover}*
2313 %if %{separate_biarch}
2314 %files -n libitm%{libitm_sover}%{libitm_suffix}%{separate_biarch_suffix}
2315 %defattr(-,root,root)
2316 %biarchlib libitm.so.%{libitm_sover}*
2322 %if %{build_fortran}
2324 %defattr(-,root,root)
2325 %dir %{libsubdir}/finclude
2326 %{_prefix}/bin/gfortran%{binsuffix}
2328 %{libsubdir}/finclude/*
2329 %versmainlib libgfortran.a
2330 %versmainlib libgfortran.so
2331 %versmainlib libgfortran.spec
2332 %versmainlib libgfortranbegin.a
2333 %versmainlib libcaf_single.a
2334 %ifarch %quadmath_arch
2335 %{libsubdir}/include/quadmath.h
2336 %{libsubdir}/include/quadmath_weak.h
2337 %versmainlib libquadmath.a
2338 %versmainlib libquadmath.so
2340 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2342 %if %{separate_biarch}
2343 %files fortran%{separate_biarch_suffix}
2344 %defattr(-,root,root)
2345 %versbiarchlib libgfortran.a
2346 %versbiarchlib libgfortran.so
2347 %versbiarchlib libgfortran.spec
2348 %versbiarchlib libgfortranbegin.a
2349 %versbiarchlib libcaf_single.a
2350 %ifarch %quadmath_arch
2351 %versbiarchlib libquadmath.a
2352 %versbiarchlib libquadmath.so
2356 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
2357 %defattr(-,root,root)
2358 %mainlib libgfortran.so.%{libgfortran_sover}*
2360 %if %{separate_biarch}
2361 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}%{separate_biarch_suffix}
2362 %defattr(-,root,root)
2363 %biarchlib libgfortran.so.%{libgfortran_sover}*
2366 %ifarch %quadmath_arch
2367 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
2368 %defattr(-,root,root)
2369 %mainlib libquadmath.so.%{libquadmath_sover}*
2371 %if %{separate_biarch}
2372 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}%{separate_biarch_suffix}
2373 %defattr(-,root,root)
2374 %biarchlib libquadmath.so.%{libquadmath_sover}*
2379 %if %{build_with_mudflap}
2380 %files -n libmudflap48
2381 %defattr(-,root,root)
2382 %mainlib libmudflap.so.%{libmudflap_sover}*
2383 %mainlib libmudflapth.so.%{libmudflap_sover}*
2385 %if %{separate_biarch}
2386 %files -n libmudflap48%{separate_biarch_suffix}
2387 %defattr(-,root,root)
2388 %biarchlib libmudflap.so.%{libmudflap_sover}*
2389 %biarchlib libmudflapth.so.%{libmudflap_sover}*
2394 %defattr(-,root,root)
2395 %doc %{_infodir}/*.gz
2398 %defattr(-,root,root)
2400 %dir %{_libdir}/gcc/%{GCCDIST}
2402 %{_prefix}/bin/cpp%{binsuffix}
2405 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2409 %defattr(-,root,root)
2411 %{libsubdir}/include/objc
2412 %versmainlib libobjc.a
2413 %versmainlib libobjc.so
2415 %if %{separate_biarch}
2416 %files objc%{separate_biarch_suffix}
2417 %defattr(-,root,root)
2418 %versbiarchlib libobjc.a
2419 %versbiarchlib libobjc.so
2422 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}
2423 %defattr(-,root,root)
2424 %mainlib libobjc.so.%{libobjc_sover}*
2426 %if %{separate_biarch}
2427 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}%{separate_biarch_suffix}
2428 %defattr(-,root,root)
2429 %biarchlib libobjc.so.%{libobjc_sover}*
2436 %defattr(-,root,root)
2437 %{libsubdir}/cc1objplus
2443 %defattr(-,root,root)
2445 %dir %{_libdir}/gcc/%{GCCDIST}
2447 %{_prefix}/bin/gnat*
2448 %dir %{versmainlibdir}/adainclude
2449 %dir %{versmainlibdir}/adalib
2450 %{versmainlibdir}/adainclude
2451 %{versmainlibdir}/adalib/*.ali
2452 %{versmainlibdir}/adalib/*.a
2453 %{versmainlibdir}/adalib/libgnarl.so
2454 %{versmainlibdir}/adalib/libgnat.so
2455 %{versmainlibdir}/gnat1
2457 %if %{separate_biarch}
2458 %files ada%{separate_biarch_suffix}
2459 %defattr(-,root,root)
2460 %dir %{versmainlibdirbi}/adainclude
2461 %dir %{versmainlibdirbi}/adalib
2462 %{versmainlibdirbi}/adainclude
2463 %{versmainlibdirbi}/adalib/*.ali
2464 %{versmainlibdirbi}/adalib/*.a
2465 %{versmainlibdirbi}/adalib/libgnarl.so
2466 %{versmainlibdirbi}/adalib/libgnat.so
2470 %defattr(-,root,root)
2471 %mainlib libgnarl-*.so
2472 %mainlib libgnat-*.so
2474 %if %{separate_biarch}
2475 %files -n libada48%{separate_biarch_suffix}
2476 %defattr(-,root,root)
2477 %biarchlib libgnarl-*.so
2478 %biarchlib libgnat-*.so
2484 %if 0%{?building_libjava:1}
2485 %files -n gcc48-java
2486 %defattr(-,root,root)
2487 %{_prefix}/bin/gcj%{binsuffix}
2488 %{_prefix}/bin/gcjh%{binsuffix}
2489 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2490 %{_prefix}/bin/jcf-dump%{binsuffix}
2491 %{_prefix}/bin/jv-convert%{binsuffix}
2492 %{_prefix}/bin/gc-analyze%{binsuffix}
2493 %{_prefix}/bin/aot-compile%{binsuffix}
2494 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2496 %{libsubdir}/jvgenmain
2497 %{libsubdir}/ecj.jar
2499 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2500 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2501 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2502 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2503 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2504 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2505 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2506 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2511 %if %{build_libjava}
2513 %defattr(-,root,root)
2514 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
2516 %dir %{_libdir}/gcc/%{GCCDIST}
2518 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/classmap.db
2519 # We usually do not multilib libjava
2520 %if %{biarch_libjava}
2521 %versbiarchlib libgcj.la
2522 %biarchlib libgcj.so.*
2523 %biarchlib libgij.so.*
2524 %biarchlib libgcj-tools.so.*
2526 %versmainlib libgcj.la
2527 %mainlib libgcj.so.*
2528 %mainlib libgij.so.*
2529 %mainlib libgcj-tools.so.*
2531 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.la
2532 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.so
2533 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.la
2534 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.so
2536 %files -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
2537 %defattr(-,root,root)
2538 %if %{biarch_libjava}
2539 %biarchlib libgcj_bc.so.%{libgcj_bc_sover}*
2541 %mainlib libgcj_bc.so.%{libgcj_bc_sover}*
2544 %files -n libgcj48-jar
2545 %defattr(-,root,root)
2546 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2547 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2549 %files -n libgcj48-devel
2550 %defattr(-,root,root)
2551 %dir %{_prefix}/include/c++
2553 %dir %{libsubdir}/include
2555 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2556 %{libsubdir}/include/jawt.h
2557 %{libsubdir}/include/jawt_md.h
2558 %{libsubdir}/include/jni.h
2559 %{libsubdir}/include/jni_md.h
2560 %{libsubdir}/include/jvmpi.h
2567 %{libsubdir}/include/gcj
2568 %if %{biarch_libjava}
2569 %versbiarchlib libgcj.so
2570 %versbiarchlib libgcj.spec
2571 %versbiarchlib libgcj-tools.so
2572 %versbiarchlib libgij.so
2573 %versbiarchlib libgcj_bc.so
2575 %versmainlib libgcj.so
2576 %versmainlib libgcj.spec
2577 %versmainlib libgcj-tools.so
2578 %versmainlib libgij.so
2579 %versmainlib libgcj_bc.so
2583 %defattr(-,root,root)
2584 %{_prefix}/bin/gij%{binsuffix}
2585 %{_prefix}/bin/gappletviewer%{binsuffix}
2586 %{_prefix}/bin/gjar%{binsuffix}
2587 %{_prefix}/bin/gjarsigner%{binsuffix}
2588 %{_prefix}/bin/gjavah%{binsuffix}
2589 %{_prefix}/bin/gkeytool%{binsuffix}
2590 %{_prefix}/bin/gnative2ascii%{binsuffix}
2591 %{_prefix}/bin/gorbd%{binsuffix}
2592 %{_prefix}/bin/grmic%{binsuffix}
2593 %{_prefix}/bin/grmid%{binsuffix}
2594 %{_prefix}/bin/grmiregistry%{binsuffix}
2595 %{_prefix}/bin/gserialver%{binsuffix}
2596 %{_prefix}/bin/gtnameserv%{binsuffix}
2597 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2598 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2599 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2600 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2601 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2602 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2603 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2604 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2605 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2606 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2607 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2608 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2609 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2614 %if 0%{?building_libffi:1}
2615 %files -n libffi%{libffi_sover}%{libffi_suffix}
2616 %defattr(-,root,root)
2617 %mainlib libffi.so.%{libffi_sover}*
2619 %if %{separate_biarch}
2620 %files -n libffi%{libffi_sover}%{libffi_suffix}%{separate_biarch_suffix}
2621 %defattr(-,root,root)
2622 %biarchlib libffi.so.%{libffi_sover}*
2625 %post -n libffi48-devel
2626 %install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2627 %postun -n libffi48-devel
2628 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2630 %files -n libffi48-devel
2631 %defattr(-,root,root)
2632 %{_prefix}/include/ffi.h
2633 %{_prefix}/include/ffitarget.h
2636 %{_libdir}/pkgconfig/libffi.pc
2637 %doc %{_infodir}/libffi%{binsuffix}.info.gz
2638 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2639 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2640 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2641 %doc %{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3.gz
2643 %if %{separate_biarch}
2644 %files -n libffi48-devel%{separate_biarch_suffix}
2645 %defattr(-,root,root)
2646 %biarchlib libffi.so
2652 %if 0%{?run_tests:1}
2653 %files -n gcc48-testresults
2654 %defattr(-,root,root)
2655 %doc testresults/test_summary.txt
2656 %doc testresults/*.sum
2657 %doc testresults/*.log