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
167 # GCC-TESTSUITE-DELETE-BEGIN
168 # LIBFFI-DELETE-BEGIN
169 # LIBJAVA-DELETE-BEGIN
170 Group: Development/Languages/C and C++
171 Summary: The GNU C Compiler and Support Files
175 Core package for the GNU Compiler Collection, including the C language
178 Language frontends other than C are split to different sub-packages,
179 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
185 %package -n gcc47-32bit
186 Summary: The GNU C Compiler 32bit support
187 Group: Development/Languages/C and C++
188 Requires: gcc47 = %{version}-%{release}
189 %if 0%{!?build_optional_compiler:1}
190 Requires: libgcc%{libgcc_s}-32bit >= %{version}-%{release}
191 Requires: libgomp1-32bit >= %{version}-%{release}
192 %if %{build_with_mudflap}
193 Requires: libmudflap0-32bit >= %{version}-%{release}
194 Requires: libmudflapth0-32bit >= %{version}-%{release}
197 Requires: libgcc47-32bit = %{version}-%{release}
198 Requires: libgomp47-32bit = %{version}-%{release}
200 Requires: glibc-devel-32bit
202 %description -n gcc47-32bit
203 This package contains 32bit support for the GNU Compiler Collection.
205 %package -n gcc47-64bit
206 Summary: The GNU C Compiler 64bit support
207 Group: Development/Languages/C and C++
208 Requires: gcc47 = %{version}-%{release}
209 %if 0%{!?build_optional_compiler:1}
210 Requires: libgcc%{libgcc_s}-64bit >= %{version}-%{release}
211 Requires: libgomp1-64bit >= %{version}-%{release}
212 %if %{build_with_mudflap}
213 Requires: libmudflap0-64bit >= %{version}-%{release}
214 Requires: libmudflapth0-64bit >= %{version}-%{release}
217 Requires: libgcc47-64bit = %{version}-%{release}
218 Requires: libgomp47-64bit = %{version}-%{release}
220 Requires: glibc-devel-64bit
222 %description -n gcc47-64bit
223 This package contains 64bit support for the GNU Compiler Collection.
227 Summary: Locale Data for the GNU Compiler Collection
229 Group: Development/Languages/C and C++
230 Requires: gcc47 = %{version}-%{release}
233 Locale data for the GNU Compiler Collection (GCC) to give error message
234 in the current locale.
238 Summary: The GNU C++ Compiler
240 Group: Development/Languages/C and C++
241 Requires: gcc47 = %{version}-%{release}
242 Requires: libstdc++47-devel = %{version}-%{release}
245 This package contains the GNU compiler for C++.
249 %package -n libstdc++47-devel
250 Summary: Include Files and Libraries mandatory for Development
251 License: GPL-3.0-with-GCC-exception
252 Group: Development/Languages/C and C++
253 %if 0%{!?build_optional_compiler:1}
254 Requires: libstdc++6 >= %{version}-%{release}
256 Requires: libstdc++47 = %{version}-%{release}
258 Requires: glibc-devel
260 Requires: libunwind-devel
263 %description -n libstdc++47-devel
264 This package contains all the headers and libraries of the standard C++
265 library. It is needed for compiling C++ code.
269 %package -n libstdc++47-devel-32bit
270 Summary: Include Files and Libraries mandatory for Development
271 License: GPL-3.0-with-GCC-exception
272 Group: Development/Languages/C and C++
273 %if 0%{!?build_optional_compiler:1}
274 Requires: libstdc++6-32bit >= %{version}-%{release}
276 Requires: libstdc++47-32bit = %{version}-%{release}
278 Requires: glibc-devel-32bit
280 Requires: libunwind-devel
283 %description -n libstdc++47-devel-32bit
284 This package contains all the headers and libraries of the standard C++
285 library. It is needed for compiling C++ code.
289 %package -n libstdc++47-devel-64bit
290 Summary: Include Files and Libraries mandatory for Development
291 License: GPL-3.0-with-GCC-exception
292 Group: Development/Languages/C and C++
293 %if 0%{!?build_optional_compiler:1}
294 Requires: libstdc++6-64bit >= %{version}-%{release}
296 Requires: libstdc++47-64bit = %{version}-%{release}
298 Requires: glibc-devel-64bit
300 Requires: libunwind-devel
303 %description -n libstdc++47-devel-64bit
304 This package contains all the headers and libraries of the standard C++
305 library. It is needed for compiling C++ code.
308 %package -n libstdc++47-doc
309 Summary: Documentation for the GNU C++ standard library
311 Group: Documentation/HTML
314 %description -n libstdc++47-doc
315 Extensive HTML documentation for the GNU C++ standard library.
321 Summary: C compiler runtime library
322 License: GPL-3.0-with-GCC-exception
324 %if 0%{!?build_optional_compiler:1}
325 Provides: libgcc%{libgcc_s} = %{version}-%{release}
326 Conflicts: libgcc%{libgcc_s} < %{version}-%{release}
331 %description -n libgcc47
332 Libgcc is needed for dynamically linked C programs.
342 %package -n libgcc47-32bit
343 Summary: C compiler runtime library
344 License: GPL-3.0-with-GCC-exception
346 %if 0%{!?build_optional_compiler:1}
347 Provides: libgcc%{libgcc_s}-32bit = %{version}-%{release}
348 Conflicts: libgcc%{libgcc_s}-32bit < %{version}-%{release}
353 %description -n libgcc47-32bit
354 Libgcc is needed for dynamically linked C programs.
356 %post -n libgcc47-32bit
359 %postun -n libgcc47-32bit
364 %package -n libgcc47-64bit
365 Summary: C compiler runtime library
366 License: GPL-3.0-with-GCC-exception
368 %if 0%{!?build_optional_compiler:1}
369 Provides: libgcc%{libgcc_s}-64bit = %{version}-%{release}
370 Conflicts: libgcc%{libgcc_s}-64bit < %{version}-%{release}
375 %description -n libgcc47-64bit
376 Libgcc is needed for dynamically linked C programs.
378 %post -n libgcc47-64bit
381 %postun -n libgcc47-64bit
387 %package -n libgomp47
388 Summary: The GNU compiler collection OpenMP runtime library
389 License: GPL-3.0-with-GCC-exception
391 %if 0%{!?build_optional_compiler:1}
392 Provides: libgomp1 = %{version}-%{release}
393 Conflicts: libgomp1 < %{version}-%{release}
398 %description -n libgomp47
399 This is the OpenMP runtime library needed by OpenMP enabled programs
400 that were built with the -fopenmp compiler option and by programs that
401 were auto-parallelized via the -ftree-parallelize-loops compiler
413 %package -n libgomp47-32bit
414 Summary: The GNU compiler collection OpenMP runtime library
415 License: GPL-3.0-with-GCC-exception
417 %if 0%{!?build_optional_compiler:1}
418 Provides: libgomp1-32bit = %{version}-%{release}
419 Conflicts: libgomp1-32bit < %{version}-%{release}
424 %description -n libgomp47-32bit
425 This is the OpenMP runtime library needed by OpenMP enabled programs
426 that were built with the -fopenmp compiler option and by programs that
427 were auto-parallelized via the -ftree-parallelize-loops compiler
431 %post -n libgomp47-32bit
434 %postun -n libgomp47-32bit
439 %package -n libgomp47-64bit
440 Summary: The GNU compiler collection OpenMP runtime library
441 License: GPL-3.0-with-GCC-exception
443 %if 0%{!?build_optional_compiler:1}
444 Provides: libgomp1-64bit = %{version}-%{release}
445 Conflicts: libgomp1-64bit < %{version}-%{release}
450 %description -n libgomp47-64bit
451 This is the OpenMP runtime library needed by OpenMP enabled programs
452 that were built with the -fopenmp compiler option and by programs that
453 were auto-parallelized via the -ftree-parallelize-loops compiler
457 %post -n libgomp47-64bit
460 %postun -n libgomp47-64bit
466 %package -n libstdc++47
467 Summary: The standard C++ shared library
468 License: GPL-3.0-with-GCC-exception
469 Group: System/Libraries
470 %if 0%{!?build_optional_compiler:1}
471 Provides: libstdc++6 = %{version}-%{release}
472 Conflicts: libstdc++6 < %{version}-%{release}
477 %description -n libstdc++47
478 The standard C++ library, needed for dynamically linked C++ programs.
484 %postun -n libstdc++47
489 %package -n libstdc++47-32bit
490 Summary: The standard C++ shared library
491 License: GPL-3.0-with-GCC-exception
492 Group: System/Libraries
493 %if 0%{!?build_optional_compiler:1}
494 Provides: libstdc++6-32bit = %{version}-%{release}
495 Conflicts: libstdc++6-32bit < %{version}-%{release}
500 %description -n libstdc++47-32bit
501 The standard C++ library, needed for dynamically linked C++ programs.
504 %post -n libstdc++47-32bit
507 %postun -n libstdc++47-32bit
512 %package -n libstdc++47-64bit
513 Summary: The standard C++ shared library
514 License: GPL-3.0-with-GCC-exception
515 Group: System/Libraries
516 %if 0%{!?build_optional_compiler:1}
517 Provides: libstdc++6-64bit = %{version}-%{release}
518 Conflicts: libstdc++6-64bit < %{version}-%{release}
523 %description -n libstdc++47-64bit
524 The standard C++ library, needed for dynamically linked C++ programs.
527 %post -n libstdc++47-64bit
530 %postun -n libstdc++47-64bit
536 Summary: Documentation for the GNU compiler collection
538 Group: Documentation/Other
542 GNU info-pages for the GNU compiler collection covering both user-level
543 and internals documentation.
549 Summary: GNU Objective C Compiler
551 Group: Development/Languages/Other
552 Requires: gcc47 = %{version}-%{release}
553 Requires: libobjc2 >= %{version}-%{release}
556 This package contains the GNU Objective C compiler. Objective C is an
557 object oriented language, created by Next Inc. and used in their
558 Nextstep OS. The source code is available in the gcc package.
563 Summary: GNU Objective C Compiler
565 Group: Development/Languages/Other
566 Requires: gcc47 = %{version}-%{release}
567 Requires: libobjc2-32bit >= %{version}-%{release}
569 %description objc-32bit
570 This package contains the GNU Objective C compiler. Objective C is an
571 object oriented language, created by Next Inc. and used in their
572 Nextstep OS. The source code is available in the gcc package.
577 Summary: GNU Objective C Compiler
579 Group: Development/Languages/Other
580 Requires: gcc47 = %{version}-%{release}
581 Requires: libobjc2-64bit >= %{version}-%{release}
583 %description objc-64bit
584 This package contains the GNU Objective C compiler. Objective C is an
585 object oriented language, created by Next Inc. and used in their
586 Nextstep OS. The source code is available in the gcc package.
591 %package -n libobjc47
592 Summary: Library for the GNU Objective C Compiler
593 License: GPL-3.0-with-GCC-exception
594 Group: Development/Libraries/Other
595 Provides: libobjc2 = %{version}-%{release}
596 Conflicts: libobjc2 < %{version}-%{release}
598 %description -n libobjc47
599 The library for the GNU Objective C compiler.
609 %package -n libobjc47-32bit
610 Summary: Library for the GNU Objective C Compiler
611 License: GPL-3.0-with-GCC-exception
612 Group: Development/Libraries/Other
613 Provides: libobjc2-32bit = %{version}-%{release}
614 Conflicts: libobjc2-32bit < %{version}-%{release}
616 %description -n libobjc47-32bit
617 The library for the GNU Objective C compiler.
619 %post -n libobjc47-32bit
622 %postun -n libobjc47-32bit
627 %package -n libobjc47-64bit
628 Summary: Library for the GNU Objective C Compiler
629 License: GPL-3.0-with-GCC-exception
630 Group: Development/Libraries/Other
631 Provides: libobjc2-64bit = %{version}-%{release}
632 Conflicts: libobjc2-64bit < %{version}-%{release}
634 %description -n libobjc47-64bit
635 The library for the GNU Objective C compiler.
637 %post -n libobjc47-64bit
640 %postun -n libobjc47-64bit
645 Summary: GNU Objective C++ Compiler
647 Group: Development/Languages/Other
648 Requires: gcc47-objc = %{version}-%{release}
649 Requires: gcc47-c++ = %{version}-%{release}
652 This package contains the GNU Objective C++ compiler. Objective C++ is an
653 object oriented language, created by Next Inc. and used in their
654 Nextstep OS. The source code is available in the gcc package.
658 Summary: The GCC Preprocessor
660 Group: Development/Languages/C and C++
662 %description -n cpp47
663 This Package contains just the preprocessor that is used by the X11
670 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
672 Group: Development/Languages/Other
673 Requires: gcc47 = %{version}-%{release}
674 Requires: libada47 = %{version}-%{release}
677 This package contains an Ada95 compiler and associated development
678 tools based on the GNU GCC technology. Ada95 is the object oriented
679 successor of the Ada83 language. To build this package from source you
680 must have installed a binary version to bootstrap the compiler.
685 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
687 Group: Development/Languages/Other
688 Requires: gcc47-32bit = %{version}-%{release}
689 Requires: libada47-32bit = %{version}-%{release}
691 %description ada-32bit
692 This package contains an Ada95 compiler and associated development
693 tools based on the GNU GCC technology. Ada95 is the object oriented
694 successor of the Ada83 language. To build this package from source you
695 must have installed a binary version to bootstrap the compiler.
700 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
702 Group: Development/Languages/Other
703 Requires: gcc47-64bit = %{version}-%{release}
704 Requires: libada47-64bit = %{version}-%{release}
706 %description ada-64bit
707 This package contains an Ada95 compiler and associated development
708 tools based on the GNU GCC technology. Ada95 is the object oriented
709 successor of the Ada83 language. To build this package from source you
710 must have installed a binary version to bootstrap the compiler.
716 Summary: GNU Ada Runtime Libraries
717 License: GPL-3.0-with-GCC-exception
718 Group: System/Libraries
719 Provides: libgnarl-4_7 = %{version}-%{release}
720 Conflicts: libgnarl-4_7 < %{version}-%{release}
721 Provides: libgnat-4_7 = %{version}-%{release}
722 Conflicts: libgnat-4_7 < %{version}-%{release}
724 %description -n libada47
725 This package contains the shared libraries required to run programs
726 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
727 shared libraries. It also contains the shared libraries for the
728 Implementation of the Ada Semantic Interface Specification (ASIS), the
729 implementation of Distributed Systems Programming (GLADE) and the Posix
730 1003.5 Binding (Florist).
740 %package -n libada47-32bit
741 Summary: GNU Ada Runtime Libraries
742 License: GPL-3.0-with-GCC-exception
743 Group: System/Libraries
744 Provides: libgnarl-4_7-32bit = %{version}-%{release}
745 Conflicts: libgnarl-4_7-32bit < %{version}-%{release}
746 Provides: libgnat-4_7-32bit = %{version}-%{release}
747 Conflicts: libgnat-4_7-32bit < %{version}-%{release}
749 %description -n libada47-32bit
750 This package contains the shared libraries required to run programs
751 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
752 shared libraries. It also contains the shared libraries for the
753 Implementation of the Ada Semantic Interface Specification (ASIS), the
754 implementation of Distributed Systems Programming (GLADE) and the Posix
755 1003.5 Binding (Florist).
757 %post -n libada47-32bit
760 %postun -n libada47-32bit
765 %package -n libada47-64bit
766 Summary: GNU Ada Runtime Libraries
767 License: GPL-3.0-with-GCC-exception
768 Group: System/Libraries
769 Provides: libgnarl-4_7-64bit = %{version}-%{release}
770 Conflicts: libgnarl-4_7-64bit < %{version}-%{release}
771 Provides: libgnat-4_7-64bit = %{version}-%{release}
772 Conflicts: libgnat-4_7-64bit < %{version}-%{release}
774 %description -n libada47-64bit
775 This package contains the shared libraries required to run programs
776 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
777 shared libraries. It also contains the shared libraries for the
778 Implementation of the Ada Semantic Interface Specification (ASIS), the
779 implementation of Distributed Systems Programming (GLADE) and the Posix
780 1003.5 Binding (Florist).
782 %post -n libada47-64bit
785 %postun -n libada47-64bit
792 Summary: The GNU Fortran Compiler and Support Files
794 Group: Development/Languages/Fortran
795 Requires: gcc47 = %{version}-%{release}
796 %if 0%{!?build_optional_compiler:1}
797 Requires: libgfortran3 >= %{version}-%{release}
798 %ifarch %quadmath_arch
799 Requires: libquadmath0 >= %{version}-%{release}
802 Requires: libgfortran47 = %{version}-%{release}
803 %ifarch %quadmath_arch
804 Requires: libquadmath47 = %{version}-%{release}
809 This is the Fortran compiler of the GNU Compiler Collection (GCC).
813 %package fortran-32bit
814 Summary: The GNU Fortran Compiler and Support Files
816 Group: Development/Languages/Fortran
817 Requires: gcc47 = %{version}-%{release}
818 %if 0%{!?build_optional_compiler:1}
819 Requires: libgfortran3-32bit >= %{version}-%{release}
820 %ifarch %quadmath_arch
821 Requires: libquadmath0-32bit >= %{version}-%{release}
824 Requires: libgfortran47-32bit = %{version}-%{release}
825 %ifarch %quadmath_arch
826 Requires: libquadmath47-32bit = %{version}-%{release}
830 %description fortran-32bit
831 This is the Fortran compiler of the GNU Compiler Collection (GCC).
835 %package fortran-64bit
836 Summary: The GNU Fortran Compiler and Support Files
838 Group: Development/Languages/Fortran
839 Requires: gcc47 = %{version}-%{release}
840 %if 0%{!?build_optional_compiler:1}
841 Requires: libgfortran3-64bit >= %{version}-%{release}
842 %ifarch %quadmath_arch
843 Requires: libquadmath0-64bit >= %{version}-%{release}
846 Requires: libgfortran47-64bit = %{version}-%{release}
847 %ifarch %quadmath_arch
848 Requires: libquadmath47-64bit = %{version}-%{release}
852 %description fortran-64bit
853 This is the Fortran compiler of the GNU Compiler Collection (GCC).
858 %package -n libgfortran47
859 Summary: The GNU Fortran Compiler Runtime Library
860 License: GPL-3.0-with-GCC-exception
861 Group: Development/Languages/Fortran
862 %if 0%{!?build_optional_compiler:1}
863 Provides: libgfortran3 = %{version}-%{release}
864 Conflicts: libgfortran3 < %{version}-%{release}
865 %ifarch %quadmath_arch
866 Requires: libquadmath0 >= %{version}-%{release}
869 %ifarch %quadmath_arch
870 Requires: libquadmath47 = %{version}-%{release}
875 %description -n libgfortran47
876 The runtime library needed to run programs compiled with the Fortran compiler
877 of the GNU Compiler Collection (GCC).
879 %post -n libgfortran47
882 %postun -n libgfortran47
887 %package -n libgfortran47-32bit
888 Summary: The GNU Fortran Compiler Runtime Library
889 License: GPL-3.0-with-GCC-exception
890 Group: Development/Languages/Fortran
891 %if 0%{!?build_optional_compiler:1}
892 Provides: libgfortran3-32bit = %{version}-%{release}
893 Conflicts: libgfortran3-32bit < %{version}-%{release}
894 %ifarch %quadmath_arch
895 Requires: libquadmath0-32bit >= %{version}-%{release}
898 %ifarch %quadmath_arch
899 Requires: libquadmath47-32bit = %{version}-%{release}
904 %description -n libgfortran47-32bit
905 The runtime library needed to run programs compiled with the Fortran compiler
906 of the GNU Compiler Collection (GCC).
908 %post -n libgfortran47-32bit
911 %postun -n libgfortran47-32bit
916 %package -n libgfortran47-64bit
917 Summary: The GNU Fortran Compiler Runtime Library
918 License: GPL-3.0-with-GCC-exception
919 Group: Development/Languages/Fortran
920 %if 0%{!?build_optional_compiler:1}
921 Provides: libgfortran3-64bit = %{version}-%{release}
922 Conflicts: libgfortran3-64bit < %{version}-%{release}
923 %ifarch %quadmath_arch
924 Requires: libquadmath0-64bit >= %{version}-%{release}
927 %ifarch %quadmath_arch
928 Requires: libquadmath47-64bit = %{version}-%{release}
933 %description -n libgfortran47-64bit
934 The runtime library needed to run programs compiled with the Fortran compiler
935 of the GNU Compiler Collection (GCC).
937 %post -n libgfortran47-64bit
940 %postun -n libgfortran47-64bit
946 %package -n libquadmath47
947 Summary: The GNU Fortran Compiler Quadmath Runtime Library
949 Group: Development/Languages/Fortran
950 %if 0%{!?build_optional_compiler:1}
951 Provides: libquadmath0 = %{version}-%{release}
952 Conflicts: libquadmath0 < %{version}-%{release}
957 %description -n libquadmath47
958 The runtime library needed to run programs compiled with the Fortran compiler
959 of the GNU Compiler Collection (GCC) and quadruple precision floating point
962 %post -n libquadmath47
965 %postun -n libquadmath47
970 %package -n libquadmath47-32bit
971 Summary: The GNU Fortran Compiler Quadmath Runtime Library
973 Group: Development/Languages/Fortran
974 %if 0%{!?build_optional_compiler:1}
975 Provides: libquadmath0-32bit = %{version}-%{release}
976 Conflicts: libquadmath0-32bit < %{version}-%{release}
981 %description -n libquadmath47-32bit
982 The runtime library needed to run programs compiled with the Fortran compiler
983 of the GNU Compiler Collection (GCC) and quadruple precision floating point
986 %post -n libquadmath47-32bit
989 %postun -n libquadmath47-32bit
994 %package -n libquadmath47-64bit
995 Summary: The GNU Fortran Compiler Quadmath Runtime Library
997 Group: Development/Languages/Fortran
998 %if 0%{!?build_optional_compiler:1}
999 Provides: libquadmath0-64bit = %{version}-%{release}
1000 Conflicts: libquadmath0-64bit < %{version}-%{release}
1005 %description -n libquadmath47-64bit
1006 The runtime library needed to run programs compiled with the Fortran compiler
1007 of the GNU Compiler Collection (GCC) and quadruple precision floating point
1010 %post -n libquadmath47-64bit
1013 %postun -n libquadmath47-64bit
1019 %package -n libmudflap47
1020 Summary: The Mudflap Extension Runtime Library
1021 License: GPL-3.0-with-GCC-exception
1022 Group: Development/Languages/C and C++
1023 Provides: libmudflap0 = %{version}-%{release}
1024 Conflicts: libmudflap0 < %{version}-%{release}
1025 Provides: libmudflapth0 = %{version}-%{release}
1026 Conflicts: libmudflapth0 < %{version}-%{release}
1028 %description -n libmudflap47
1029 This is the Mudflap Extension Runtime Library.
1031 %post -n libmudflap47
1034 %postun -n libmudflap47
1039 %package -n libmudflap47-32bit
1040 Summary: The Mudflap Extension Runtime Library
1041 License: GPL-3.0-with-GCC-exception
1042 Group: Development/Languages/C and C++
1043 Provides: libmudflap0-32bit = %{version}-%{release}
1044 Conflicts: libmudflap0-32bit < %{version}-%{release}
1045 Provides: libmudflapth0-32bit = %{version}-%{release}
1046 Conflicts: libmudflapth0-32bit < %{version}-%{release}
1048 %description -n libmudflap47-32bit
1049 This is the Mudflap Extension Runtime Library.
1051 %post -n libmudflap47-32bit
1054 %postun -n libmudflap47-32bit
1059 %package -n libmudflap47-64bit
1060 Summary: The Mudflap Extension Runtime Library
1061 License: GPL-3.0-with-GCC-exception
1062 Group: Development/Languages/C and C++
1063 Provides: libmudflap0-64bit = %{version}-%{release}
1064 Conflicts: libmudflap0-64bit < %{version}-%{release}
1065 Provides: libmudflapth0-64bit = %{version}-%{release}
1066 Conflicts: libmudflapth0-64bit < %{version}-%{release}
1068 %description -n libmudflap47-64bit
1069 This is the Mudflap Extension Runtime Library.
1071 %post -n libmudflap47-64bit
1074 %postun -n libmudflap47-64bit
1079 %package -n libgcj47
1080 # LIBJAVA-DELETE-END
1081 Summary: Java Runtime Library for gcc
1082 License: GPL-2.0-with-classpath-exception
1083 Group: System/Libraries
1084 %define gcj_sover 13
1085 Provides: libgcj%{gcj_sover} = %{version}-%{release}
1086 Conflicts: libgcj%{gcj_sover} < %{version}-%{release}
1087 Provides: libgij%{gcj_sover} = %{version}-%{release}
1088 Conflicts: libgij%{gcj_sover} < %{version}-%{release}
1089 Provides: libgcj-tools%{gcj_sover} = %{version}-%{release}
1090 Conflicts: libgcj-tools%{gcj_sover} < %{version}-%{release}
1092 %description -n libgcj47
1093 This library is needed if you want to use the GNU Java compiler, gcj.
1094 Source code for this package is in gcc.
1103 %package -n gcc47-java
1104 Summary: The GNU Java Compiler
1106 Group: Development/Languages/Java
1107 Requires: gcc47 = %{version}
1108 Requires: libgcj47-devel = %{version}-%{release}
1110 %description -n gcc47-java
1111 The Java compiler from the GCC-tools-suite.
1114 %package -n libgcj_bc47
1115 Summary: Fake library for BC-ABI compatibility.
1116 License: GPL-2.0-with-classpath-exception
1117 Group: Development/Libraries/Java
1118 Provides: libgcj_bc1 = %{version}-%{release}
1119 Conflicts: libgcj_bc1 < %{version}-%{release}
1120 # libgcj_bc is special in that it just contains a symlink to
1121 # a proper libgcj version. So require that library and add
1122 # provides for the shlib version as created at link time
1123 Requires: libgcj%{gcj_sover}
1125 Provides: libgcj_bc.so.1()(64bit)
1127 Provides: libgcj_bc.so.1
1131 %description -n libgcj_bc47
1132 A fake library that is used at link time only. It ensures that
1133 binaries built with the BC-ABI link against a constant SONAME.
1134 This way, BC-ABI binaries continue to work if the SONAME underlying
1138 %package -n libgcj47-jar
1139 Summary: Java runtime library (jar files).
1140 License: GPL-2.0-with-classpath-exception
1141 Group: Development/Libraries/Java
1143 %description -n libgcj47-jar
1144 These are the jar files that go along with the gcj front end to gcc.
1147 %package -n libgcj47-devel
1148 Summary: Include Files and Libraries mandatory for Development.
1149 License: GPL-2.0-with-classpath-exception
1150 Group: Development/Libraries/Java
1151 Requires: libstdc++47-devel = %{version}
1152 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1153 Requires: libgcj_bc1 >= %{version}-%{release}
1154 Requires: libgcj47-jar = %{version}-%{release}
1155 Requires: gtk2-devel
1156 Requires: libart_lgpl-devel
1157 Requires: glibc-devel
1158 Requires: zlib-devel
1160 Requires: libunwind-devel
1163 %description -n libgcj47-devel
1164 This package contains all necessary include files and libraries needed
1165 to develop applications that require these.
1168 %package -n gcc47-gij
1169 Summary: Java Bytecode Interpreter for gcc
1170 License: GPL-2.0-with-classpath-exception
1171 Group: Development/Libraries/Java
1172 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1174 %description -n gcc47-gij
1175 This package contains the java bytecode interpreter gij and related tools.
1180 %package -n libffi47
1181 Summary: Foreign Function Interface library
1182 License: BSD-3-Clause
1183 Group: Development/Languages/C and C++
1184 Provides: g-wrap:/usr/lib/libffi.so.4
1185 Provides: libffi4 = %{version}-%{release}
1186 Conflicts: libffi4 < %{version}-%{release}
1188 %description -n libffi47
1189 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.
1199 %package -n libffi47-32bit
1200 Summary: Foreign Function Interface library
1201 License: BSD-3-Clause
1202 Group: Development/Languages/C and C++
1203 Provides: g-wrap:/usr/lib/libffi.so.4
1204 Provides: libffi4-32bit = %{version}-%{release}
1205 Conflicts: libffi4-32bit < %{version}-%{release}
1207 %description -n libffi47-32bit
1208 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.
1210 %post -n libffi47-32bit
1213 %postun -n libffi47-32bit
1218 %package -n libffi47-64bit
1219 Summary: Foreign Function Interface library
1220 License: BSD-3-Clause
1221 Group: Development/Languages/C and C++
1222 Provides: g-wrap:/usr/lib/libffi.so.4
1223 Provides: libffi4-64bit = %{version}-%{release}
1224 Conflicts: libffi4-64bit < %{version}-%{release}
1226 %description -n libffi47-64bit
1227 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.
1229 %post -n libffi47-64bit
1232 %postun -n libffi47-64bit
1238 %package -n libffi47-devel
1239 Summary: Foreign Function Interface library development files
1240 License: BSD 3-Clause
1241 Group: Development/Languages/C and C++
1242 Requires: libffi4 >= %{version}-%{release}
1243 Provides: libffi-devel = %{version}-%{release}
1244 Conflicts: libffi-devel < %{version}-%{release}
1246 %description -n libffi47-devel
1247 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.
1251 %package -n libffi47-devel-32bit
1252 Summary: Foreign Function Interface library development files
1253 License: BSD 3-Clause
1254 Group: Development/Languages/C and C++
1255 Requires: libffi4-32bit >= %{version}-%{release}
1256 Provides: libffi-devel-32bit = %{version}-%{release}
1257 Conflicts: libffi-devel-32bit < %{version}-%{release}
1259 %description -n libffi47-devel-32bit
1260 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.
1264 %package -n libffi47-devel-64bit
1265 Summary: Foreign Function Interface library development files
1266 License: BSD 3-Clause
1267 Group: Development/Languages/C and C++
1268 Requires: libffi4-64bit >= %{version}-%{release}
1269 Provides: libffi-devel-64bit = %{version}-%{release}
1270 Conflicts: libffi-devel-64bit < %{version}-%{release}
1272 %description -n libffi47-devel-64bit
1273 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.
1276 %package -n gcc47-testresults
1277 # GCC-TESTSUITE-DELETE-END
1278 Summary: Testsuite results
1279 License: SUSE-Public-Domain
1280 Group: Development/Languages/C and C++
1282 %description -n gcc47-testresults
1283 Results from running the gcc and target library testsuites.
1288 # Define the canonical target and host architecture
1289 # %gcc_target_arch is supposed to be the full target triple
1290 # %TARGET_ARCH is the canonicalized CPU part
1291 # %CONFIGURE_TARGET is the target triple used for --target=
1292 %if 0%{?gcc_target_arch:1}
1293 %define CONFIGURE_TARGET %{gcc_target_arch}
1294 %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/;")
1295 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1296 %define CONFIGURE_TARGET i586-tizen-linux
1298 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1299 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1301 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1302 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1304 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7el"
1305 %define CONFIGURE_TARGET armv7el-tizen-linux-gnueabi
1307 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5el"
1308 %define CONFIGURE_TARGET armv5el-tizen-linux-gnueabi
1311 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1313 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1315 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1318 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1320 %define GCCDIST %{HOST_ARCH}-tizen-linux
1323 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1324 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1328 # Versionspecific directories
1329 %define versmainlibdir %{libsubdir}
1330 %define versmainlibdirbi32 %{libsubdir}/32
1331 %define versmainlibdirbi64 %{libsubdir}/64
1332 %if %{build_primary_64bit}
1333 %define versmainlibdirbi %{versmainlibdirbi32}
1335 %define versmainlibdirbi %{versmainlibdirbi64}
1338 %if 0%{?build_optional_compiler:1}
1339 %define mainlibdir %{versmainlibdir}
1340 %define mainlibdirbi32 %{versmainlibdirbi32}
1341 %define mainlibdirbi64 %{versmainlibdirbi64}
1342 %define noflibdir %{versnoflibdir}
1343 %define mainlibdirbi %{versmainlibdirbi}
1345 %define mainlibdir %{_libdir}
1346 %define mainlibdirbi32 %{_prefix}/lib
1347 %define mainlibdirbi64 %{_prefix}/lib64
1348 %define noflibdir %{_prefix}/lib/nof
1349 %if %{build_primary_64bit}
1350 %define mainlibdirbi %{mainlibdirbi32}
1352 %define mainlibdirbi %{mainlibdirbi64}
1357 # Now define a few macros that make it easy to package libs and
1358 # related files just to the right package, without caring for the
1359 # exact path the files are in.
1360 # %mainlib package X from all dirs that belong to the main package
1361 # %biarchlib package X from all dirs that belong to the -32/64bit package
1362 # by default, nof libs go where the 32bit libs go.
1364 %define mainlib() %{mainlibdir}/%1\
1368 %define mainlib() %{mainlibdir}/%1\
1371 %define biarchlib() %{nil}
1373 %if !%{separate_biarch}
1375 %define mainlib() %{mainlibdir}/%1\
1380 %define mainlib() %{mainlibdir}/%1\
1386 %define biarchlib() %{mainlibdirbi}/%1\
1389 %define mainlib() %{mainlibdir}/%1\
1392 %define biarchlib() %{mainlibdirbi}/%1\
1399 %define versmainlib() %{versmainlibdir}/%1\
1400 %{versnoflibdir}/%1\
1403 %define versmainlib() %{versmainlibdir}/%1\
1406 %define versbiarchlib() %{nil}
1408 %if !%{separate_biarch}
1410 %define versmainlib() %{versmainlibdir}/%1\
1411 %{versmainlibdirbi}/%1\
1412 %{versnoflibdir}/%1\
1415 %define versmainlib() %{versmainlibdir}/%1\
1416 %{versmainlibdirbi}/%1\
1421 %define versbiarchlib() %{versmainlibdirbi}/%1\
1422 %{versnoflibdir}/%1\
1424 %define versmainlib() %{versmainlibdir}/%1\
1427 %define versbiarchlib() %{versmainlibdirbi}/%1\
1437 #%setup -q -n gcc-%{gcc_version}%{snapshot_date}
1438 %setup -q -n gcc-%{version}
1439 # 0001-dir-version.patch
1445 # Avoid rebuilding of generated files
1446 contrib/gcc_update --touch
1447 # Avoid fucking up testsuite results with Java and indirect dispatch
1448 export LD_AS_NEEDED=0
1449 # Split version file into version used for directories (X.Y) and
1450 # version to report with --version (X.Y.Z).
1451 # See also gcc-dir-version.patch.
1452 # Also decrement the patchlevel version by one
1453 if test `cat gcc/DEV-PHASE` == "prerelease"; then
1454 ( 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
1456 mv gcc/BASE-VER gcc/FULL-VER
1458 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
1460 rm -rf obj-%{GCCDIST}
1461 mkdir obj-%{GCCDIST}
1463 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
1464 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'`
1466 # -mcpu is superceded by -mtune but -mtune is not supported by
1467 # our bootstrap compiler. -mcpu gives a warning that stops
1468 # the build process, so remove it for now. Also remove all other
1469 # -march and -mtune flags. They are superseeded by proper
1470 # default compiler settings now.
1471 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'`
1473 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1474 # Kill all -march/tune/cpu because that screws building the target libs
1475 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
1477 # Replace 2 spaces by one finally
1478 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
1482 languages=$languages,c++
1485 languages=$languages,objc
1487 %if %{build_fortran}
1488 languages=$languages,fortran
1491 languages=$languages,obj-c++
1494 languages=$languages,java
1497 languages=$languages,ada
1501 if test -z "$J"; then
1502 J=$(getconf _NPROCESSORS_CONF)
1505 test 1 -gt "$J" && J=1
1506 JL=$(($(getconf _NPROCESSORS_CONF)*2))
1508 if test "$J" == "0"; then
1511 if test "$JL" == "0"; then
1514 PARALLEL="-j$J -l$JL"
1516 # we don't want some miscompiles in the testsuite, or some fault in
1517 # the compiler to kill the machine. Hence we limit the amount of memory
1518 # by the physical RAM plus half of swap
1519 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
1520 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
1521 #ulimit -v $(((MEM + SWAP/2)*1024))
1523 # In general we want to ship release checking enabled compilers
1524 # and run BETA with checking enabled.
1525 #ENABLE_CHECKING="--enable-checking=yes"
1526 ENABLE_CHECKING="--enable-checking=release"
1528 # Work around tail/head -1 changes
1529 export _POSIX2_VERSION=199209
1531 # configure tries to parse include/features.h to detect
1532 # if glibc supports SSP. When cross compiling we would need
1533 # to install a cross glibc, which we don't, or make the whole
1534 # thing point to the native glibc, which is in /, hence the
1538 # Using the host gnatmake like
1539 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
1540 # GNATMAKE="gnatmake%{hostsuffix}"
1541 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
1543 mkdir -p host-tools/bin
1544 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
1545 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
1546 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
1547 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
1548 ln -sf /usr/%{_lib} host-tools/%{_lib}
1549 export PATH="`pwd`/host-tools/bin:$PATH"
1551 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1553 # --enable-threads=posix \
1556 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
1557 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
1559 --prefix=%{_prefix} \
1560 --infodir=%{_infodir} \
1561 --mandir=%{_mandir} \
1562 --libdir=%{_libdir} \
1563 --libexecdir=%{_libdir} \
1564 --enable-languages=$languages \
1566 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
1571 --disable-bootstrap \
1574 --with-bugurl="http://bugs.tizen.org/" \
1575 --with-pkgversion="Tizen Linux" \
1576 %if !%{build_libjava}
1579 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1580 --with-ecj-jar=%{libsubdir}/ecj.jar \
1581 --disable-java-awt \
1582 %if !%{biarch_libjava}
1583 --disable-libjava-multilib \
1586 %if !%{build_with_mudflap}
1587 --disable-libmudflap \
1589 --with-slibdir=/%{_lib} \
1590 --with-system-zlib \
1591 --enable-__cxa_atexit \
1592 --enable-libstdcxx-allocator=new \
1593 --disable-libstdcxx-pch \
1594 --enable-version-specific-runtime-libs \
1595 --enable-linker-build-id \
1596 %if 0%{?gcc_target_arch:1}
1597 %if 0%{?gcc_icecream:1}
1598 --with-build-sysroot=/ \
1599 --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
1600 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
1601 --enable-linux-futex \
1603 %if 0%{?canonical_target:1}
1604 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1606 %if 0%{?build_static:1}
1609 %if "%{TARGET_ARCH}" == "spu"
1610 --with-sysroot=/usr/spu \
1611 --with-gxx-include-dir=%{_prefix}/spu/include/c++/%{gcc_dir_version} \
1615 --target=%{CONFIGURE_TARGET} \
1617 --program-suffix=%{binsuffix} \
1618 --enable-linux-futex \
1620 --with-system-libunwind \
1622 --without-system-libunwind \
1625 %if "%{TARGET_ARCH}" == "armv5tel"
1626 --with-arch=armv5te \
1629 --with-abi=aapcs-linux \
1630 --disable-sjlj-exceptions \
1632 %if "%{TARGET_ARCH}" == "armv7el"
1633 --with-arch=armv7-a \
1634 --with-tune=cortex-a9 \
1638 --disable-sjlj-exceptions \
1640 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
1641 --with-arch=armv7-a \
1642 --with-tune=cortex-a9 \
1644 --with-abi=aapcs-linux \
1645 --with-fpu=vfpv3-d16 \
1646 --disable-sjlj-exceptions \
1648 %if "%{TARGET_ARCH}" == "i586"
1649 --with-arch-32=i586 \
1650 --with-tune=generic \
1652 %if "%{TARGET_ARCH}" == "x86_64"
1653 --with-arch-32=i586 \
1654 --with-tune=generic \
1660 %if 0%{?building_libffi:1}
1661 make stage1-bubble $PARALLEL
1662 make all-target-libffi $PARALLEL
1664 # Only run profiled bootstrap on archs where it works
1665 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1666 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1671 STAGE1_FLAGS="-O -g"
1673 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1674 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1678 %if 0%{?run_tests:1}
1679 echo "Run testsuite"
1680 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1681 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1682 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1683 make -k check $PARALLEL || true
1684 mkdir ../testresults
1685 ../contrib/test_summary | tee ../testresults/test_summary.txt
1690 export NO_BRP_CHECK_BYTECODE_VERSION=true
1692 # GCC-TESTSUITE-DELETE-BEGIN
1693 # Work around tail/head -1 changes
1694 export _POSIX2_VERSION=199209
1695 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1696 %if 0%{?building_libffi:1}
1697 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1699 %if 0%{?building_libjava:1}
1700 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1701 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1702 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1703 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1704 # install-common also installs collect2, gcov and the g++ and gfortran driver
1706 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1708 %if %{build_fortran}
1709 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1711 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1712 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1714 make install DESTDIR=$RPM_BUILD_ROOT
1716 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1717 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1718 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1719 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1720 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1721 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1726 # Remove libffi installed files if we did not want to build it
1727 %if !0%{?building_libffi:1}
1728 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1730 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1732 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1733 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1734 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1735 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1736 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1739 # Remove some useless .la files
1740 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1741 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij; do
1742 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1744 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1748 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1750 %if %{build_primary_64bit}
1751 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1753 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1757 # LIBFFI-DELETE-BEGIN
1758 # LIBJAVA-DELETE-BEGIN
1760 # Merge multilib c++config.h to allow omitting the duplicate and
1761 # identical other arch specific headers
1763 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1764 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1765 if ! diff -up $cxxconfig $i; then
1780 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1785 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1786 #ifndef _CPP_CPPCONFIG_WRAPPER
1787 #define _CPP_CPPCONFIG_WRAPPER 1
1788 #include <bits/wordsize.h>
1789 #if __WORDSIZE == 32
1799 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1800 if ! test -z "$dir_ml"; then
1801 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1804 # LIBJAVA-DELETE-END
1806 %if 0%{!?build_optional_compiler:1}
1807 # move shared libs from versionspecific dir to main libdir
1809 %if 0%{?building_libjava:1}
1810 libgcj libgij libgcj-tools \
1812 %if %{build_fortran}
1814 %ifarch %quadmath_arch
1825 %if %{build_with_mudflap}
1826 libmudflap libmudflapth \
1830 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1831 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1833 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1834 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1836 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1837 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1838 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1840 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1841 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1846 %if !0%{?building_libjava:1}
1847 # And we want to move the shlib gdb pretty printers to a more sane
1848 # place so ldconfig does not complain
1849 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1850 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1851 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1853 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1854 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1855 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1856 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1861 %if 0%{?building_libjava:1}
1862 # libgcj_bc is special as the .so file is actually a different
1863 # library as the library refered to by the SONAME which should
1864 # be a simple link to our libgcj.
1865 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1868 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.1
1869 %if %{biarch_libjava}
1870 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1873 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.1
1878 # LIBJAVA-DELETE-BEGIN
1879 %if 0%{!?build_optional_compiler:1}
1880 # Move libgcc_s around
1881 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1882 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1883 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1885 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1887 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1889 %if %{build_primary_64bit}
1890 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1891 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1892 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1894 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1896 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1897 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1899 # 32-bit biarch systems
1900 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1901 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1902 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1904 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1906 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1907 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1911 # Move libgcc_s around
1912 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/
1913 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1914 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1915 ln -sf %{versmainlibdir}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1917 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1919 chmod a+x $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so.%{libgcc_s}
1921 %if %{build_primary_64bit}
1922 mv $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1923 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1924 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1925 ln -sf %{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1927 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1929 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1930 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s}
1932 # 32-bit biarch systems
1933 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1934 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1935 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1936 ln -sf %{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1938 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1940 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1941 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s}
1946 # Provide a defaults.spec file which adds a proper rpath
1947 %if 0%{?build_optional_compiler:1}
1948 cat > $RPM_BUILD_ROOT%{libsubdir}/defaults.spec << EOF
1950 + %%{!m32:%%{!m64:-rpath=%{libsubdir}}} %%{m32:-rpath=%{libsubdir}/32} %%{m64:-rpath=%{libsubdir}/64}
1953 # LIBJAVA-DELETE-END
1957 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1958 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1959 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1960 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1962 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1963 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1964 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1965 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1969 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1971 # Remove some crap from the .la files:
1972 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1974 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1975 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1976 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1977 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1978 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1980 %if %{build_primary_64bit}
1981 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1982 -e '/^libdir/s|lib64/\.\./||' \
1984 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1991 # GCC-TESTSUITE-DELETE-END
1992 %if 0%{?run_tests:1}
1993 cp `find . -name "*.sum"` ../testresults/
1994 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1995 chmod 644 ../testresults/*
1997 # GCC-TESTSUITE-DELETE-BEGIN
1998 # LIBFFI-DELETE-BEGIN
2000 # Find C++ and Java headers
2001 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
2002 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
2003 -o \( -type d -printf "%%%%dir " , \
2004 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
2007 # Remove files that we do not need to clean up filelist
2008 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
2009 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
2010 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2011 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
2012 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
2013 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
2014 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
2015 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
2016 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
2017 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
2018 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
2019 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
2020 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
2021 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2022 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
2023 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
2024 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
2025 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2026 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
2028 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
2029 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
2030 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
2032 %if !0%{?building_libjava:1}%{?building_libffi:1}
2033 # delete compile flag tracking from crt files
2034 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
2036 %if %{build_primary_64bit}
2037 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
2039 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
2042 for o in $crt_list $crt32_list $crt64_list; do
2043 objcopy -R ".comment.SUSE.OPTs" $o
2047 %if 0%{?building_libjava:1}
2048 # gcj -static doesn't work properly anyway, unless using --whole-archive
2049 # let's save the space instead.
2050 find $RPM_BUILD_ROOT -name libgcj.a \
2051 -o -name libgcj-tools.a \
2054 -o -name libgcj_bc.a \
2057 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
2058 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
2060 # security files have broken install locations, also they cause conflicts
2061 # between libgcj versions. Simply delete them here, libgcj will use its
2062 # defaults in this case (which is what these files contain anyway).
2063 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
2064 rm -r $RPM_BUILD_ROOT%{_libdir}/security
2067 %if 0%{?building_libffi:1}
2068 # Move libffi headers, remove empty libffi libtool file
2069 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
2070 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
2071 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
2072 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
2074 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
2076 # Generate a simple pkg-config file
2077 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
2078 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
2082 %if !%{build_libjava}
2083 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
2084 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
2085 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
2086 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
2087 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
2088 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
2089 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
2091 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
2092 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
2094 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
2095 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
2096 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
2097 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
2099 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/nof/libiberty.a
2102 %if %{build_primary_64bit}
2103 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
2105 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
2108 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
2109 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
2111 # LIBFFI-DELETE-BEGIN
2112 %if 0%{?building_libjava:1}
2113 # For building libjava only we need to delete other info docs
2114 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
2115 # Remove stale manpages for binaries we do not build
2116 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
2117 # For building the java frontend we need to copy the ecj jar
2118 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
2119 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
2121 # For regular build, some info files do not get renamed properly.
2123 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
2124 %if %{build_fortran}
2125 %ifarch %quadmath_arch
2126 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
2130 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
2131 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
2132 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
2136 # LIBJAVA-DELETE-BEGIN
2138 %find_lang gcc47-locale --all-name
2141 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2142 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2143 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2144 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2145 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2146 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2147 %if %{build_fortran}
2148 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2149 %ifarch %quadmath_arch
2150 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2154 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2157 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2158 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2159 %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
2163 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2164 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2165 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2166 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2167 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2168 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2169 %if %{build_fortran}
2170 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2171 %ifarch %quadmath_arch
2172 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2176 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2179 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2180 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2181 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2186 %defattr(-,root,root)
2188 %dir %{_libdir}/gcc/%{GCCDIST}
2190 %dir %{libsubdir}/include
2191 %dir %{libsubdir}/include-fixed
2193 %if %{build_primary_64bit}
2194 %dir %{libsubdir}/32
2196 %dir %{libsubdir}/64
2200 %dir %{libsubdir}/nof
2202 %{_prefix}/bin/gcc%{binsuffix}
2203 %{_prefix}/bin/gcov%{binsuffix}
2204 %{_prefix}/bin/gcc-ar%{binsuffix}
2205 %{_prefix}/bin/gcc-nm%{binsuffix}
2206 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2207 %{libsubdir}/collect2
2209 %{libsubdir}/lto-wrapper
2210 %{libsubdir}/liblto_plugin.so*
2211 %{libsubdir}/include-fixed/README
2212 %{libsubdir}/include-fixed/limits.h
2213 %{libsubdir}/include-fixed/syslimits.h
2214 %{libsubdir}/include/omp.h
2215 %{libsubdir}/include/float.h
2216 %{libsubdir}/include/iso646.h
2217 %{libsubdir}/include/stdarg.h
2218 %{libsubdir}/include/stdbool.h
2219 %{libsubdir}/include/stdfix.h
2220 %{libsubdir}/include/stddef.h
2221 %{libsubdir}/include/unwind.h
2222 %{libsubdir}/include/varargs.h
2223 %{libsubdir}/include/stdint.h
2224 %{libsubdir}/include/stdint-gcc.h
2225 %{libsubdir}/include/stdnoreturn.h
2226 %{libsubdir}/include/stdalign.h
2228 %{libsubdir}/include/mmintrin.h
2229 %{libsubdir}/include/arm_neon.h
2230 %{libsubdir}/include/unwind-arm-common.h
2232 %ifarch %ix86 x86_64
2233 %{libsubdir}/include/cross-stdarg.h
2234 %{libsubdir}/include/cpuid.h
2235 %{libsubdir}/include/mm3dnow.h
2236 %{libsubdir}/include/mmintrin.h
2237 %{libsubdir}/include/ammintrin.h
2238 %{libsubdir}/include/bmmintrin.h
2239 %{libsubdir}/include/emmintrin.h
2240 %{libsubdir}/include/immintrin.h
2241 %{libsubdir}/include/avxintrin.h
2242 %{libsubdir}/include/pmmintrin.h
2243 %{libsubdir}/include/xmmintrin.h
2244 %{libsubdir}/include/tmmintrin.h
2245 %{libsubdir}/include/nmmintrin.h
2246 %{libsubdir}/include/smmintrin.h
2247 %{libsubdir}/include/wmmintrin.h
2248 %{libsubdir}/include/x86intrin.h
2249 %{libsubdir}/include/ia32intrin.h
2250 %{libsubdir}/include/mm_malloc.h
2251 %{libsubdir}/include/fma4intrin.h
2252 %{libsubdir}/include/xopintrin.h
2253 %{libsubdir}/include/lwpintrin.h
2254 %{libsubdir}/include/popcntintrin.h
2255 %{libsubdir}/include/bmiintrin.h
2256 %{libsubdir}/include/tbmintrin.h
2257 %{libsubdir}/include/avx2intrin.h
2258 %{libsubdir}/include/bmi2intrin.h
2259 %{libsubdir}/include/fmaintrin.h
2260 %{libsubdir}/include/lzcntintrin.h
2261 %{libsubdir}/include/f16cintrin.h
2263 %if %{build_with_mudflap}
2264 %{libsubdir}/include/mf-runtime.h
2266 %versmainlib *crt*.o
2267 %versmainlib libgcc*.a
2268 %versmainlib libgcov.a
2269 %versmainlib libgcc_s*.so
2270 %if %{build_with_mudflap}
2271 %versmainlib libmudflap.a
2272 %versmainlib libmudflap.so
2273 %versmainlib libmudflapth.a
2274 %versmainlib libmudflapth.so
2276 %versmainlib libgomp.so
2277 %versmainlib libgomp.a
2278 %versmainlib libgomp.spec
2279 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2280 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2281 %if 0%{?build_optional_compiler:1}
2282 %{libsubdir}/defaults.spec
2285 %if %{separate_biarch}
2286 %files -n gcc47%{separate_biarch_suffix}
2287 %defattr(-,root,root)
2288 %versbiarchlib *crt*.o
2289 %versbiarchlib libgcc*.a
2290 %versbiarchlib libgcov.a
2291 %versbiarchlib libgcc_s*.so
2292 %if %{build_with_mudflap}
2293 %versbiarchlib libmudflap.a
2294 %versbiarchlib libmudflap.so
2295 %versbiarchlib libmudflapth.a
2296 %versbiarchlib libmudflapth.so
2298 %versbiarchlib libgomp.so
2299 %versbiarchlib libgomp.a
2300 %versbiarchlib libgomp.spec
2303 %files locale -f gcc47-locale.lang
2307 %defattr(-,root,root)
2309 %dir %{_libdir}/gcc/%{GCCDIST}
2311 %{_prefix}/bin/g++%{binsuffix}
2312 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2313 %{libsubdir}/cc1plus
2315 %files -n libstdc++47
2316 %defattr(-,root,root)
2320 %mainlib libstdc++.so.*
2322 %if %{separate_biarch}
2323 %files -n libstdc++47%{separate_biarch_suffix}
2324 %defattr(-,root,root)
2325 %biarchlib libstdc++.so.*
2328 %files -n libstdc++47-devel -f c++-headers
2329 %defattr(-,root,root)
2330 %versmainlib libstdc++.a
2331 %versmainlib libstdc++.so
2332 %versmainlib libsupc++.a
2333 %dir %{_datadir}/gdb
2334 %dir %{_datadir}/gdb/auto-load
2335 %dir %{_datadir}/gdb/auto-load%{_prefix}
2336 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2337 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2338 %{_datadir}/gcc%{binsuffix}
2340 %if %{separate_biarch}
2341 %files -n libstdc++47-devel%{separate_biarch_suffix}
2342 %defattr(-,root,root)
2343 %versbiarchlib libstdc++.a
2344 %versbiarchlib libstdc++.so
2345 %versbiarchlib libsupc++.a
2346 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2347 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2350 %files -n libstdc++47-doc
2351 %defattr(-,root,root)
2352 %doc libstdc++-v3/doc/html
2356 %defattr(-,root,root)
2357 %if 0%{!?build_optional_compiler:1}
2358 /%{_lib}/libgcc_s.so.%{libgcc_s}
2361 /lib/nof/libgcc_s.so.%{libgcc_s}
2364 %if %{build_primary_64bit}
2365 %if !%{separate_bi32}
2366 /lib/libgcc_s.so.%{libgcc_s}
2369 %if !%{separate_bi64}
2370 /lib64/libgcc_s.so.%{libgcc_s}
2375 %versmainlib libgcc_s.so.%{libgcc_s}
2378 %if %{separate_bi64}
2379 %files -n libgcc47-64bit
2380 %defattr(-,root,root)
2381 %if 0%{!?build_optional_compiler:1}
2382 /lib64/libgcc_s.so.%{libgcc_s}
2384 %versbiarchlib libgcc_s.so.%{libgcc_s}
2388 %if %{separate_bi32}
2389 %files -n libgcc47-32bit
2390 %defattr(-,root,root)
2391 %if 0%{!?build_optional_compiler:1}
2392 /lib/libgcc_s.so.%{libgcc_s}
2394 %versbiarchlib libgcc_s.so.%{libgcc_s}
2400 %defattr(-,root,root)
2401 %mainlib libgomp.so.1*
2403 %if %{separate_biarch}
2404 %files -n libgomp47%{separate_biarch_suffix}
2405 %defattr(-,root,root)
2406 %biarchlib libgomp.so.1*
2410 %if %{build_fortran}
2412 %defattr(-,root,root)
2413 %dir %{libsubdir}/finclude
2414 %{_prefix}/bin/gfortran%{binsuffix}
2416 %{libsubdir}/finclude/*
2417 %versmainlib libgfortran.a
2418 %versmainlib libgfortran.so
2419 %versmainlib libgfortran.spec
2420 %versmainlib libgfortranbegin.a
2421 %versmainlib libcaf_single.a
2422 %ifarch %quadmath_arch
2423 %{libsubdir}/include/quadmath.h
2424 %{libsubdir}/include/quadmath_weak.h
2425 %versmainlib libquadmath.a
2426 %versmainlib libquadmath.so
2428 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2430 %if %{separate_biarch}
2431 %files fortran%{separate_biarch_suffix}
2432 %defattr(-,root,root)
2433 %versbiarchlib libgfortran.a
2434 %versbiarchlib libgfortran.so
2435 %versbiarchlib libgfortran.spec
2436 %versbiarchlib libgfortranbegin.a
2437 %versbiarchlib libcaf_single.a
2438 %ifarch %quadmath_arch
2439 %versbiarchlib libquadmath.a
2440 %versbiarchlib libquadmath.so
2444 %files -n libgfortran47
2445 %defattr(-,root,root)
2446 %mainlib libgfortran.so.*
2448 %if %{separate_biarch}
2449 %files -n libgfortran47%{separate_biarch_suffix}
2450 %defattr(-,root,root)
2451 %biarchlib libgfortran.so.*
2454 %ifarch %quadmath_arch
2455 %files -n libquadmath47
2456 %defattr(-,root,root)
2457 %mainlib libquadmath.so.*
2459 %if %{separate_biarch}
2460 %files -n libquadmath47%{separate_biarch_suffix}
2461 %defattr(-,root,root)
2462 %biarchlib libquadmath.so.*
2467 %if %{build_with_mudflap}
2468 %files -n libmudflap47
2469 %defattr(-,root,root)
2470 %mainlib libmudflap.so.0*
2471 %mainlib libmudflapth.so.0*
2473 %if %{separate_biarch}
2474 %files -n libmudflap47%{separate_biarch_suffix}
2475 %defattr(-,root,root)
2476 %biarchlib libmudflap.so.0*
2477 %biarchlib libmudflapth.so.0*
2482 %defattr(-,root,root)
2483 %doc %{_infodir}/cpp%{binsuffix}.info*.gz
2484 %doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
2485 %doc %{_infodir}/gcc%{binsuffix}.info*.gz
2486 %doc %{_infodir}/gccint%{binsuffix}.info*.gz
2487 %doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
2488 %doc %{_infodir}/libgomp%{binsuffix}.info*.gz
2489 %if %{build_fortran}
2490 %doc %{_infodir}/gfortran%{binsuffix}.info*.gz
2491 %ifarch %quadmath_arch
2492 %doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
2496 %doc %{_infodir}/gcj%{binsuffix}.info*.gz
2499 %doc %{_infodir}/gnat-style%{binsuffix}.info*gz
2500 %doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
2501 %doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
2505 %defattr(-,root,root)
2507 %dir %{_libdir}/gcc/%{GCCDIST}
2509 %{_prefix}/bin/cpp%{binsuffix}
2512 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2516 %defattr(-,root,root)
2518 %{libsubdir}/include/objc
2519 %versmainlib libobjc.a
2520 %versmainlib libobjc.so
2522 %if %{separate_biarch}
2523 %files objc%{separate_biarch_suffix}
2524 %defattr(-,root,root)
2525 %versbiarchlib libobjc.a
2526 %versbiarchlib libobjc.so
2530 %defattr(-,root,root)
2531 %mainlib libobjc.so.*
2533 %if %{separate_biarch}
2534 %files -n libobjc47%{separate_biarch_suffix}
2535 %defattr(-,root,root)
2536 %biarchlib libobjc.so.*
2543 %defattr(-,root,root)
2544 %{libsubdir}/cc1objplus
2550 %defattr(-,root,root)
2552 %dir %{_libdir}/gcc/%{GCCDIST}
2554 %{_prefix}/bin/gnat*
2555 %dir %{versmainlibdir}/adainclude
2556 %dir %{versmainlibdir}/adalib
2557 %{versmainlibdir}/adainclude
2558 %{versmainlibdir}/adalib/*.ali
2559 %{versmainlibdir}/adalib/*.a
2560 %{versmainlibdir}/adalib/libgnarl.so
2561 %{versmainlibdir}/adalib/libgnat.so
2562 %{versmainlibdir}/gnat1
2564 %if %{separate_biarch}
2565 %files ada%{separate_biarch_suffix}
2566 %defattr(-,root,root)
2567 %dir %{versmainlibdirbi}/adainclude
2568 %dir %{versmainlibdirbi}/adalib
2569 %{versmainlibdirbi}/adainclude
2570 %{versmainlibdirbi}/adalib/*.ali
2571 %{versmainlibdirbi}/adalib/*.a
2572 %{versmainlibdirbi}/adalib/libgnarl.so
2573 %{versmainlibdirbi}/adalib/libgnat.so
2577 %defattr(-,root,root)
2578 %mainlib libgnarl-*.so
2579 %mainlib libgnat-*.so
2581 %if %{separate_biarch}
2582 %files -n libada47%{separate_biarch_suffix}
2583 %defattr(-,root,root)
2584 %biarchlib libgnarl-*.so
2585 %biarchlib libgnat-*.so
2588 # LIBJAVA-DELETE-END
2592 %if 0%{?building_libjava:1}
2593 %files -n gcc47-java
2594 %defattr(-,root,root)
2595 %{_prefix}/bin/gcj%{binsuffix}
2596 %{_prefix}/bin/gcjh%{binsuffix}
2597 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2598 %{_prefix}/bin/jcf-dump%{binsuffix}
2599 %{_prefix}/bin/jv-convert%{binsuffix}
2600 %{_prefix}/bin/gc-analyze%{binsuffix}
2601 %{_prefix}/bin/aot-compile%{binsuffix}
2602 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2604 %{libsubdir}/jvgenmain
2605 %{libsubdir}/ecj.jar
2607 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2608 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2609 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2610 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2611 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2612 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2613 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2614 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2619 %if %{build_libjava}
2621 %defattr(-,root,root)
2622 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}
2624 %dir %{_libdir}/gcc/%{GCCDIST}
2626 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/classmap.db
2627 # We usually do not multilib libjava
2628 %if %{biarch_libjava}
2629 %versbiarchlib libgcj.la
2630 %biarchlib libgcj.so.*
2631 %biarchlib libgij.so.*
2632 %biarchlib libgcj-tools.so.*
2634 %versmainlib libgcj.la
2635 %mainlib libgcj.so.*
2636 %mainlib libgij.so.*
2637 %mainlib libgcj-tools.so.*
2639 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.la
2640 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.so
2641 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.la
2642 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.so
2644 %files -n libgcj_bc47
2645 %defattr(-,root,root)
2646 %if %{biarch_libjava}
2647 %biarchlib libgcj_bc.so.*
2649 %mainlib libgcj_bc.so.*
2652 %files -n libgcj47-jar
2653 %defattr(-,root,root)
2654 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2655 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2657 %files -n libgcj47-devel
2658 %defattr(-,root,root)
2659 %dir %{_prefix}/include/c++
2661 %dir %{libsubdir}/include
2663 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2664 %{libsubdir}/include/jawt.h
2665 %{libsubdir}/include/jawt_md.h
2666 %{libsubdir}/include/jni.h
2667 %{libsubdir}/include/jni_md.h
2668 %{libsubdir}/include/jvmpi.h
2675 %{libsubdir}/include/gcj
2676 %if %{biarch_libjava}
2677 %versbiarchlib libgcj.so
2678 %versbiarchlib libgcj.spec
2679 %versbiarchlib libgcj-tools.so
2680 %versbiarchlib libgij.so
2681 %versbiarchlib libgcj_bc.so
2683 %versmainlib libgcj.so
2684 %versmainlib libgcj.spec
2685 %versmainlib libgcj-tools.so
2686 %versmainlib libgij.so
2687 %versmainlib libgcj_bc.so
2691 %defattr(-,root,root)
2692 %{_prefix}/bin/gij%{binsuffix}
2693 %{_prefix}/bin/gappletviewer%{binsuffix}
2694 %{_prefix}/bin/gjar%{binsuffix}
2695 %{_prefix}/bin/gjarsigner%{binsuffix}
2696 %{_prefix}/bin/gjavah%{binsuffix}
2697 %{_prefix}/bin/gkeytool%{binsuffix}
2698 %{_prefix}/bin/gnative2ascii%{binsuffix}
2699 %{_prefix}/bin/gorbd%{binsuffix}
2700 %{_prefix}/bin/grmic%{binsuffix}
2701 %{_prefix}/bin/grmid%{binsuffix}
2702 %{_prefix}/bin/grmiregistry%{binsuffix}
2703 %{_prefix}/bin/gserialver%{binsuffix}
2704 %{_prefix}/bin/gtnameserv%{binsuffix}
2705 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2706 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2707 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2708 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2709 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2710 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2711 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2712 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2713 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2714 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2715 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2716 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2717 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2723 %if 0%{?building_libffi:1}
2725 %defattr(-,root,root)
2726 %mainlib libffi.so.*
2728 %if %{separate_biarch}
2729 %files -n libffi47%{separate_biarch_suffix}
2730 %defattr(-,root,root)
2731 %biarchlib libffi.so.*
2734 %files -n libffi47-devel
2735 %defattr(-,root,root)
2736 %{_prefix}/include/ffi.h
2737 %{_prefix}/include/ffitarget.h
2740 %{_libdir}/pkgconfig/libffi.pc
2741 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2742 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2743 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2745 %if %{separate_biarch}
2746 %files -n libffi47-devel%{separate_biarch_suffix}
2747 %defattr(-,root,root)
2748 %biarchlib libffi.so
2753 # GCC-TESTSUITE-DELETE-END
2755 %if 0%{?run_tests:1}
2756 %files -n gcc47-testresults
2757 %defattr(-,root,root)
2758 %doc testresults/test_summary.txt
2759 %doc testresults/*.sum
2760 %doc testresults/*.log