3 # Ada currently fails to build on a few platforms, enable it only
5 # Note that AdaCore only supports %ix86, x86_64 and ia64
7 %define build_ada !0%{?building_libjava:1}%{?building_libffi:1}
12 %define quadmath_arch %ix86 x86_64 ia64
14 # We don't want to build java
17 %define build_libjava 0
20 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
24 %define build_fortran 1
26 %define build_objcp !0%{?building_libjava:1}%{?building_libffi:1}
27 %define build_with_mudflap 0
38 # For optional compilers only build C, C++ and Fortran
39 ##%if 0%{?build_optional_compiler:1}%{?build_optional_compiler_languages:1}
40 %if 0%{!?building_libffi:1}
43 %define build_libjava 0
52 BuildRequires: gettext-tools
53 BuildRequires: makeinfo
54 BuildRequires: glibc-devel-32bit
55 BuildRequires: mpc-devel
56 BuildRequires: mpfr-devel
58 BuildRequires: texinfo
59 BuildRequires: zlib-devel
60 %ifarch %ix86 x86_64 %arm
61 BuildRequires: cloog-devel
62 BuildRequires: ppl-devel
65 %define hostsuffix -4.7
66 BuildRequires: gcc47-ada
68 %if 0%{?building_libjava:1}%{?building_testsuite:1}
69 BuildRequires: fastjar
72 %if 0%{?building_libffi:1}
73 BuildRequires: pkg-config
76 BuildRequires: libunwind-devel
79 BuildRequires: dejagnu
84 # Define version number of libgcc_s
91 # We support building the nof libraries, but don't want this in the
98 %define separate_bi32 0
99 %define separate_bi64 0
101 %define separate_bi32 1
104 # Define two macros to trigger -32bit or -64bit package variants
105 %define separate_biarch 0
107 %define separate_biarch 1
108 %define separate_biarch_suffix -32bit
111 %define separate_biarch 1
112 %define separate_biarch_suffix -64bit
116 # 64-bit is primary build target
117 %define build_primary_64bit 1
119 %define build_primary_64bit 0
122 %define biarch_libjava 0
125 %define biarch_targets x86_64
127 URL: http://gcc.gnu.org/
130 %define gcc_version %(echo %version | sed 's/_.*//')
131 %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1-2)
132 %define snapshot_date %(echo %version | sed 's/[34]\.[0-9]\.[0-6]//' | sed 's/_/-/')
133 %define binsuffix -4.7
136 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
137 Requires: binutils glibc-devel
138 Requires: cpp47 = %{version}-%{release}
139 %if 0%{!?build_optional_compiler:1}
140 Requires: libgcc%{libgcc_s} >= %{version}-%{release}
141 Requires: libgomp1 >= %{version}-%{release}
142 %if %{build_with_mudflap}
143 Requires: libmudflap0 >= %{version}-%{release}
144 Requires: libmudflapth0 >= %{version}-%{release}
147 Requires: libgcc47 = %{version}-%{release}
148 Requires: libgomp47 = %{version}-%{release}
153 BuildRoot: %{_tmppath}/%{name}-%{version}-build
154 #Source: gcc-%{gcc_version}%{snapshot_date}.tar.bz2
155 Source: gcc-%{version}.tar.bz2
158 Source2: libgcj47-rpmlintrc
159 Source3: gcc47-rpmlintrc
161 Source6: baselibs.conf
162 # Patches auto-generated by git-buildpackage:
163 Patch0: 0001-dir-version.patch
164 Patch1: 0002-textdomain.patch
165 Patch2: 0003-rename-info-files.patch
166 Patch3: 0004-ARM-linker.patch
168 # GCC-TESTSUITE-DELETE-BEGIN
169 # LIBFFI-DELETE-BEGIN
170 # LIBJAVA-DELETE-BEGIN
171 Group: Development/Languages/C and C++
172 Summary: The GNU C Compiler and Support Files
176 Core package for the GNU Compiler Collection, including the C language
179 Language frontends other than C are split to different sub-packages,
180 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
186 %package -n gcc47-32bit
187 Summary: The GNU C Compiler 32bit support
188 Group: Development/Languages/C and C++
189 Requires: gcc47 = %{version}-%{release}
190 %if 0%{!?build_optional_compiler:1}
191 Requires: libgcc%{libgcc_s}-32bit >= %{version}-%{release}
192 Requires: libgomp1-32bit >= %{version}-%{release}
193 %if %{build_with_mudflap}
194 Requires: libmudflap0-32bit >= %{version}-%{release}
195 Requires: libmudflapth0-32bit >= %{version}-%{release}
198 Requires: libgcc47-32bit = %{version}-%{release}
199 Requires: libgomp47-32bit = %{version}-%{release}
201 Requires: glibc-devel-32bit
203 %description -n gcc47-32bit
204 This package contains 32bit support for the GNU Compiler Collection.
206 %package -n gcc47-64bit
207 Summary: The GNU C Compiler 64bit support
208 Group: Development/Languages/C and C++
209 Requires: gcc47 = %{version}-%{release}
210 %if 0%{!?build_optional_compiler:1}
211 Requires: libgcc%{libgcc_s}-64bit >= %{version}-%{release}
212 Requires: libgomp1-64bit >= %{version}-%{release}
213 %if %{build_with_mudflap}
214 Requires: libmudflap0-64bit >= %{version}-%{release}
215 Requires: libmudflapth0-64bit >= %{version}-%{release}
218 Requires: libgcc47-64bit = %{version}-%{release}
219 Requires: libgomp47-64bit = %{version}-%{release}
221 Requires: glibc-devel-64bit
223 %description -n gcc47-64bit
224 This package contains 64bit support for the GNU Compiler Collection.
228 Summary: Locale Data for the GNU Compiler Collection
230 Group: Development/Languages/C and C++
231 Requires: gcc47 = %{version}-%{release}
234 Locale data for the GNU Compiler Collection (GCC) to give error message
235 in the current locale.
239 Summary: The GNU C++ Compiler
241 Group: Development/Languages/C and C++
242 Requires: gcc47 = %{version}-%{release}
243 Requires: libstdc++47-devel = %{version}-%{release}
246 This package contains the GNU compiler for C++.
250 %package -n libstdc++47-devel
251 Summary: Include Files and Libraries mandatory for Development
252 License: GPL-3.0-with-GCC-exception
253 Group: Development/Languages/C and C++
254 %if 0%{!?build_optional_compiler:1}
255 Requires: libstdc++6 >= %{version}-%{release}
257 Requires: libstdc++47 = %{version}-%{release}
259 Requires: glibc-devel
261 Requires: libunwind-devel
264 %description -n libstdc++47-devel
265 This package contains all the headers and libraries of the standard C++
266 library. It is needed for compiling C++ code.
270 %package -n libstdc++47-devel-32bit
271 Summary: Include Files and Libraries mandatory for Development
272 License: GPL-3.0-with-GCC-exception
273 Group: Development/Languages/C and C++
274 %if 0%{!?build_optional_compiler:1}
275 Requires: libstdc++6-32bit >= %{version}-%{release}
277 Requires: libstdc++47-32bit = %{version}-%{release}
279 Requires: glibc-devel-32bit
281 Requires: libunwind-devel
284 %description -n libstdc++47-devel-32bit
285 This package contains all the headers and libraries of the standard C++
286 library. It is needed for compiling C++ code.
290 %package -n libstdc++47-devel-64bit
291 Summary: Include Files and Libraries mandatory for Development
292 License: GPL-3.0-with-GCC-exception
293 Group: Development/Languages/C and C++
294 %if 0%{!?build_optional_compiler:1}
295 Requires: libstdc++6-64bit >= %{version}-%{release}
297 Requires: libstdc++47-64bit = %{version}-%{release}
299 Requires: glibc-devel-64bit
301 Requires: libunwind-devel
304 %description -n libstdc++47-devel-64bit
305 This package contains all the headers and libraries of the standard C++
306 library. It is needed for compiling C++ code.
309 %package -n libstdc++47-doc
310 Summary: Documentation for the GNU C++ standard library
312 Group: Documentation/HTML
315 %description -n libstdc++47-doc
316 Extensive HTML documentation for the GNU C++ standard library.
322 Summary: C compiler runtime library
323 License: GPL-3.0-with-GCC-exception
325 %if 0%{!?build_optional_compiler:1}
326 Provides: libgcc%{libgcc_s} = %{version}-%{release}
327 Conflicts: libgcc%{libgcc_s} < %{version}-%{release}
332 %description -n libgcc47
333 Libgcc is needed for dynamically linked C programs.
343 %package -n libgcc47-32bit
344 Summary: C compiler runtime library
345 License: GPL-3.0-with-GCC-exception
347 %if 0%{!?build_optional_compiler:1}
348 Provides: libgcc%{libgcc_s}-32bit = %{version}-%{release}
349 Conflicts: libgcc%{libgcc_s}-32bit < %{version}-%{release}
354 %description -n libgcc47-32bit
355 Libgcc is needed for dynamically linked C programs.
357 %post -n libgcc47-32bit
360 %postun -n libgcc47-32bit
365 %package -n libgcc47-64bit
366 Summary: C compiler runtime library
367 License: GPL-3.0-with-GCC-exception
369 %if 0%{!?build_optional_compiler:1}
370 Provides: libgcc%{libgcc_s}-64bit = %{version}-%{release}
371 Conflicts: libgcc%{libgcc_s}-64bit < %{version}-%{release}
376 %description -n libgcc47-64bit
377 Libgcc is needed for dynamically linked C programs.
379 %post -n libgcc47-64bit
382 %postun -n libgcc47-64bit
388 %package -n libgomp47
389 Summary: The GNU compiler collection OpenMP runtime library
390 License: GPL-3.0-with-GCC-exception
392 %if 0%{!?build_optional_compiler:1}
393 Provides: libgomp1 = %{version}-%{release}
394 Conflicts: libgomp1 < %{version}-%{release}
399 %description -n libgomp47
400 This is the OpenMP runtime library needed by OpenMP enabled programs
401 that were built with the -fopenmp compiler option and by programs that
402 were auto-parallelized via the -ftree-parallelize-loops compiler
414 %package -n libgomp47-32bit
415 Summary: The GNU compiler collection OpenMP runtime library
416 License: GPL-3.0-with-GCC-exception
418 %if 0%{!?build_optional_compiler:1}
419 Provides: libgomp1-32bit = %{version}-%{release}
420 Conflicts: libgomp1-32bit < %{version}-%{release}
425 %description -n libgomp47-32bit
426 This is the OpenMP runtime library needed by OpenMP enabled programs
427 that were built with the -fopenmp compiler option and by programs that
428 were auto-parallelized via the -ftree-parallelize-loops compiler
432 %post -n libgomp47-32bit
435 %postun -n libgomp47-32bit
440 %package -n libgomp47-64bit
441 Summary: The GNU compiler collection OpenMP runtime library
442 License: GPL-3.0-with-GCC-exception
444 %if 0%{!?build_optional_compiler:1}
445 Provides: libgomp1-64bit = %{version}-%{release}
446 Conflicts: libgomp1-64bit < %{version}-%{release}
451 %description -n libgomp47-64bit
452 This is the OpenMP runtime library needed by OpenMP enabled programs
453 that were built with the -fopenmp compiler option and by programs that
454 were auto-parallelized via the -ftree-parallelize-loops compiler
458 %post -n libgomp47-64bit
461 %postun -n libgomp47-64bit
467 %package -n libstdc++47
468 Summary: The standard C++ shared library
469 License: GPL-3.0-with-GCC-exception
470 Group: System/Libraries
471 %if 0%{!?build_optional_compiler:1}
472 Provides: libstdc++6 = %{version}-%{release}
473 Conflicts: libstdc++6 < %{version}-%{release}
478 %description -n libstdc++47
479 The standard C++ library, needed for dynamically linked C++ programs.
485 %postun -n libstdc++47
490 %package -n libstdc++47-32bit
491 Summary: The standard C++ shared library
492 License: GPL-3.0-with-GCC-exception
493 Group: System/Libraries
494 %if 0%{!?build_optional_compiler:1}
495 Provides: libstdc++6-32bit = %{version}-%{release}
496 Conflicts: libstdc++6-32bit < %{version}-%{release}
501 %description -n libstdc++47-32bit
502 The standard C++ library, needed for dynamically linked C++ programs.
505 %post -n libstdc++47-32bit
508 %postun -n libstdc++47-32bit
513 %package -n libstdc++47-64bit
514 Summary: The standard C++ shared library
515 License: GPL-3.0-with-GCC-exception
516 Group: System/Libraries
517 %if 0%{!?build_optional_compiler:1}
518 Provides: libstdc++6-64bit = %{version}-%{release}
519 Conflicts: libstdc++6-64bit < %{version}-%{release}
524 %description -n libstdc++47-64bit
525 The standard C++ library, needed for dynamically linked C++ programs.
528 %post -n libstdc++47-64bit
531 %postun -n libstdc++47-64bit
537 Summary: Documentation for the GNU compiler collection
539 Group: Documentation/Other
543 GNU info-pages for the GNU compiler collection covering both user-level
544 and internals documentation.
550 Summary: GNU Objective C Compiler
552 Group: Development/Languages/Other
553 Requires: gcc47 = %{version}-%{release}
554 Requires: libobjc2 >= %{version}-%{release}
557 This package contains the GNU Objective C compiler. Objective C is an
558 object oriented language, created by Next Inc. and used in their
559 Nextstep OS. The source code is available in the gcc package.
564 Summary: GNU Objective C Compiler
566 Group: Development/Languages/Other
567 Requires: gcc47 = %{version}-%{release}
568 Requires: libobjc2-32bit >= %{version}-%{release}
570 %description objc-32bit
571 This package contains the GNU Objective C compiler. Objective C is an
572 object oriented language, created by Next Inc. and used in their
573 Nextstep OS. The source code is available in the gcc package.
578 Summary: GNU Objective C Compiler
580 Group: Development/Languages/Other
581 Requires: gcc47 = %{version}-%{release}
582 Requires: libobjc2-64bit >= %{version}-%{release}
584 %description objc-64bit
585 This package contains the GNU Objective C compiler. Objective C is an
586 object oriented language, created by Next Inc. and used in their
587 Nextstep OS. The source code is available in the gcc package.
592 %package -n libobjc47
593 Summary: Library for the GNU Objective C Compiler
594 License: GPL-3.0-with-GCC-exception
595 Group: Development/Libraries/Other
596 Provides: libobjc2 = %{version}-%{release}
597 Conflicts: libobjc2 < %{version}-%{release}
599 %description -n libobjc47
600 The library for the GNU Objective C compiler.
610 %package -n libobjc47-32bit
611 Summary: Library for the GNU Objective C Compiler
612 License: GPL-3.0-with-GCC-exception
613 Group: Development/Libraries/Other
614 Provides: libobjc2-32bit = %{version}-%{release}
615 Conflicts: libobjc2-32bit < %{version}-%{release}
617 %description -n libobjc47-32bit
618 The library for the GNU Objective C compiler.
620 %post -n libobjc47-32bit
623 %postun -n libobjc47-32bit
628 %package -n libobjc47-64bit
629 Summary: Library for the GNU Objective C Compiler
630 License: GPL-3.0-with-GCC-exception
631 Group: Development/Libraries/Other
632 Provides: libobjc2-64bit = %{version}-%{release}
633 Conflicts: libobjc2-64bit < %{version}-%{release}
635 %description -n libobjc47-64bit
636 The library for the GNU Objective C compiler.
638 %post -n libobjc47-64bit
641 %postun -n libobjc47-64bit
646 Summary: GNU Objective C++ Compiler
648 Group: Development/Languages/Other
649 Requires: gcc47-objc = %{version}-%{release}
650 Requires: gcc47-c++ = %{version}-%{release}
653 This package contains the GNU Objective C++ compiler. Objective C++ is an
654 object oriented language, created by Next Inc. and used in their
655 Nextstep OS. The source code is available in the gcc package.
659 Summary: The GCC Preprocessor
661 Group: Development/Languages/C and C++
663 %description -n cpp47
664 This Package contains just the preprocessor that is used by the X11
671 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
673 Group: Development/Languages/Other
674 Requires: gcc47 = %{version}-%{release}
675 Requires: libada47 = %{version}-%{release}
678 This package contains an Ada95 compiler and associated development
679 tools based on the GNU GCC technology. Ada95 is the object oriented
680 successor of the Ada83 language. To build this package from source you
681 must have installed a binary version to bootstrap the compiler.
686 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
688 Group: Development/Languages/Other
689 Requires: gcc47-32bit = %{version}-%{release}
690 Requires: libada47-32bit = %{version}-%{release}
692 %description ada-32bit
693 This package contains an Ada95 compiler and associated development
694 tools based on the GNU GCC technology. Ada95 is the object oriented
695 successor of the Ada83 language. To build this package from source you
696 must have installed a binary version to bootstrap the compiler.
701 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
703 Group: Development/Languages/Other
704 Requires: gcc47-64bit = %{version}-%{release}
705 Requires: libada47-64bit = %{version}-%{release}
707 %description ada-64bit
708 This package contains an Ada95 compiler and associated development
709 tools based on the GNU GCC technology. Ada95 is the object oriented
710 successor of the Ada83 language. To build this package from source you
711 must have installed a binary version to bootstrap the compiler.
717 Summary: GNU Ada Runtime Libraries
718 License: GPL-3.0-with-GCC-exception
719 Group: System/Libraries
720 Provides: libgnarl-4_7 = %{version}-%{release}
721 Conflicts: libgnarl-4_7 < %{version}-%{release}
722 Provides: libgnat-4_7 = %{version}-%{release}
723 Conflicts: libgnat-4_7 < %{version}-%{release}
725 %description -n libada47
726 This package contains the shared libraries required to run programs
727 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
728 shared libraries. It also contains the shared libraries for the
729 Implementation of the Ada Semantic Interface Specification (ASIS), the
730 implementation of Distributed Systems Programming (GLADE) and the Posix
731 1003.5 Binding (Florist).
741 %package -n libada47-32bit
742 Summary: GNU Ada Runtime Libraries
743 License: GPL-3.0-with-GCC-exception
744 Group: System/Libraries
745 Provides: libgnarl-4_7-32bit = %{version}-%{release}
746 Conflicts: libgnarl-4_7-32bit < %{version}-%{release}
747 Provides: libgnat-4_7-32bit = %{version}-%{release}
748 Conflicts: libgnat-4_7-32bit < %{version}-%{release}
750 %description -n libada47-32bit
751 This package contains the shared libraries required to run programs
752 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
753 shared libraries. It also contains the shared libraries for the
754 Implementation of the Ada Semantic Interface Specification (ASIS), the
755 implementation of Distributed Systems Programming (GLADE) and the Posix
756 1003.5 Binding (Florist).
758 %post -n libada47-32bit
761 %postun -n libada47-32bit
766 %package -n libada47-64bit
767 Summary: GNU Ada Runtime Libraries
768 License: GPL-3.0-with-GCC-exception
769 Group: System/Libraries
770 Provides: libgnarl-4_7-64bit = %{version}-%{release}
771 Conflicts: libgnarl-4_7-64bit < %{version}-%{release}
772 Provides: libgnat-4_7-64bit = %{version}-%{release}
773 Conflicts: libgnat-4_7-64bit < %{version}-%{release}
775 %description -n libada47-64bit
776 This package contains the shared libraries required to run programs
777 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
778 shared libraries. It also contains the shared libraries for the
779 Implementation of the Ada Semantic Interface Specification (ASIS), the
780 implementation of Distributed Systems Programming (GLADE) and the Posix
781 1003.5 Binding (Florist).
783 %post -n libada47-64bit
786 %postun -n libada47-64bit
793 Summary: The GNU Fortran Compiler and Support Files
795 Group: Development/Languages/Fortran
796 Requires: gcc47 = %{version}-%{release}
797 %if 0%{!?build_optional_compiler:1}
798 Requires: libgfortran3 >= %{version}-%{release}
799 %ifarch %quadmath_arch
800 Requires: libquadmath0 >= %{version}-%{release}
803 Requires: libgfortran47 = %{version}-%{release}
804 %ifarch %quadmath_arch
805 Requires: libquadmath47 = %{version}-%{release}
810 This is the Fortran compiler of the GNU Compiler Collection (GCC).
814 %package fortran-32bit
815 Summary: The GNU Fortran Compiler and Support Files
817 Group: Development/Languages/Fortran
818 Requires: gcc47 = %{version}-%{release}
819 %if 0%{!?build_optional_compiler:1}
820 Requires: libgfortran3-32bit >= %{version}-%{release}
821 %ifarch %quadmath_arch
822 Requires: libquadmath0-32bit >= %{version}-%{release}
825 Requires: libgfortran47-32bit = %{version}-%{release}
826 %ifarch %quadmath_arch
827 Requires: libquadmath47-32bit = %{version}-%{release}
831 %description fortran-32bit
832 This is the Fortran compiler of the GNU Compiler Collection (GCC).
836 %package fortran-64bit
837 Summary: The GNU Fortran Compiler and Support Files
839 Group: Development/Languages/Fortran
840 Requires: gcc47 = %{version}-%{release}
841 %if 0%{!?build_optional_compiler:1}
842 Requires: libgfortran3-64bit >= %{version}-%{release}
843 %ifarch %quadmath_arch
844 Requires: libquadmath0-64bit >= %{version}-%{release}
847 Requires: libgfortran47-64bit = %{version}-%{release}
848 %ifarch %quadmath_arch
849 Requires: libquadmath47-64bit = %{version}-%{release}
853 %description fortran-64bit
854 This is the Fortran compiler of the GNU Compiler Collection (GCC).
859 %package -n libgfortran47
860 Summary: The GNU Fortran Compiler Runtime Library
861 License: GPL-3.0-with-GCC-exception
862 Group: Development/Languages/Fortran
863 %if 0%{!?build_optional_compiler:1}
864 Provides: libgfortran3 = %{version}-%{release}
865 Conflicts: libgfortran3 < %{version}-%{release}
866 %ifarch %quadmath_arch
867 Requires: libquadmath0 >= %{version}-%{release}
870 %ifarch %quadmath_arch
871 Requires: libquadmath47 = %{version}-%{release}
876 %description -n libgfortran47
877 The runtime library needed to run programs compiled with the Fortran compiler
878 of the GNU Compiler Collection (GCC).
880 %post -n libgfortran47
883 %postun -n libgfortran47
888 %package -n libgfortran47-32bit
889 Summary: The GNU Fortran Compiler Runtime Library
890 License: GPL-3.0-with-GCC-exception
891 Group: Development/Languages/Fortran
892 %if 0%{!?build_optional_compiler:1}
893 Provides: libgfortran3-32bit = %{version}-%{release}
894 Conflicts: libgfortran3-32bit < %{version}-%{release}
895 %ifarch %quadmath_arch
896 Requires: libquadmath0-32bit >= %{version}-%{release}
899 %ifarch %quadmath_arch
900 Requires: libquadmath47-32bit = %{version}-%{release}
905 %description -n libgfortran47-32bit
906 The runtime library needed to run programs compiled with the Fortran compiler
907 of the GNU Compiler Collection (GCC).
909 %post -n libgfortran47-32bit
912 %postun -n libgfortran47-32bit
917 %package -n libgfortran47-64bit
918 Summary: The GNU Fortran Compiler Runtime Library
919 License: GPL-3.0-with-GCC-exception
920 Group: Development/Languages/Fortran
921 %if 0%{!?build_optional_compiler:1}
922 Provides: libgfortran3-64bit = %{version}-%{release}
923 Conflicts: libgfortran3-64bit < %{version}-%{release}
924 %ifarch %quadmath_arch
925 Requires: libquadmath0-64bit >= %{version}-%{release}
928 %ifarch %quadmath_arch
929 Requires: libquadmath47-64bit = %{version}-%{release}
934 %description -n libgfortran47-64bit
935 The runtime library needed to run programs compiled with the Fortran compiler
936 of the GNU Compiler Collection (GCC).
938 %post -n libgfortran47-64bit
941 %postun -n libgfortran47-64bit
947 %package -n libquadmath47
948 Summary: The GNU Fortran Compiler Quadmath Runtime Library
950 Group: Development/Languages/Fortran
951 %if 0%{!?build_optional_compiler:1}
952 Provides: libquadmath0 = %{version}-%{release}
953 Conflicts: libquadmath0 < %{version}-%{release}
958 %description -n libquadmath47
959 The runtime library needed to run programs compiled with the Fortran compiler
960 of the GNU Compiler Collection (GCC) and quadruple precision floating point
963 %post -n libquadmath47
966 %postun -n libquadmath47
971 %package -n libquadmath47-32bit
972 Summary: The GNU Fortran Compiler Quadmath Runtime Library
974 Group: Development/Languages/Fortran
975 %if 0%{!?build_optional_compiler:1}
976 Provides: libquadmath0-32bit = %{version}-%{release}
977 Conflicts: libquadmath0-32bit < %{version}-%{release}
982 %description -n libquadmath47-32bit
983 The runtime library needed to run programs compiled with the Fortran compiler
984 of the GNU Compiler Collection (GCC) and quadruple precision floating point
987 %post -n libquadmath47-32bit
990 %postun -n libquadmath47-32bit
995 %package -n libquadmath47-64bit
996 Summary: The GNU Fortran Compiler Quadmath Runtime Library
998 Group: Development/Languages/Fortran
999 %if 0%{!?build_optional_compiler:1}
1000 Provides: libquadmath0-64bit = %{version}-%{release}
1001 Conflicts: libquadmath0-64bit < %{version}-%{release}
1006 %description -n libquadmath47-64bit
1007 The runtime library needed to run programs compiled with the Fortran compiler
1008 of the GNU Compiler Collection (GCC) and quadruple precision floating point
1011 %post -n libquadmath47-64bit
1014 %postun -n libquadmath47-64bit
1020 %package -n libmudflap47
1021 Summary: The Mudflap Extension Runtime Library
1022 License: GPL-3.0-with-GCC-exception
1023 Group: Development/Languages/C and C++
1024 Provides: libmudflap0 = %{version}-%{release}
1025 Conflicts: libmudflap0 < %{version}-%{release}
1026 Provides: libmudflapth0 = %{version}-%{release}
1027 Conflicts: libmudflapth0 < %{version}-%{release}
1029 %description -n libmudflap47
1030 This is the Mudflap Extension Runtime Library.
1032 %post -n libmudflap47
1035 %postun -n libmudflap47
1040 %package -n libmudflap47-32bit
1041 Summary: The Mudflap Extension Runtime Library
1042 License: GPL-3.0-with-GCC-exception
1043 Group: Development/Languages/C and C++
1044 Provides: libmudflap0-32bit = %{version}-%{release}
1045 Conflicts: libmudflap0-32bit < %{version}-%{release}
1046 Provides: libmudflapth0-32bit = %{version}-%{release}
1047 Conflicts: libmudflapth0-32bit < %{version}-%{release}
1049 %description -n libmudflap47-32bit
1050 This is the Mudflap Extension Runtime Library.
1052 %post -n libmudflap47-32bit
1055 %postun -n libmudflap47-32bit
1060 %package -n libmudflap47-64bit
1061 Summary: The Mudflap Extension Runtime Library
1062 License: GPL-3.0-with-GCC-exception
1063 Group: Development/Languages/C and C++
1064 Provides: libmudflap0-64bit = %{version}-%{release}
1065 Conflicts: libmudflap0-64bit < %{version}-%{release}
1066 Provides: libmudflapth0-64bit = %{version}-%{release}
1067 Conflicts: libmudflapth0-64bit < %{version}-%{release}
1069 %description -n libmudflap47-64bit
1070 This is the Mudflap Extension Runtime Library.
1072 %post -n libmudflap47-64bit
1075 %postun -n libmudflap47-64bit
1080 %package -n libgcj47
1081 # LIBJAVA-DELETE-END
1082 Summary: Java Runtime Library for gcc
1083 License: GPL-2.0-with-classpath-exception
1084 Group: System/Libraries
1085 %define gcj_sover 13
1086 Provides: libgcj%{gcj_sover} = %{version}-%{release}
1087 Conflicts: libgcj%{gcj_sover} < %{version}-%{release}
1088 Provides: libgij%{gcj_sover} = %{version}-%{release}
1089 Conflicts: libgij%{gcj_sover} < %{version}-%{release}
1090 Provides: libgcj-tools%{gcj_sover} = %{version}-%{release}
1091 Conflicts: libgcj-tools%{gcj_sover} < %{version}-%{release}
1093 %description -n libgcj47
1094 This library is needed if you want to use the GNU Java compiler, gcj.
1095 Source code for this package is in gcc.
1104 %package -n gcc47-java
1105 Summary: The GNU Java Compiler
1107 Group: Development/Languages/Java
1108 Requires: gcc47 = %{version}
1109 Requires: libgcj47-devel = %{version}-%{release}
1111 %description -n gcc47-java
1112 The Java compiler from the GCC-tools-suite.
1115 %package -n libgcj_bc47
1116 Summary: Fake library for BC-ABI compatibility.
1117 License: GPL-2.0-with-classpath-exception
1118 Group: Development/Libraries/Java
1119 Provides: libgcj_bc1 = %{version}-%{release}
1120 Conflicts: libgcj_bc1 < %{version}-%{release}
1121 # libgcj_bc is special in that it just contains a symlink to
1122 # a proper libgcj version. So require that library and add
1123 # provides for the shlib version as created at link time
1124 Requires: libgcj%{gcj_sover}
1126 Provides: libgcj_bc.so.1()(64bit)
1128 Provides: libgcj_bc.so.1
1132 %description -n libgcj_bc47
1133 A fake library that is used at link time only. It ensures that
1134 binaries built with the BC-ABI link against a constant SONAME.
1135 This way, BC-ABI binaries continue to work if the SONAME underlying
1139 %package -n libgcj47-jar
1140 Summary: Java runtime library (jar files).
1141 License: GPL-2.0-with-classpath-exception
1142 Group: Development/Libraries/Java
1144 %description -n libgcj47-jar
1145 These are the jar files that go along with the gcj front end to gcc.
1148 %package -n libgcj47-devel
1149 Summary: Include Files and Libraries mandatory for Development.
1150 License: GPL-2.0-with-classpath-exception
1151 Group: Development/Libraries/Java
1152 Requires: libstdc++47-devel = %{version}
1153 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1154 Requires: libgcj_bc1 >= %{version}-%{release}
1155 Requires: libgcj47-jar = %{version}-%{release}
1156 Requires: gtk2-devel
1157 Requires: libart_lgpl-devel
1158 Requires: glibc-devel
1159 Requires: zlib-devel
1161 Requires: libunwind-devel
1164 %description -n libgcj47-devel
1165 This package contains all necessary include files and libraries needed
1166 to develop applications that require these.
1169 %package -n gcc47-gij
1170 Summary: Java Bytecode Interpreter for gcc
1171 License: GPL-2.0-with-classpath-exception
1172 Group: Development/Libraries/Java
1173 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1175 %description -n gcc47-gij
1176 This package contains the java bytecode interpreter gij and related tools.
1181 %package -n libffi47
1182 Summary: Foreign Function Interface library
1183 License: BSD-3-Clause
1184 Group: Development/Languages/C and C++
1185 Provides: g-wrap:/usr/lib/libffi.so.4
1186 Provides: libffi4 = %{version}-%{release}
1187 Conflicts: libffi4 < %{version}-%{release}
1189 %description -n libffi47
1190 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.
1200 %package -n libffi47-32bit
1201 Summary: Foreign Function Interface library
1202 License: BSD-3-Clause
1203 Group: Development/Languages/C and C++
1204 Provides: g-wrap:/usr/lib/libffi.so.4
1205 Provides: libffi4-32bit = %{version}-%{release}
1206 Conflicts: libffi4-32bit < %{version}-%{release}
1208 %description -n libffi47-32bit
1209 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.
1211 %post -n libffi47-32bit
1214 %postun -n libffi47-32bit
1219 %package -n libffi47-64bit
1220 Summary: Foreign Function Interface library
1221 License: BSD-3-Clause
1222 Group: Development/Languages/C and C++
1223 Provides: g-wrap:/usr/lib/libffi.so.4
1224 Provides: libffi4-64bit = %{version}-%{release}
1225 Conflicts: libffi4-64bit < %{version}-%{release}
1227 %description -n libffi47-64bit
1228 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.
1230 %post -n libffi47-64bit
1233 %postun -n libffi47-64bit
1239 %package -n libffi47-devel
1240 Summary: Foreign Function Interface library development files
1241 License: BSD 3-Clause
1242 Group: Development/Languages/C and C++
1243 Requires: libffi4 >= %{version}-%{release}
1244 Provides: libffi-devel = %{version}-%{release}
1245 Conflicts: libffi-devel < %{version}-%{release}
1247 %description -n libffi47-devel
1248 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.
1252 %package -n libffi47-devel-32bit
1253 Summary: Foreign Function Interface library development files
1254 License: BSD 3-Clause
1255 Group: Development/Languages/C and C++
1256 Requires: libffi4-32bit >= %{version}-%{release}
1257 Provides: libffi-devel-32bit = %{version}-%{release}
1258 Conflicts: libffi-devel-32bit < %{version}-%{release}
1260 %description -n libffi47-devel-32bit
1261 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.
1265 %package -n libffi47-devel-64bit
1266 Summary: Foreign Function Interface library development files
1267 License: BSD 3-Clause
1268 Group: Development/Languages/C and C++
1269 Requires: libffi4-64bit >= %{version}-%{release}
1270 Provides: libffi-devel-64bit = %{version}-%{release}
1271 Conflicts: libffi-devel-64bit < %{version}-%{release}
1273 %description -n libffi47-devel-64bit
1274 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.
1277 %package -n gcc47-testresults
1278 # GCC-TESTSUITE-DELETE-END
1279 Summary: Testsuite results
1280 License: SUSE-Public-Domain
1281 Group: Development/Languages/C and C++
1283 %description -n gcc47-testresults
1284 Results from running the gcc and target library testsuites.
1289 # Define the canonical target and host architecture
1290 # %gcc_target_arch is supposed to be the full target triple
1291 # %TARGET_ARCH is the canonicalized CPU part
1292 # %CONFIGURE_TARGET is the target triple used for --target=
1293 %if 0%{?gcc_target_arch:1}
1294 %define CONFIGURE_TARGET %{gcc_target_arch}
1295 %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/;")
1296 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1297 %define CONFIGURE_TARGET i586-tizen-linux
1299 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1300 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1302 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1303 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1305 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7el"
1306 %define CONFIGURE_TARGET armv7el-tizen-linux-gnueabi
1308 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5el"
1309 %define CONFIGURE_TARGET armv5el-tizen-linux-gnueabi
1312 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1314 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1316 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1319 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1321 %define GCCDIST %{HOST_ARCH}-tizen-linux
1324 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1325 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1329 # Versionspecific directories
1330 %define versmainlibdir %{libsubdir}
1331 %define versmainlibdirbi32 %{libsubdir}/32
1332 %define versmainlibdirbi64 %{libsubdir}/64
1333 %if %{build_primary_64bit}
1334 %define versmainlibdirbi %{versmainlibdirbi32}
1336 %define versmainlibdirbi %{versmainlibdirbi64}
1339 %if 0%{?build_optional_compiler:1}
1340 %define mainlibdir %{versmainlibdir}
1341 %define mainlibdirbi32 %{versmainlibdirbi32}
1342 %define mainlibdirbi64 %{versmainlibdirbi64}
1343 %define noflibdir %{versnoflibdir}
1344 %define mainlibdirbi %{versmainlibdirbi}
1346 %define mainlibdir %{_libdir}
1347 %define mainlibdirbi32 %{_prefix}/lib
1348 %define mainlibdirbi64 %{_prefix}/lib64
1349 %define noflibdir %{_prefix}/lib/nof
1350 %if %{build_primary_64bit}
1351 %define mainlibdirbi %{mainlibdirbi32}
1353 %define mainlibdirbi %{mainlibdirbi64}
1358 # Now define a few macros that make it easy to package libs and
1359 # related files just to the right package, without caring for the
1360 # exact path the files are in.
1361 # %mainlib package X from all dirs that belong to the main package
1362 # %biarchlib package X from all dirs that belong to the -32/64bit package
1363 # by default, nof libs go where the 32bit libs go.
1365 %define mainlib() %{mainlibdir}/%1\
1369 %define mainlib() %{mainlibdir}/%1\
1372 %define biarchlib() %{nil}
1374 %if !%{separate_biarch}
1376 %define mainlib() %{mainlibdir}/%1\
1381 %define mainlib() %{mainlibdir}/%1\
1387 %define biarchlib() %{mainlibdirbi}/%1\
1390 %define mainlib() %{mainlibdir}/%1\
1393 %define biarchlib() %{mainlibdirbi}/%1\
1400 %define versmainlib() %{versmainlibdir}/%1\
1401 %{versnoflibdir}/%1\
1404 %define versmainlib() %{versmainlibdir}/%1\
1407 %define versbiarchlib() %{nil}
1409 %if !%{separate_biarch}
1411 %define versmainlib() %{versmainlibdir}/%1\
1412 %{versmainlibdirbi}/%1\
1413 %{versnoflibdir}/%1\
1416 %define versmainlib() %{versmainlibdir}/%1\
1417 %{versmainlibdirbi}/%1\
1422 %define versbiarchlib() %{versmainlibdirbi}/%1\
1423 %{versnoflibdir}/%1\
1425 %define versmainlib() %{versmainlibdir}/%1\
1428 %define versbiarchlib() %{versmainlibdirbi}/%1\
1438 #%setup -q -n gcc-%{gcc_version}%{snapshot_date}
1439 %setup -q -n gcc-%{version}
1440 # 0001-dir-version.patch
1447 # Avoid rebuilding of generated files
1448 contrib/gcc_update --touch
1449 # Avoid fucking up testsuite results with Java and indirect dispatch
1450 export LD_AS_NEEDED=0
1451 # Split version file into version used for directories (X.Y) and
1452 # version to report with --version (X.Y.Z).
1453 # See also gcc-dir-version.patch.
1454 # Also decrement the patchlevel version by one
1455 if test `cat gcc/DEV-PHASE` == "prerelease"; then
1456 ( 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
1458 mv gcc/BASE-VER gcc/FULL-VER
1460 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
1462 rm -rf obj-%{GCCDIST}
1463 mkdir obj-%{GCCDIST}
1465 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
1466 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'`
1468 # -mcpu is superceded by -mtune but -mtune is not supported by
1469 # our bootstrap compiler. -mcpu gives a warning that stops
1470 # the build process, so remove it for now. Also remove all other
1471 # -march and -mtune flags. They are superseeded by proper
1472 # default compiler settings now.
1473 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'`
1475 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1476 # Kill all -march/tune/cpu because that screws building the target libs
1477 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
1479 # Replace 2 spaces by one finally
1480 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
1484 languages=$languages,c++
1487 languages=$languages,objc
1489 %if %{build_fortran}
1490 languages=$languages,fortran
1493 languages=$languages,obj-c++
1496 languages=$languages,java
1499 languages=$languages,ada
1503 if test -z "$J"; then
1504 J=$(getconf _NPROCESSORS_CONF)
1507 test 1 -gt "$J" && J=1
1508 JL=$(($(getconf _NPROCESSORS_CONF)*2))
1510 if test "$J" == "0"; then
1513 if test "$JL" == "0"; then
1516 PARALLEL="-j$J -l$JL"
1518 # we don't want some miscompiles in the testsuite, or some fault in
1519 # the compiler to kill the machine. Hence we limit the amount of memory
1520 # by the physical RAM plus half of swap
1521 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
1522 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
1523 #ulimit -v $(((MEM + SWAP/2)*1024))
1525 # In general we want to ship release checking enabled compilers
1526 # and run BETA with checking enabled.
1527 #ENABLE_CHECKING="--enable-checking=yes"
1528 ENABLE_CHECKING="--enable-checking=release"
1530 # Work around tail/head -1 changes
1531 export _POSIX2_VERSION=199209
1533 # configure tries to parse include/features.h to detect
1534 # if glibc supports SSP. When cross compiling we would need
1535 # to install a cross glibc, which we don't, or make the whole
1536 # thing point to the native glibc, which is in /, hence the
1540 # Using the host gnatmake like
1541 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
1542 # GNATMAKE="gnatmake%{hostsuffix}"
1543 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
1545 mkdir -p host-tools/bin
1546 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
1547 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
1548 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
1549 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
1550 ln -sf /usr/%{_lib} host-tools/%{_lib}
1551 export PATH="`pwd`/host-tools/bin:$PATH"
1553 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1555 # --enable-threads=posix \
1558 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
1559 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
1561 --prefix=%{_prefix} \
1562 --infodir=%{_infodir} \
1563 --mandir=%{_mandir} \
1564 --libdir=%{_libdir} \
1565 --libexecdir=%{_libdir} \
1566 --enable-languages=$languages \
1568 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
1573 --disable-bootstrap \
1576 --with-bugurl="http://bugs.tizen.org/" \
1577 --with-pkgversion="Tizen Linux" \
1578 %if !%{build_libjava}
1581 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1582 --with-ecj-jar=%{libsubdir}/ecj.jar \
1583 --disable-java-awt \
1584 %if !%{biarch_libjava}
1585 --disable-libjava-multilib \
1588 %if !%{build_with_mudflap}
1589 --disable-libmudflap \
1591 --with-slibdir=/%{_lib} \
1592 --with-system-zlib \
1593 --enable-__cxa_atexit \
1594 --enable-libstdcxx-allocator=new \
1595 --disable-libstdcxx-pch \
1596 --enable-version-specific-runtime-libs \
1597 --enable-linker-build-id \
1598 %if 0%{?gcc_target_arch:1}
1599 %if 0%{?gcc_icecream:1}
1600 --with-build-sysroot=/ \
1601 --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
1602 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
1603 --enable-linux-futex \
1605 %if 0%{?canonical_target:1}
1606 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1608 %if 0%{?build_static:1}
1611 %if "%{TARGET_ARCH}" == "spu"
1612 --with-sysroot=/usr/spu \
1613 --with-gxx-include-dir=%{_prefix}/spu/include/c++/%{gcc_dir_version} \
1617 --target=%{CONFIGURE_TARGET} \
1619 --program-suffix=%{binsuffix} \
1620 --enable-linux-futex \
1622 --with-system-libunwind \
1624 --without-system-libunwind \
1627 %if "%{TARGET_ARCH}" == "armv5tel"
1628 --with-arch=armv5te \
1631 --with-abi=aapcs-linux \
1632 --disable-sjlj-exceptions \
1634 %if "%{TARGET_ARCH}" == "armv7el"
1635 --with-arch=armv7-a \
1636 --with-tune=cortex-a9 \
1640 --disable-sjlj-exceptions \
1642 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
1643 --with-arch=armv7-a \
1644 --with-tune=cortex-a9 \
1646 --with-abi=aapcs-linux \
1647 --with-fpu=vfpv3-d16 \
1648 --disable-sjlj-exceptions \
1650 %if "%{TARGET_ARCH}" == "i586"
1651 --with-arch-32=i586 \
1652 --with-tune=generic \
1654 %if "%{TARGET_ARCH}" == "x86_64"
1655 --with-arch-32=i586 \
1656 --with-tune=generic \
1662 %if 0%{?building_libffi:1}
1663 make stage1-bubble $PARALLEL
1664 make all-target-libffi $PARALLEL
1666 # Only run profiled bootstrap on archs where it works
1667 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1668 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1673 STAGE1_FLAGS="-O -g"
1675 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1676 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1680 %if 0%{?run_tests:1}
1681 echo "Run testsuite"
1682 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1683 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1684 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1685 make -k check $PARALLEL || true
1686 mkdir ../testresults
1687 ../contrib/test_summary | tee ../testresults/test_summary.txt
1692 export NO_BRP_CHECK_BYTECODE_VERSION=true
1694 # GCC-TESTSUITE-DELETE-BEGIN
1695 # Work around tail/head -1 changes
1696 export _POSIX2_VERSION=199209
1697 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1698 %if 0%{?building_libffi:1}
1699 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1701 %if 0%{?building_libjava:1}
1702 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1703 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1704 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1705 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1706 # install-common also installs collect2, gcov and the g++ and gfortran driver
1708 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1710 %if %{build_fortran}
1711 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1713 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1714 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1716 make install DESTDIR=$RPM_BUILD_ROOT
1718 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1719 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1720 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1721 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1722 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1723 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1728 # Remove libffi installed files if we did not want to build it
1729 %if !0%{?building_libffi:1}
1730 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1732 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1734 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1735 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1736 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1737 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1738 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1741 # Remove some useless .la files
1742 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1743 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij; do
1744 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1746 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1750 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1752 %if %{build_primary_64bit}
1753 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1755 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1759 # LIBFFI-DELETE-BEGIN
1760 # LIBJAVA-DELETE-BEGIN
1762 # Merge multilib c++config.h to allow omitting the duplicate and
1763 # identical other arch specific headers
1765 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1766 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1767 if ! diff -up $cxxconfig $i; then
1782 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1787 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1788 #ifndef _CPP_CPPCONFIG_WRAPPER
1789 #define _CPP_CPPCONFIG_WRAPPER 1
1790 #include <bits/wordsize.h>
1791 #if __WORDSIZE == 32
1801 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1802 if ! test -z "$dir_ml"; then
1803 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1806 # LIBJAVA-DELETE-END
1808 %if 0%{!?build_optional_compiler:1}
1809 # move shared libs from versionspecific dir to main libdir
1811 %if 0%{?building_libjava:1}
1812 libgcj libgij libgcj-tools \
1814 %if %{build_fortran}
1816 %ifarch %quadmath_arch
1827 %if %{build_with_mudflap}
1828 libmudflap libmudflapth \
1832 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1833 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1835 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1836 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1838 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1839 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1840 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1842 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1843 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1848 %if !0%{?building_libjava:1}
1849 # And we want to move the shlib gdb pretty printers to a more sane
1850 # place so ldconfig does not complain
1851 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1852 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1853 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1855 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1856 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1857 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1858 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1863 %if 0%{?building_libjava:1}
1864 # libgcj_bc is special as the .so file is actually a different
1865 # library as the library refered to by the SONAME which should
1866 # be a simple link to our libgcj.
1867 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1870 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.1
1871 %if %{biarch_libjava}
1872 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1875 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.1
1880 # LIBJAVA-DELETE-BEGIN
1881 %if 0%{!?build_optional_compiler:1}
1882 # Move libgcc_s around
1883 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1884 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1885 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1887 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1889 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1891 %if %{build_primary_64bit}
1892 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1893 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1894 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1896 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1898 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1899 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1901 # 32-bit biarch systems
1902 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1903 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1904 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1906 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1908 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1909 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1913 # Move libgcc_s around
1914 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/
1915 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1916 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1917 ln -sf %{versmainlibdir}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1919 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1921 chmod a+x $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so.%{libgcc_s}
1923 %if %{build_primary_64bit}
1924 mv $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1925 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1926 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1927 ln -sf %{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1929 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1931 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1932 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s}
1934 # 32-bit biarch systems
1935 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1936 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1937 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1938 ln -sf %{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1940 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1942 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1943 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s}
1948 # Provide a defaults.spec file which adds a proper rpath
1949 %if 0%{?build_optional_compiler:1}
1950 cat > $RPM_BUILD_ROOT%{libsubdir}/defaults.spec << EOF
1952 + %%{!m32:%%{!m64:-rpath=%{libsubdir}}} %%{m32:-rpath=%{libsubdir}/32} %%{m64:-rpath=%{libsubdir}/64}
1955 # LIBJAVA-DELETE-END
1959 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1960 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1961 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1962 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1964 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1965 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1966 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1967 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1971 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1973 # Remove some crap from the .la files:
1974 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1976 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1977 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1978 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1979 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1980 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1982 %if %{build_primary_64bit}
1983 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1984 -e '/^libdir/s|lib64/\.\./||' \
1986 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1993 # GCC-TESTSUITE-DELETE-END
1994 %if 0%{?run_tests:1}
1995 cp `find . -name "*.sum"` ../testresults/
1996 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1997 chmod 644 ../testresults/*
1999 # GCC-TESTSUITE-DELETE-BEGIN
2000 # LIBFFI-DELETE-BEGIN
2002 # Find C++ and Java headers
2003 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
2004 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
2005 -o \( -type d -printf "%%%%dir " , \
2006 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
2009 # Remove files that we do not need to clean up filelist
2010 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
2011 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
2012 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2013 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
2014 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
2015 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
2016 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
2017 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
2018 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
2019 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
2020 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
2021 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
2022 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
2023 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2024 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
2025 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
2026 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
2027 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2028 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
2030 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
2031 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
2032 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
2034 %if !0%{?building_libjava:1}%{?building_libffi:1}
2035 # delete compile flag tracking from crt files
2036 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
2038 %if %{build_primary_64bit}
2039 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
2041 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
2044 for o in $crt_list $crt32_list $crt64_list; do
2045 objcopy -R ".comment.SUSE.OPTs" $o
2049 %if 0%{?building_libjava:1}
2050 # gcj -static doesn't work properly anyway, unless using --whole-archive
2051 # let's save the space instead.
2052 find $RPM_BUILD_ROOT -name libgcj.a \
2053 -o -name libgcj-tools.a \
2056 -o -name libgcj_bc.a \
2059 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
2060 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
2062 # security files have broken install locations, also they cause conflicts
2063 # between libgcj versions. Simply delete them here, libgcj will use its
2064 # defaults in this case (which is what these files contain anyway).
2065 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
2066 rm -r $RPM_BUILD_ROOT%{_libdir}/security
2069 %if 0%{?building_libffi:1}
2070 # Move libffi headers, remove empty libffi libtool file
2071 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
2072 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
2073 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
2074 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
2076 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
2078 # Generate a simple pkg-config file
2079 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
2080 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
2084 %if !%{build_libjava}
2085 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
2086 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
2087 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
2088 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
2089 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
2090 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
2091 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
2093 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
2094 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
2096 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
2097 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
2098 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
2099 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
2101 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/nof/libiberty.a
2104 %if %{build_primary_64bit}
2105 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
2107 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
2110 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
2111 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
2113 # LIBFFI-DELETE-BEGIN
2114 %if 0%{?building_libjava:1}
2115 # For building libjava only we need to delete other info docs
2116 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
2117 # Remove stale manpages for binaries we do not build
2118 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
2119 # For building the java frontend we need to copy the ecj jar
2120 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
2121 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
2123 # For regular build, some info files do not get renamed properly.
2125 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
2126 %if %{build_fortran}
2127 %ifarch %quadmath_arch
2128 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
2132 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
2133 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
2134 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
2138 # LIBJAVA-DELETE-BEGIN
2140 %find_lang gcc47-locale --all-name
2143 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2144 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2145 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2146 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2147 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2148 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2149 %if %{build_fortran}
2150 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2151 %ifarch %quadmath_arch
2152 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2156 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2159 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2160 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2161 %install_info --info-dir=%{_infodir} --section="GNU Ada tools" --entry="* GNAT User's Guide: (gnat_ugn). GNAT User's Guide for Unix Platforms" %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2165 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2166 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2167 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2168 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2169 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2170 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2171 %if %{build_fortran}
2172 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2173 %ifarch %quadmath_arch
2174 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2178 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2181 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2182 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2183 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2188 %defattr(-,root,root)
2190 %dir %{_libdir}/gcc/%{GCCDIST}
2192 %dir %{libsubdir}/include
2193 %dir %{libsubdir}/include-fixed
2195 %if %{build_primary_64bit}
2196 %dir %{libsubdir}/32
2198 %dir %{libsubdir}/64
2202 %dir %{libsubdir}/nof
2204 %{_prefix}/bin/gcc%{binsuffix}
2205 %{_prefix}/bin/gcov%{binsuffix}
2206 %{_prefix}/bin/gcc-ar%{binsuffix}
2207 %{_prefix}/bin/gcc-nm%{binsuffix}
2208 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2209 %{libsubdir}/collect2
2211 %{libsubdir}/lto-wrapper
2212 %{libsubdir}/liblto_plugin.so*
2213 %{libsubdir}/include-fixed/README
2214 %{libsubdir}/include-fixed/limits.h
2215 %{libsubdir}/include-fixed/syslimits.h
2216 %{libsubdir}/include/omp.h
2217 %{libsubdir}/include/float.h
2218 %{libsubdir}/include/iso646.h
2219 %{libsubdir}/include/stdarg.h
2220 %{libsubdir}/include/stdbool.h
2221 %{libsubdir}/include/stdfix.h
2222 %{libsubdir}/include/stddef.h
2223 %{libsubdir}/include/unwind.h
2224 %{libsubdir}/include/varargs.h
2225 %{libsubdir}/include/stdint.h
2226 %{libsubdir}/include/stdint-gcc.h
2227 %{libsubdir}/include/stdnoreturn.h
2228 %{libsubdir}/include/stdalign.h
2230 %{libsubdir}/include/mmintrin.h
2231 %{libsubdir}/include/arm_neon.h
2232 %{libsubdir}/include/unwind-arm-common.h
2234 %ifarch %ix86 x86_64
2235 %{libsubdir}/include/cross-stdarg.h
2236 %{libsubdir}/include/cpuid.h
2237 %{libsubdir}/include/mm3dnow.h
2238 %{libsubdir}/include/mmintrin.h
2239 %{libsubdir}/include/ammintrin.h
2240 %{libsubdir}/include/bmmintrin.h
2241 %{libsubdir}/include/emmintrin.h
2242 %{libsubdir}/include/immintrin.h
2243 %{libsubdir}/include/avxintrin.h
2244 %{libsubdir}/include/pmmintrin.h
2245 %{libsubdir}/include/xmmintrin.h
2246 %{libsubdir}/include/tmmintrin.h
2247 %{libsubdir}/include/nmmintrin.h
2248 %{libsubdir}/include/smmintrin.h
2249 %{libsubdir}/include/wmmintrin.h
2250 %{libsubdir}/include/x86intrin.h
2251 %{libsubdir}/include/ia32intrin.h
2252 %{libsubdir}/include/mm_malloc.h
2253 %{libsubdir}/include/fma4intrin.h
2254 %{libsubdir}/include/xopintrin.h
2255 %{libsubdir}/include/lwpintrin.h
2256 %{libsubdir}/include/popcntintrin.h
2257 %{libsubdir}/include/bmiintrin.h
2258 %{libsubdir}/include/tbmintrin.h
2259 %{libsubdir}/include/avx2intrin.h
2260 %{libsubdir}/include/bmi2intrin.h
2261 %{libsubdir}/include/fmaintrin.h
2262 %{libsubdir}/include/lzcntintrin.h
2263 %{libsubdir}/include/f16cintrin.h
2265 %if %{build_with_mudflap}
2266 %{libsubdir}/include/mf-runtime.h
2268 %versmainlib *crt*.o
2269 %versmainlib libgcc*.a
2270 %versmainlib libgcov.a
2271 %versmainlib libgcc_s*.so
2272 %if %{build_with_mudflap}
2273 %versmainlib libmudflap.a
2274 %versmainlib libmudflap.so
2275 %versmainlib libmudflapth.a
2276 %versmainlib libmudflapth.so
2278 %versmainlib libgomp.so
2279 %versmainlib libgomp.a
2280 %versmainlib libgomp.spec
2281 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2282 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2283 %if 0%{?build_optional_compiler:1}
2284 %{libsubdir}/defaults.spec
2287 %if %{separate_biarch}
2288 %files -n gcc47%{separate_biarch_suffix}
2289 %defattr(-,root,root)
2290 %versbiarchlib *crt*.o
2291 %versbiarchlib libgcc*.a
2292 %versbiarchlib libgcov.a
2293 %versbiarchlib libgcc_s*.so
2294 %if %{build_with_mudflap}
2295 %versbiarchlib libmudflap.a
2296 %versbiarchlib libmudflap.so
2297 %versbiarchlib libmudflapth.a
2298 %versbiarchlib libmudflapth.so
2300 %versbiarchlib libgomp.so
2301 %versbiarchlib libgomp.a
2302 %versbiarchlib libgomp.spec
2305 %files locale -f gcc47-locale.lang
2309 %defattr(-,root,root)
2311 %dir %{_libdir}/gcc/%{GCCDIST}
2313 %{_prefix}/bin/g++%{binsuffix}
2314 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2315 %{libsubdir}/cc1plus
2317 %files -n libstdc++47
2318 %defattr(-,root,root)
2322 %mainlib libstdc++.so.*
2324 %if %{separate_biarch}
2325 %files -n libstdc++47%{separate_biarch_suffix}
2326 %defattr(-,root,root)
2327 %biarchlib libstdc++.so.*
2330 %files -n libstdc++47-devel -f c++-headers
2331 %defattr(-,root,root)
2332 %versmainlib libstdc++.a
2333 %versmainlib libstdc++.so
2334 %versmainlib libsupc++.a
2335 %dir %{_datadir}/gdb
2336 %dir %{_datadir}/gdb/auto-load
2337 %dir %{_datadir}/gdb/auto-load%{_prefix}
2338 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2339 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2340 %{_datadir}/gcc%{binsuffix}
2342 %if %{separate_biarch}
2343 %files -n libstdc++47-devel%{separate_biarch_suffix}
2344 %defattr(-,root,root)
2345 %versbiarchlib libstdc++.a
2346 %versbiarchlib libstdc++.so
2347 %versbiarchlib libsupc++.a
2348 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2349 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2352 %files -n libstdc++47-doc
2353 %defattr(-,root,root)
2354 %doc libstdc++-v3/doc/html
2358 %defattr(-,root,root)
2359 %if 0%{!?build_optional_compiler:1}
2360 /%{_lib}/libgcc_s.so.%{libgcc_s}
2363 /lib/nof/libgcc_s.so.%{libgcc_s}
2366 %if %{build_primary_64bit}
2367 %if !%{separate_bi32}
2368 /lib/libgcc_s.so.%{libgcc_s}
2371 %if !%{separate_bi64}
2372 /lib64/libgcc_s.so.%{libgcc_s}
2377 %versmainlib libgcc_s.so.%{libgcc_s}
2380 %if %{separate_bi64}
2381 %files -n libgcc47-64bit
2382 %defattr(-,root,root)
2383 %if 0%{!?build_optional_compiler:1}
2384 /lib64/libgcc_s.so.%{libgcc_s}
2386 %versbiarchlib libgcc_s.so.%{libgcc_s}
2390 %if %{separate_bi32}
2391 %files -n libgcc47-32bit
2392 %defattr(-,root,root)
2393 %if 0%{!?build_optional_compiler:1}
2394 /lib/libgcc_s.so.%{libgcc_s}
2396 %versbiarchlib libgcc_s.so.%{libgcc_s}
2402 %defattr(-,root,root)
2403 %mainlib libgomp.so.1*
2405 %if %{separate_biarch}
2406 %files -n libgomp47%{separate_biarch_suffix}
2407 %defattr(-,root,root)
2408 %biarchlib libgomp.so.1*
2412 %if %{build_fortran}
2414 %defattr(-,root,root)
2415 %dir %{libsubdir}/finclude
2416 %{_prefix}/bin/gfortran%{binsuffix}
2418 %{libsubdir}/finclude/*
2419 %versmainlib libgfortran.a
2420 %versmainlib libgfortran.so
2421 %versmainlib libgfortran.spec
2422 %versmainlib libgfortranbegin.a
2423 %versmainlib libcaf_single.a
2424 %ifarch %quadmath_arch
2425 %{libsubdir}/include/quadmath.h
2426 %{libsubdir}/include/quadmath_weak.h
2427 %versmainlib libquadmath.a
2428 %versmainlib libquadmath.so
2430 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2432 %if %{separate_biarch}
2433 %files fortran%{separate_biarch_suffix}
2434 %defattr(-,root,root)
2435 %versbiarchlib libgfortran.a
2436 %versbiarchlib libgfortran.so
2437 %versbiarchlib libgfortran.spec
2438 %versbiarchlib libgfortranbegin.a
2439 %versbiarchlib libcaf_single.a
2440 %ifarch %quadmath_arch
2441 %versbiarchlib libquadmath.a
2442 %versbiarchlib libquadmath.so
2446 %files -n libgfortran47
2447 %defattr(-,root,root)
2448 %mainlib libgfortran.so.*
2450 %if %{separate_biarch}
2451 %files -n libgfortran47%{separate_biarch_suffix}
2452 %defattr(-,root,root)
2453 %biarchlib libgfortran.so.*
2456 %ifarch %quadmath_arch
2457 %files -n libquadmath47
2458 %defattr(-,root,root)
2459 %mainlib libquadmath.so.*
2461 %if %{separate_biarch}
2462 %files -n libquadmath47%{separate_biarch_suffix}
2463 %defattr(-,root,root)
2464 %biarchlib libquadmath.so.*
2469 %if %{build_with_mudflap}
2470 %files -n libmudflap47
2471 %defattr(-,root,root)
2472 %mainlib libmudflap.so.0*
2473 %mainlib libmudflapth.so.0*
2475 %if %{separate_biarch}
2476 %files -n libmudflap47%{separate_biarch_suffix}
2477 %defattr(-,root,root)
2478 %biarchlib libmudflap.so.0*
2479 %biarchlib libmudflapth.so.0*
2484 %defattr(-,root,root)
2485 %doc %{_infodir}/cpp%{binsuffix}.info*.gz
2486 %doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
2487 %doc %{_infodir}/gcc%{binsuffix}.info*.gz
2488 %doc %{_infodir}/gccint%{binsuffix}.info*.gz
2489 %doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
2490 %doc %{_infodir}/libgomp%{binsuffix}.info*.gz
2491 %if %{build_fortran}
2492 %doc %{_infodir}/gfortran%{binsuffix}.info*.gz
2493 %ifarch %quadmath_arch
2494 %doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
2498 %doc %{_infodir}/gcj%{binsuffix}.info*.gz
2501 %doc %{_infodir}/gnat-style%{binsuffix}.info*gz
2502 %doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
2503 %doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
2507 %defattr(-,root,root)
2509 %dir %{_libdir}/gcc/%{GCCDIST}
2511 %{_prefix}/bin/cpp%{binsuffix}
2514 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2518 %defattr(-,root,root)
2520 %{libsubdir}/include/objc
2521 %versmainlib libobjc.a
2522 %versmainlib libobjc.so
2524 %if %{separate_biarch}
2525 %files objc%{separate_biarch_suffix}
2526 %defattr(-,root,root)
2527 %versbiarchlib libobjc.a
2528 %versbiarchlib libobjc.so
2532 %defattr(-,root,root)
2533 %mainlib libobjc.so.*
2535 %if %{separate_biarch}
2536 %files -n libobjc47%{separate_biarch_suffix}
2537 %defattr(-,root,root)
2538 %biarchlib libobjc.so.*
2545 %defattr(-,root,root)
2546 %{libsubdir}/cc1objplus
2552 %defattr(-,root,root)
2554 %dir %{_libdir}/gcc/%{GCCDIST}
2556 %{_prefix}/bin/gnat*
2557 %dir %{versmainlibdir}/adainclude
2558 %dir %{versmainlibdir}/adalib
2559 %{versmainlibdir}/adainclude
2560 %{versmainlibdir}/adalib/*.ali
2561 %{versmainlibdir}/adalib/*.a
2562 %{versmainlibdir}/adalib/libgnarl.so
2563 %{versmainlibdir}/adalib/libgnat.so
2564 %{versmainlibdir}/gnat1
2566 %if %{separate_biarch}
2567 %files ada%{separate_biarch_suffix}
2568 %defattr(-,root,root)
2569 %dir %{versmainlibdirbi}/adainclude
2570 %dir %{versmainlibdirbi}/adalib
2571 %{versmainlibdirbi}/adainclude
2572 %{versmainlibdirbi}/adalib/*.ali
2573 %{versmainlibdirbi}/adalib/*.a
2574 %{versmainlibdirbi}/adalib/libgnarl.so
2575 %{versmainlibdirbi}/adalib/libgnat.so
2579 %defattr(-,root,root)
2580 %mainlib libgnarl-*.so
2581 %mainlib libgnat-*.so
2583 %if %{separate_biarch}
2584 %files -n libada47%{separate_biarch_suffix}
2585 %defattr(-,root,root)
2586 %biarchlib libgnarl-*.so
2587 %biarchlib libgnat-*.so
2590 # LIBJAVA-DELETE-END
2594 %if 0%{?building_libjava:1}
2595 %files -n gcc47-java
2596 %defattr(-,root,root)
2597 %{_prefix}/bin/gcj%{binsuffix}
2598 %{_prefix}/bin/gcjh%{binsuffix}
2599 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2600 %{_prefix}/bin/jcf-dump%{binsuffix}
2601 %{_prefix}/bin/jv-convert%{binsuffix}
2602 %{_prefix}/bin/gc-analyze%{binsuffix}
2603 %{_prefix}/bin/aot-compile%{binsuffix}
2604 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2606 %{libsubdir}/jvgenmain
2607 %{libsubdir}/ecj.jar
2609 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2610 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2611 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2612 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2613 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2614 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2615 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2616 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2621 %if %{build_libjava}
2623 %defattr(-,root,root)
2624 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}
2626 %dir %{_libdir}/gcc/%{GCCDIST}
2628 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/classmap.db
2629 # We usually do not multilib libjava
2630 %if %{biarch_libjava}
2631 %versbiarchlib libgcj.la
2632 %biarchlib libgcj.so.*
2633 %biarchlib libgij.so.*
2634 %biarchlib libgcj-tools.so.*
2636 %versmainlib libgcj.la
2637 %mainlib libgcj.so.*
2638 %mainlib libgij.so.*
2639 %mainlib libgcj-tools.so.*
2641 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.la
2642 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.so
2643 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.la
2644 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.so
2646 %files -n libgcj_bc47
2647 %defattr(-,root,root)
2648 %if %{biarch_libjava}
2649 %biarchlib libgcj_bc.so.*
2651 %mainlib libgcj_bc.so.*
2654 %files -n libgcj47-jar
2655 %defattr(-,root,root)
2656 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2657 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2659 %files -n libgcj47-devel
2660 %defattr(-,root,root)
2661 %dir %{_prefix}/include/c++
2663 %dir %{libsubdir}/include
2665 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2666 %{libsubdir}/include/jawt.h
2667 %{libsubdir}/include/jawt_md.h
2668 %{libsubdir}/include/jni.h
2669 %{libsubdir}/include/jni_md.h
2670 %{libsubdir}/include/jvmpi.h
2677 %{libsubdir}/include/gcj
2678 %if %{biarch_libjava}
2679 %versbiarchlib libgcj.so
2680 %versbiarchlib libgcj.spec
2681 %versbiarchlib libgcj-tools.so
2682 %versbiarchlib libgij.so
2683 %versbiarchlib libgcj_bc.so
2685 %versmainlib libgcj.so
2686 %versmainlib libgcj.spec
2687 %versmainlib libgcj-tools.so
2688 %versmainlib libgij.so
2689 %versmainlib libgcj_bc.so
2693 %defattr(-,root,root)
2694 %{_prefix}/bin/gij%{binsuffix}
2695 %{_prefix}/bin/gappletviewer%{binsuffix}
2696 %{_prefix}/bin/gjar%{binsuffix}
2697 %{_prefix}/bin/gjarsigner%{binsuffix}
2698 %{_prefix}/bin/gjavah%{binsuffix}
2699 %{_prefix}/bin/gkeytool%{binsuffix}
2700 %{_prefix}/bin/gnative2ascii%{binsuffix}
2701 %{_prefix}/bin/gorbd%{binsuffix}
2702 %{_prefix}/bin/grmic%{binsuffix}
2703 %{_prefix}/bin/grmid%{binsuffix}
2704 %{_prefix}/bin/grmiregistry%{binsuffix}
2705 %{_prefix}/bin/gserialver%{binsuffix}
2706 %{_prefix}/bin/gtnameserv%{binsuffix}
2707 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2708 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2709 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2710 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2711 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2712 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2713 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2714 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2715 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2716 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2717 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2718 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2719 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2725 %if 0%{?building_libffi:1}
2727 %defattr(-,root,root)
2728 %mainlib libffi.so.*
2730 %if %{separate_biarch}
2731 %files -n libffi47%{separate_biarch_suffix}
2732 %defattr(-,root,root)
2733 %biarchlib libffi.so.*
2736 %files -n libffi47-devel
2737 %defattr(-,root,root)
2738 %{_prefix}/include/ffi.h
2739 %{_prefix}/include/ffitarget.h
2742 %{_libdir}/pkgconfig/libffi.pc
2743 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2744 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2745 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2747 %if %{separate_biarch}
2748 %files -n libffi47-devel%{separate_biarch_suffix}
2749 %defattr(-,root,root)
2750 %biarchlib libffi.so
2755 # GCC-TESTSUITE-DELETE-END
2757 %if 0%{?run_tests:1}
2758 %files -n gcc47-testresults
2759 %defattr(-,root,root)
2760 %doc testresults/test_summary.txt
2761 %doc testresults/*.sum
2762 %doc testresults/*.log