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
165 # GCC-TESTSUITE-DELETE-BEGIN
166 # LIBFFI-DELETE-BEGIN
167 # LIBJAVA-DELETE-BEGIN
168 Group: Development/Languages/C and C++
169 Summary: The GNU C Compiler and Support Files
173 Core package for the GNU Compiler Collection, including the C language
176 Language frontends other than C are split to different sub-packages,
177 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
183 %package -n gcc47-32bit
184 Summary: The GNU C Compiler 32bit support
185 Group: Development/Languages/C and C++
186 Requires: gcc47 = %{version}-%{release}
187 %if 0%{!?build_optional_compiler:1}
188 Requires: libgcc%{libgcc_s}-32bit >= %{version}-%{release}
189 Requires: libgomp1-32bit >= %{version}-%{release}
190 %if %{build_with_mudflap}
191 Requires: libmudflap0-32bit >= %{version}-%{release}
192 Requires: libmudflapth0-32bit >= %{version}-%{release}
195 Requires: libgcc47-32bit = %{version}-%{release}
196 Requires: libgomp47-32bit = %{version}-%{release}
198 Requires: glibc-devel-32bit
200 %description -n gcc47-32bit
201 This package contains 32bit support for the GNU Compiler Collection.
203 %package -n gcc47-64bit
204 Summary: The GNU C Compiler 64bit support
205 Group: Development/Languages/C and C++
206 Requires: gcc47 = %{version}-%{release}
207 %if 0%{!?build_optional_compiler:1}
208 Requires: libgcc%{libgcc_s}-64bit >= %{version}-%{release}
209 Requires: libgomp1-64bit >= %{version}-%{release}
210 %if %{build_with_mudflap}
211 Requires: libmudflap0-64bit >= %{version}-%{release}
212 Requires: libmudflapth0-64bit >= %{version}-%{release}
215 Requires: libgcc47-64bit = %{version}-%{release}
216 Requires: libgomp47-64bit = %{version}-%{release}
218 Requires: glibc-devel-64bit
220 %description -n gcc47-64bit
221 This package contains 64bit support for the GNU Compiler Collection.
225 Summary: Locale Data for the GNU Compiler Collection
227 Group: Development/Languages/C and C++
228 Requires: gcc47 = %{version}-%{release}
231 Locale data for the GNU Compiler Collection (GCC) to give error message
232 in the current locale.
236 Summary: The GNU C++ Compiler
238 Group: Development/Languages/C and C++
239 Requires: gcc47 = %{version}-%{release}
240 Requires: libstdc++47-devel = %{version}-%{release}
243 This package contains the GNU compiler for C++.
247 %package -n libstdc++47-devel
248 Summary: Include Files and Libraries mandatory for Development
249 License: GPL-3.0-with-GCC-exception
250 Group: Development/Languages/C and C++
251 %if 0%{!?build_optional_compiler:1}
252 Requires: libstdc++6 >= %{version}-%{release}
254 Requires: libstdc++47 = %{version}-%{release}
256 Requires: glibc-devel
258 Requires: libunwind-devel
261 %description -n libstdc++47-devel
262 This package contains all the headers and libraries of the standard C++
263 library. It is needed for compiling C++ code.
267 %package -n libstdc++47-devel-32bit
268 Summary: Include Files and Libraries mandatory for Development
269 License: GPL-3.0-with-GCC-exception
270 Group: Development/Languages/C and C++
271 %if 0%{!?build_optional_compiler:1}
272 Requires: libstdc++6-32bit >= %{version}-%{release}
274 Requires: libstdc++47-32bit = %{version}-%{release}
276 Requires: glibc-devel-32bit
278 Requires: libunwind-devel
281 %description -n libstdc++47-devel-32bit
282 This package contains all the headers and libraries of the standard C++
283 library. It is needed for compiling C++ code.
287 %package -n libstdc++47-devel-64bit
288 Summary: Include Files and Libraries mandatory for Development
289 License: GPL-3.0-with-GCC-exception
290 Group: Development/Languages/C and C++
291 %if 0%{!?build_optional_compiler:1}
292 Requires: libstdc++6-64bit >= %{version}-%{release}
294 Requires: libstdc++47-64bit = %{version}-%{release}
296 Requires: glibc-devel-64bit
298 Requires: libunwind-devel
301 %description -n libstdc++47-devel-64bit
302 This package contains all the headers and libraries of the standard C++
303 library. It is needed for compiling C++ code.
306 %package -n libstdc++47-doc
307 Summary: Documentation for the GNU C++ standard library
309 Group: Documentation/HTML
312 %description -n libstdc++47-doc
313 Extensive HTML documentation for the GNU C++ standard library.
319 Summary: C compiler runtime library
320 License: GPL-3.0-with-GCC-exception
322 %if 0%{!?build_optional_compiler:1}
323 Provides: libgcc%{libgcc_s} = %{version}-%{release}
324 Conflicts: libgcc%{libgcc_s} < %{version}-%{release}
329 %description -n libgcc47
330 Libgcc is needed for dynamically linked C programs.
340 %package -n libgcc47-32bit
341 Summary: C compiler runtime library
342 License: GPL-3.0-with-GCC-exception
344 %if 0%{!?build_optional_compiler:1}
345 Provides: libgcc%{libgcc_s}-32bit = %{version}-%{release}
346 Conflicts: libgcc%{libgcc_s}-32bit < %{version}-%{release}
351 %description -n libgcc47-32bit
352 Libgcc is needed for dynamically linked C programs.
354 %post -n libgcc47-32bit
357 %postun -n libgcc47-32bit
362 %package -n libgcc47-64bit
363 Summary: C compiler runtime library
364 License: GPL-3.0-with-GCC-exception
366 %if 0%{!?build_optional_compiler:1}
367 Provides: libgcc%{libgcc_s}-64bit = %{version}-%{release}
368 Conflicts: libgcc%{libgcc_s}-64bit < %{version}-%{release}
373 %description -n libgcc47-64bit
374 Libgcc is needed for dynamically linked C programs.
376 %post -n libgcc47-64bit
379 %postun -n libgcc47-64bit
385 %package -n libgomp47
386 Summary: The GNU compiler collection OpenMP runtime library
387 License: GPL-3.0-with-GCC-exception
389 %if 0%{!?build_optional_compiler:1}
390 Provides: libgomp1 = %{version}-%{release}
391 Conflicts: libgomp1 < %{version}-%{release}
396 %description -n libgomp47
397 This is the OpenMP runtime library needed by OpenMP enabled programs
398 that were built with the -fopenmp compiler option and by programs that
399 were auto-parallelized via the -ftree-parallelize-loops compiler
411 %package -n libgomp47-32bit
412 Summary: The GNU compiler collection OpenMP runtime library
413 License: GPL-3.0-with-GCC-exception
415 %if 0%{!?build_optional_compiler:1}
416 Provides: libgomp1-32bit = %{version}-%{release}
417 Conflicts: libgomp1-32bit < %{version}-%{release}
422 %description -n libgomp47-32bit
423 This is the OpenMP runtime library needed by OpenMP enabled programs
424 that were built with the -fopenmp compiler option and by programs that
425 were auto-parallelized via the -ftree-parallelize-loops compiler
429 %post -n libgomp47-32bit
432 %postun -n libgomp47-32bit
437 %package -n libgomp47-64bit
438 Summary: The GNU compiler collection OpenMP runtime library
439 License: GPL-3.0-with-GCC-exception
441 %if 0%{!?build_optional_compiler:1}
442 Provides: libgomp1-64bit = %{version}-%{release}
443 Conflicts: libgomp1-64bit < %{version}-%{release}
448 %description -n libgomp47-64bit
449 This is the OpenMP runtime library needed by OpenMP enabled programs
450 that were built with the -fopenmp compiler option and by programs that
451 were auto-parallelized via the -ftree-parallelize-loops compiler
455 %post -n libgomp47-64bit
458 %postun -n libgomp47-64bit
464 %package -n libstdc++47
465 Summary: The standard C++ shared library
466 License: GPL-3.0-with-GCC-exception
467 Group: System/Libraries
468 %if 0%{!?build_optional_compiler:1}
469 Provides: libstdc++6 = %{version}-%{release}
470 Conflicts: libstdc++6 < %{version}-%{release}
475 %description -n libstdc++47
476 The standard C++ library, needed for dynamically linked C++ programs.
482 %postun -n libstdc++47
487 %package -n libstdc++47-32bit
488 Summary: The standard C++ shared library
489 License: GPL-3.0-with-GCC-exception
490 Group: System/Libraries
491 %if 0%{!?build_optional_compiler:1}
492 Provides: libstdc++6-32bit = %{version}-%{release}
493 Conflicts: libstdc++6-32bit < %{version}-%{release}
498 %description -n libstdc++47-32bit
499 The standard C++ library, needed for dynamically linked C++ programs.
502 %post -n libstdc++47-32bit
505 %postun -n libstdc++47-32bit
510 %package -n libstdc++47-64bit
511 Summary: The standard C++ shared library
512 License: GPL-3.0-with-GCC-exception
513 Group: System/Libraries
514 %if 0%{!?build_optional_compiler:1}
515 Provides: libstdc++6-64bit = %{version}-%{release}
516 Conflicts: libstdc++6-64bit < %{version}-%{release}
521 %description -n libstdc++47-64bit
522 The standard C++ library, needed for dynamically linked C++ programs.
525 %post -n libstdc++47-64bit
528 %postun -n libstdc++47-64bit
534 Summary: Documentation for the GNU compiler collection
536 Group: Documentation/Other
540 GNU info-pages for the GNU compiler collection covering both user-level
541 and internals documentation.
547 Summary: GNU Objective C Compiler
549 Group: Development/Languages/Other
550 Requires: gcc47 = %{version}-%{release}
551 Requires: libobjc2 >= %{version}-%{release}
554 This package contains the GNU Objective C compiler. Objective C is an
555 object oriented language, created by Next Inc. and used in their
556 Nextstep OS. The source code is available in the gcc package.
561 Summary: GNU Objective C Compiler
563 Group: Development/Languages/Other
564 Requires: gcc47 = %{version}-%{release}
565 Requires: libobjc2-32bit >= %{version}-%{release}
567 %description objc-32bit
568 This package contains the GNU Objective C compiler. Objective C is an
569 object oriented language, created by Next Inc. and used in their
570 Nextstep OS. The source code is available in the gcc package.
575 Summary: GNU Objective C Compiler
577 Group: Development/Languages/Other
578 Requires: gcc47 = %{version}-%{release}
579 Requires: libobjc2-64bit >= %{version}-%{release}
581 %description objc-64bit
582 This package contains the GNU Objective C compiler. Objective C is an
583 object oriented language, created by Next Inc. and used in their
584 Nextstep OS. The source code is available in the gcc package.
589 %package -n libobjc47
590 Summary: Library for the GNU Objective C Compiler
591 License: GPL-3.0-with-GCC-exception
592 Group: Development/Libraries/Other
593 Provides: libobjc2 = %{version}-%{release}
594 Conflicts: libobjc2 < %{version}-%{release}
596 %description -n libobjc47
597 The library for the GNU Objective C compiler.
607 %package -n libobjc47-32bit
608 Summary: Library for the GNU Objective C Compiler
609 License: GPL-3.0-with-GCC-exception
610 Group: Development/Libraries/Other
611 Provides: libobjc2-32bit = %{version}-%{release}
612 Conflicts: libobjc2-32bit < %{version}-%{release}
614 %description -n libobjc47-32bit
615 The library for the GNU Objective C compiler.
617 %post -n libobjc47-32bit
620 %postun -n libobjc47-32bit
625 %package -n libobjc47-64bit
626 Summary: Library for the GNU Objective C Compiler
627 License: GPL-3.0-with-GCC-exception
628 Group: Development/Libraries/Other
629 Provides: libobjc2-64bit = %{version}-%{release}
630 Conflicts: libobjc2-64bit < %{version}-%{release}
632 %description -n libobjc47-64bit
633 The library for the GNU Objective C compiler.
635 %post -n libobjc47-64bit
638 %postun -n libobjc47-64bit
643 Summary: GNU Objective C++ Compiler
645 Group: Development/Languages/Other
646 Requires: gcc47-objc = %{version}-%{release}
647 Requires: gcc47-c++ = %{version}-%{release}
650 This package contains the GNU Objective C++ compiler. Objective C++ is an
651 object oriented language, created by Next Inc. and used in their
652 Nextstep OS. The source code is available in the gcc package.
656 Summary: The GCC Preprocessor
658 Group: Development/Languages/C and C++
660 %description -n cpp47
661 This Package contains just the preprocessor that is used by the X11
668 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
670 Group: Development/Languages/Other
671 Requires: gcc47 = %{version}-%{release}
672 Requires: libada47 = %{version}-%{release}
675 This package contains an Ada95 compiler and associated development
676 tools based on the GNU GCC technology. Ada95 is the object oriented
677 successor of the Ada83 language. To build this package from source you
678 must have installed a binary version to bootstrap the compiler.
683 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
685 Group: Development/Languages/Other
686 Requires: gcc47-32bit = %{version}-%{release}
687 Requires: libada47-32bit = %{version}-%{release}
689 %description ada-32bit
690 This package contains an Ada95 compiler and associated development
691 tools based on the GNU GCC technology. Ada95 is the object oriented
692 successor of the Ada83 language. To build this package from source you
693 must have installed a binary version to bootstrap the compiler.
698 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
700 Group: Development/Languages/Other
701 Requires: gcc47-64bit = %{version}-%{release}
702 Requires: libada47-64bit = %{version}-%{release}
704 %description ada-64bit
705 This package contains an Ada95 compiler and associated development
706 tools based on the GNU GCC technology. Ada95 is the object oriented
707 successor of the Ada83 language. To build this package from source you
708 must have installed a binary version to bootstrap the compiler.
714 Summary: GNU Ada Runtime Libraries
715 License: GPL-3.0-with-GCC-exception
716 Group: System/Libraries
717 Provides: libgnarl-4_7 = %{version}-%{release}
718 Conflicts: libgnarl-4_7 < %{version}-%{release}
719 Provides: libgnat-4_7 = %{version}-%{release}
720 Conflicts: libgnat-4_7 < %{version}-%{release}
722 %description -n libada47
723 This package contains the shared libraries required to run programs
724 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
725 shared libraries. It also contains the shared libraries for the
726 Implementation of the Ada Semantic Interface Specification (ASIS), the
727 implementation of Distributed Systems Programming (GLADE) and the Posix
728 1003.5 Binding (Florist).
738 %package -n libada47-32bit
739 Summary: GNU Ada Runtime Libraries
740 License: GPL-3.0-with-GCC-exception
741 Group: System/Libraries
742 Provides: libgnarl-4_7-32bit = %{version}-%{release}
743 Conflicts: libgnarl-4_7-32bit < %{version}-%{release}
744 Provides: libgnat-4_7-32bit = %{version}-%{release}
745 Conflicts: libgnat-4_7-32bit < %{version}-%{release}
747 %description -n libada47-32bit
748 This package contains the shared libraries required to run programs
749 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
750 shared libraries. It also contains the shared libraries for the
751 Implementation of the Ada Semantic Interface Specification (ASIS), the
752 implementation of Distributed Systems Programming (GLADE) and the Posix
753 1003.5 Binding (Florist).
755 %post -n libada47-32bit
758 %postun -n libada47-32bit
763 %package -n libada47-64bit
764 Summary: GNU Ada Runtime Libraries
765 License: GPL-3.0-with-GCC-exception
766 Group: System/Libraries
767 Provides: libgnarl-4_7-64bit = %{version}-%{release}
768 Conflicts: libgnarl-4_7-64bit < %{version}-%{release}
769 Provides: libgnat-4_7-64bit = %{version}-%{release}
770 Conflicts: libgnat-4_7-64bit < %{version}-%{release}
772 %description -n libada47-64bit
773 This package contains the shared libraries required to run programs
774 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
775 shared libraries. It also contains the shared libraries for the
776 Implementation of the Ada Semantic Interface Specification (ASIS), the
777 implementation of Distributed Systems Programming (GLADE) and the Posix
778 1003.5 Binding (Florist).
780 %post -n libada47-64bit
783 %postun -n libada47-64bit
790 Summary: The GNU Fortran Compiler and Support Files
792 Group: Development/Languages/Fortran
793 Requires: gcc47 = %{version}-%{release}
794 %if 0%{!?build_optional_compiler:1}
795 Requires: libgfortran3 >= %{version}-%{release}
796 %ifarch %quadmath_arch
797 Requires: libquadmath0 >= %{version}-%{release}
800 Requires: libgfortran47 = %{version}-%{release}
801 %ifarch %quadmath_arch
802 Requires: libquadmath47 = %{version}-%{release}
807 This is the Fortran compiler of the GNU Compiler Collection (GCC).
811 %package fortran-32bit
812 Summary: The GNU Fortran Compiler and Support Files
814 Group: Development/Languages/Fortran
815 Requires: gcc47 = %{version}-%{release}
816 %if 0%{!?build_optional_compiler:1}
817 Requires: libgfortran3-32bit >= %{version}-%{release}
818 %ifarch %quadmath_arch
819 Requires: libquadmath0-32bit >= %{version}-%{release}
822 Requires: libgfortran47-32bit = %{version}-%{release}
823 %ifarch %quadmath_arch
824 Requires: libquadmath47-32bit = %{version}-%{release}
828 %description fortran-32bit
829 This is the Fortran compiler of the GNU Compiler Collection (GCC).
833 %package fortran-64bit
834 Summary: The GNU Fortran Compiler and Support Files
836 Group: Development/Languages/Fortran
837 Requires: gcc47 = %{version}-%{release}
838 %if 0%{!?build_optional_compiler:1}
839 Requires: libgfortran3-64bit >= %{version}-%{release}
840 %ifarch %quadmath_arch
841 Requires: libquadmath0-64bit >= %{version}-%{release}
844 Requires: libgfortran47-64bit = %{version}-%{release}
845 %ifarch %quadmath_arch
846 Requires: libquadmath47-64bit = %{version}-%{release}
850 %description fortran-64bit
851 This is the Fortran compiler of the GNU Compiler Collection (GCC).
856 %package -n libgfortran47
857 Summary: The GNU Fortran Compiler Runtime Library
858 License: GPL-3.0-with-GCC-exception
859 Group: Development/Languages/Fortran
860 %if 0%{!?build_optional_compiler:1}
861 Provides: libgfortran3 = %{version}-%{release}
862 Conflicts: libgfortran3 < %{version}-%{release}
863 %ifarch %quadmath_arch
864 Requires: libquadmath0 >= %{version}-%{release}
867 %ifarch %quadmath_arch
868 Requires: libquadmath47 = %{version}-%{release}
873 %description -n libgfortran47
874 The runtime library needed to run programs compiled with the Fortran compiler
875 of the GNU Compiler Collection (GCC).
877 %post -n libgfortran47
880 %postun -n libgfortran47
885 %package -n libgfortran47-32bit
886 Summary: The GNU Fortran Compiler Runtime Library
887 License: GPL-3.0-with-GCC-exception
888 Group: Development/Languages/Fortran
889 %if 0%{!?build_optional_compiler:1}
890 Provides: libgfortran3-32bit = %{version}-%{release}
891 Conflicts: libgfortran3-32bit < %{version}-%{release}
892 %ifarch %quadmath_arch
893 Requires: libquadmath0-32bit >= %{version}-%{release}
896 %ifarch %quadmath_arch
897 Requires: libquadmath47-32bit = %{version}-%{release}
902 %description -n libgfortran47-32bit
903 The runtime library needed to run programs compiled with the Fortran compiler
904 of the GNU Compiler Collection (GCC).
906 %post -n libgfortran47-32bit
909 %postun -n libgfortran47-32bit
914 %package -n libgfortran47-64bit
915 Summary: The GNU Fortran Compiler Runtime Library
916 License: GPL-3.0-with-GCC-exception
917 Group: Development/Languages/Fortran
918 %if 0%{!?build_optional_compiler:1}
919 Provides: libgfortran3-64bit = %{version}-%{release}
920 Conflicts: libgfortran3-64bit < %{version}-%{release}
921 %ifarch %quadmath_arch
922 Requires: libquadmath0-64bit >= %{version}-%{release}
925 %ifarch %quadmath_arch
926 Requires: libquadmath47-64bit = %{version}-%{release}
931 %description -n libgfortran47-64bit
932 The runtime library needed to run programs compiled with the Fortran compiler
933 of the GNU Compiler Collection (GCC).
935 %post -n libgfortran47-64bit
938 %postun -n libgfortran47-64bit
944 %package -n libquadmath47
945 Summary: The GNU Fortran Compiler Quadmath Runtime Library
947 Group: Development/Languages/Fortran
948 %if 0%{!?build_optional_compiler:1}
949 Provides: libquadmath0 = %{version}-%{release}
950 Conflicts: libquadmath0 < %{version}-%{release}
955 %description -n libquadmath47
956 The runtime library needed to run programs compiled with the Fortran compiler
957 of the GNU Compiler Collection (GCC) and quadruple precision floating point
960 %post -n libquadmath47
963 %postun -n libquadmath47
968 %package -n libquadmath47-32bit
969 Summary: The GNU Fortran Compiler Quadmath Runtime Library
971 Group: Development/Languages/Fortran
972 %if 0%{!?build_optional_compiler:1}
973 Provides: libquadmath0-32bit = %{version}-%{release}
974 Conflicts: libquadmath0-32bit < %{version}-%{release}
979 %description -n libquadmath47-32bit
980 The runtime library needed to run programs compiled with the Fortran compiler
981 of the GNU Compiler Collection (GCC) and quadruple precision floating point
984 %post -n libquadmath47-32bit
987 %postun -n libquadmath47-32bit
992 %package -n libquadmath47-64bit
993 Summary: The GNU Fortran Compiler Quadmath Runtime Library
995 Group: Development/Languages/Fortran
996 %if 0%{!?build_optional_compiler:1}
997 Provides: libquadmath0-64bit = %{version}-%{release}
998 Conflicts: libquadmath0-64bit < %{version}-%{release}
1003 %description -n libquadmath47-64bit
1004 The runtime library needed to run programs compiled with the Fortran compiler
1005 of the GNU Compiler Collection (GCC) and quadruple precision floating point
1008 %post -n libquadmath47-64bit
1011 %postun -n libquadmath47-64bit
1017 %package -n libmudflap47
1018 Summary: The Mudflap Extension Runtime Library
1019 License: GPL-3.0-with-GCC-exception
1020 Group: Development/Languages/C and C++
1021 Provides: libmudflap0 = %{version}-%{release}
1022 Conflicts: libmudflap0 < %{version}-%{release}
1023 Provides: libmudflapth0 = %{version}-%{release}
1024 Conflicts: libmudflapth0 < %{version}-%{release}
1026 %description -n libmudflap47
1027 This is the Mudflap Extension Runtime Library.
1029 %post -n libmudflap47
1032 %postun -n libmudflap47
1037 %package -n libmudflap47-32bit
1038 Summary: The Mudflap Extension Runtime Library
1039 License: GPL-3.0-with-GCC-exception
1040 Group: Development/Languages/C and C++
1041 Provides: libmudflap0-32bit = %{version}-%{release}
1042 Conflicts: libmudflap0-32bit < %{version}-%{release}
1043 Provides: libmudflapth0-32bit = %{version}-%{release}
1044 Conflicts: libmudflapth0-32bit < %{version}-%{release}
1046 %description -n libmudflap47-32bit
1047 This is the Mudflap Extension Runtime Library.
1049 %post -n libmudflap47-32bit
1052 %postun -n libmudflap47-32bit
1057 %package -n libmudflap47-64bit
1058 Summary: The Mudflap Extension Runtime Library
1059 License: GPL-3.0-with-GCC-exception
1060 Group: Development/Languages/C and C++
1061 Provides: libmudflap0-64bit = %{version}-%{release}
1062 Conflicts: libmudflap0-64bit < %{version}-%{release}
1063 Provides: libmudflapth0-64bit = %{version}-%{release}
1064 Conflicts: libmudflapth0-64bit < %{version}-%{release}
1066 %description -n libmudflap47-64bit
1067 This is the Mudflap Extension Runtime Library.
1069 %post -n libmudflap47-64bit
1072 %postun -n libmudflap47-64bit
1077 %package -n libgcj47
1078 # LIBJAVA-DELETE-END
1079 Summary: Java Runtime Library for gcc
1080 License: GPL-2.0-with-classpath-exception
1081 Group: System/Libraries
1082 %define gcj_sover 13
1083 Provides: libgcj%{gcj_sover} = %{version}-%{release}
1084 Conflicts: libgcj%{gcj_sover} < %{version}-%{release}
1085 Provides: libgij%{gcj_sover} = %{version}-%{release}
1086 Conflicts: libgij%{gcj_sover} < %{version}-%{release}
1087 Provides: libgcj-tools%{gcj_sover} = %{version}-%{release}
1088 Conflicts: libgcj-tools%{gcj_sover} < %{version}-%{release}
1090 %description -n libgcj47
1091 This library is needed if you want to use the GNU Java compiler, gcj.
1092 Source code for this package is in gcc.
1101 %package -n gcc47-java
1102 Summary: The GNU Java Compiler
1104 Group: Development/Languages/Java
1105 Requires: gcc47 = %{version}
1106 Requires: libgcj47-devel = %{version}-%{release}
1108 %description -n gcc47-java
1109 The Java compiler from the GCC-tools-suite.
1112 %package -n libgcj_bc47
1113 Summary: Fake library for BC-ABI compatibility.
1114 License: GPL-2.0-with-classpath-exception
1115 Group: Development/Libraries/Java
1116 Provides: libgcj_bc1 = %{version}-%{release}
1117 Conflicts: libgcj_bc1 < %{version}-%{release}
1118 # libgcj_bc is special in that it just contains a symlink to
1119 # a proper libgcj version. So require that library and add
1120 # provides for the shlib version as created at link time
1121 Requires: libgcj%{gcj_sover}
1123 Provides: libgcj_bc.so.1()(64bit)
1125 Provides: libgcj_bc.so.1
1129 %description -n libgcj_bc47
1130 A fake library that is used at link time only. It ensures that
1131 binaries built with the BC-ABI link against a constant SONAME.
1132 This way, BC-ABI binaries continue to work if the SONAME underlying
1136 %package -n libgcj47-jar
1137 Summary: Java runtime library (jar files).
1138 License: GPL-2.0-with-classpath-exception
1139 Group: Development/Libraries/Java
1141 %description -n libgcj47-jar
1142 These are the jar files that go along with the gcj front end to gcc.
1145 %package -n libgcj47-devel
1146 Summary: Include Files and Libraries mandatory for Development.
1147 License: GPL-2.0-with-classpath-exception
1148 Group: Development/Libraries/Java
1149 Requires: libstdc++47-devel = %{version}
1150 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1151 Requires: libgcj_bc1 >= %{version}-%{release}
1152 Requires: libgcj47-jar = %{version}-%{release}
1153 Requires: gtk2-devel
1154 Requires: libart_lgpl-devel
1155 Requires: glibc-devel
1156 Requires: zlib-devel
1158 Requires: libunwind-devel
1161 %description -n libgcj47-devel
1162 This package contains all necessary include files and libraries needed
1163 to develop applications that require these.
1166 %package -n gcc47-gij
1167 Summary: Java Bytecode Interpreter for gcc
1168 License: GPL-2.0-with-classpath-exception
1169 Group: Development/Libraries/Java
1170 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1172 %description -n gcc47-gij
1173 This package contains the java bytecode interpreter gij and related tools.
1178 %package -n libffi47
1179 Summary: Foreign Function Interface library
1180 License: BSD-3-Clause
1181 Group: Development/Languages/C and C++
1182 Provides: g-wrap:/usr/lib/libffi.so.4
1183 Provides: libffi4 = %{version}-%{release}
1184 Conflicts: libffi4 < %{version}-%{release}
1186 %description -n libffi47
1187 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.
1197 %package -n libffi47-32bit
1198 Summary: Foreign Function Interface library
1199 License: BSD-3-Clause
1200 Group: Development/Languages/C and C++
1201 Provides: g-wrap:/usr/lib/libffi.so.4
1202 Provides: libffi4-32bit = %{version}-%{release}
1203 Conflicts: libffi4-32bit < %{version}-%{release}
1205 %description -n libffi47-32bit
1206 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.
1208 %post -n libffi47-32bit
1211 %postun -n libffi47-32bit
1216 %package -n libffi47-64bit
1217 Summary: Foreign Function Interface library
1218 License: BSD-3-Clause
1219 Group: Development/Languages/C and C++
1220 Provides: g-wrap:/usr/lib/libffi.so.4
1221 Provides: libffi4-64bit = %{version}-%{release}
1222 Conflicts: libffi4-64bit < %{version}-%{release}
1224 %description -n libffi47-64bit
1225 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.
1227 %post -n libffi47-64bit
1230 %postun -n libffi47-64bit
1236 %package -n libffi47-devel
1237 Summary: Foreign Function Interface library development files
1238 License: BSD 3-Clause
1239 Group: Development/Languages/C and C++
1240 Requires: libffi4 >= %{version}-%{release}
1241 Provides: libffi-devel = %{version}-%{release}
1242 Conflicts: libffi-devel < %{version}-%{release}
1244 %description -n libffi47-devel
1245 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.
1249 %package -n libffi47-devel-32bit
1250 Summary: Foreign Function Interface library development files
1251 License: BSD 3-Clause
1252 Group: Development/Languages/C and C++
1253 Requires: libffi4-32bit >= %{version}-%{release}
1254 Provides: libffi-devel-32bit = %{version}-%{release}
1255 Conflicts: libffi-devel-32bit < %{version}-%{release}
1257 %description -n libffi47-devel-32bit
1258 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.
1262 %package -n libffi47-devel-64bit
1263 Summary: Foreign Function Interface library development files
1264 License: BSD 3-Clause
1265 Group: Development/Languages/C and C++
1266 Requires: libffi4-64bit >= %{version}-%{release}
1267 Provides: libffi-devel-64bit = %{version}-%{release}
1268 Conflicts: libffi-devel-64bit < %{version}-%{release}
1270 %description -n libffi47-devel-64bit
1271 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.
1274 %package -n gcc47-testresults
1275 # GCC-TESTSUITE-DELETE-END
1276 Summary: Testsuite results
1277 License: SUSE-Public-Domain
1278 Group: Development/Languages/C and C++
1280 %description -n gcc47-testresults
1281 Results from running the gcc and target library testsuites.
1286 # Define the canonical target and host architecture
1287 # %gcc_target_arch is supposed to be the full target triple
1288 # %TARGET_ARCH is the canonicalized CPU part
1289 # %CONFIGURE_TARGET is the target triple used for --target=
1290 %if 0%{?gcc_target_arch:1}
1291 %define CONFIGURE_TARGET %{gcc_target_arch}
1292 %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/;")
1293 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1294 %define CONFIGURE_TARGET i586-tizen-linux
1296 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1297 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1299 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1300 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1302 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7el"
1303 %define CONFIGURE_TARGET armv7el-tizen-linux-gnueabi
1305 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5el"
1306 %define CONFIGURE_TARGET armv5el-tizen-linux-gnueabi
1309 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1311 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1313 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1316 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1318 %define GCCDIST %{HOST_ARCH}-tizen-linux
1321 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1322 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1326 # Versionspecific directories
1327 %define versmainlibdir %{libsubdir}
1328 %define versmainlibdirbi32 %{libsubdir}/32
1329 %define versmainlibdirbi64 %{libsubdir}/64
1330 %if %{build_primary_64bit}
1331 %define versmainlibdirbi %{versmainlibdirbi32}
1333 %define versmainlibdirbi %{versmainlibdirbi64}
1336 %if 0%{?build_optional_compiler:1}
1337 %define mainlibdir %{versmainlibdir}
1338 %define mainlibdirbi32 %{versmainlibdirbi32}
1339 %define mainlibdirbi64 %{versmainlibdirbi64}
1340 %define noflibdir %{versnoflibdir}
1341 %define mainlibdirbi %{versmainlibdirbi}
1343 %define mainlibdir %{_libdir}
1344 %define mainlibdirbi32 %{_prefix}/lib
1345 %define mainlibdirbi64 %{_prefix}/lib64
1346 %define noflibdir %{_prefix}/lib/nof
1347 %if %{build_primary_64bit}
1348 %define mainlibdirbi %{mainlibdirbi32}
1350 %define mainlibdirbi %{mainlibdirbi64}
1355 # Now define a few macros that make it easy to package libs and
1356 # related files just to the right package, without caring for the
1357 # exact path the files are in.
1358 # %mainlib package X from all dirs that belong to the main package
1359 # %biarchlib package X from all dirs that belong to the -32/64bit package
1360 # by default, nof libs go where the 32bit libs go.
1362 %define mainlib() %{mainlibdir}/%1\
1366 %define mainlib() %{mainlibdir}/%1\
1369 %define biarchlib() %{nil}
1371 %if !%{separate_biarch}
1373 %define mainlib() %{mainlibdir}/%1\
1378 %define mainlib() %{mainlibdir}/%1\
1384 %define biarchlib() %{mainlibdirbi}/%1\
1387 %define mainlib() %{mainlibdir}/%1\
1390 %define biarchlib() %{mainlibdirbi}/%1\
1397 %define versmainlib() %{versmainlibdir}/%1\
1398 %{versnoflibdir}/%1\
1401 %define versmainlib() %{versmainlibdir}/%1\
1404 %define versbiarchlib() %{nil}
1406 %if !%{separate_biarch}
1408 %define versmainlib() %{versmainlibdir}/%1\
1409 %{versmainlibdirbi}/%1\
1410 %{versnoflibdir}/%1\
1413 %define versmainlib() %{versmainlibdir}/%1\
1414 %{versmainlibdirbi}/%1\
1419 %define versbiarchlib() %{versmainlibdirbi}/%1\
1420 %{versnoflibdir}/%1\
1422 %define versmainlib() %{versmainlibdir}/%1\
1425 %define versbiarchlib() %{versmainlibdirbi}/%1\
1435 #%setup -q -n gcc-%{gcc_version}%{snapshot_date}
1436 %setup -q -n gcc-%{version}
1437 # 0001-dir-version.patch
1441 # Avoid rebuilding of generated files
1442 contrib/gcc_update --touch
1443 # Avoid fucking up testsuite results with Java and indirect dispatch
1444 export LD_AS_NEEDED=0
1445 # Split version file into version used for directories (X.Y) and
1446 # version to report with --version (X.Y.Z).
1447 # See also gcc-dir-version.patch.
1448 # Also decrement the patchlevel version by one
1449 if test `cat gcc/DEV-PHASE` == "prerelease"; then
1450 ( 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
1452 mv gcc/BASE-VER gcc/FULL-VER
1454 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
1456 rm -rf obj-%{GCCDIST}
1457 mkdir obj-%{GCCDIST}
1459 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
1460 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'`
1462 # -mcpu is superceded by -mtune but -mtune is not supported by
1463 # our bootstrap compiler. -mcpu gives a warning that stops
1464 # the build process, so remove it for now. Also remove all other
1465 # -march and -mtune flags. They are superseeded by proper
1466 # default compiler settings now.
1467 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'`
1469 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1470 # Kill all -march/tune/cpu because that screws building the target libs
1471 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
1473 # Replace 2 spaces by one finally
1474 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
1478 languages=$languages,c++
1481 languages=$languages,objc
1483 %if %{build_fortran}
1484 languages=$languages,fortran
1487 languages=$languages,obj-c++
1490 languages=$languages,java
1493 languages=$languages,ada
1497 if test -z "$J"; then
1498 J=$(getconf _NPROCESSORS_CONF)
1501 test 1 -gt "$J" && J=1
1502 JL=$(($(getconf _NPROCESSORS_CONF)*2))
1504 if test "$J" == "0"; then
1507 if test "$JL" == "0"; then
1510 PARALLEL="-j$J -l$JL"
1512 # we don't want some miscompiles in the testsuite, or some fault in
1513 # the compiler to kill the machine. Hence we limit the amount of memory
1514 # by the physical RAM plus half of swap
1515 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
1516 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
1517 #ulimit -v $(((MEM + SWAP/2)*1024))
1519 # In general we want to ship release checking enabled compilers
1520 # and run BETA with checking enabled.
1521 #ENABLE_CHECKING="--enable-checking=yes"
1522 ENABLE_CHECKING="--enable-checking=release"
1524 # Work around tail/head -1 changes
1525 export _POSIX2_VERSION=199209
1527 # configure tries to parse include/features.h to detect
1528 # if glibc supports SSP. When cross compiling we would need
1529 # to install a cross glibc, which we don't, or make the whole
1530 # thing point to the native glibc, which is in /, hence the
1534 # Using the host gnatmake like
1535 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
1536 # GNATMAKE="gnatmake%{hostsuffix}"
1537 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
1539 mkdir -p host-tools/bin
1540 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
1541 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
1542 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
1543 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
1544 ln -sf /usr/%{_lib} host-tools/%{_lib}
1545 export PATH="`pwd`/host-tools/bin:$PATH"
1547 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1549 # --enable-threads=posix \
1552 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
1553 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
1555 --prefix=%{_prefix} \
1556 --infodir=%{_infodir} \
1557 --mandir=%{_mandir} \
1558 --libdir=%{_libdir} \
1559 --libexecdir=%{_libdir} \
1560 --enable-languages=$languages \
1562 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
1567 --disable-bootstrap \
1570 --with-bugurl="http://bugs.tizen.org/" \
1571 --with-pkgversion="Tizen Linux" \
1572 %if !%{build_libjava}
1575 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1576 --with-ecj-jar=%{libsubdir}/ecj.jar \
1577 --disable-java-awt \
1578 %if !%{biarch_libjava}
1579 --disable-libjava-multilib \
1582 %if !%{build_with_mudflap}
1583 --disable-libmudflap \
1585 --with-slibdir=/%{_lib} \
1586 --with-system-zlib \
1587 --enable-__cxa_atexit \
1588 --enable-libstdcxx-allocator=new \
1589 --disable-libstdcxx-pch \
1590 --enable-version-specific-runtime-libs \
1591 --enable-linker-build-id \
1592 %if 0%{?gcc_target_arch:1}
1593 %if 0%{?gcc_icecream:1}
1594 --with-build-sysroot=/ \
1595 --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
1596 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
1597 --enable-linux-futex \
1599 %if 0%{?canonical_target:1}
1600 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1602 %if 0%{?build_static:1}
1605 %if "%{TARGET_ARCH}" == "spu"
1606 --with-sysroot=/usr/spu \
1607 --with-gxx-include-dir=%{_prefix}/spu/include/c++/%{gcc_dir_version} \
1611 --target=%{CONFIGURE_TARGET} \
1613 --program-suffix=%{binsuffix} \
1614 --enable-linux-futex \
1616 --with-system-libunwind \
1618 --without-system-libunwind \
1621 %if "%{TARGET_ARCH}" == "armv5tel"
1622 --with-arch=armv5te \
1625 --with-abi=aapcs-linux \
1626 --disable-sjlj-exceptions \
1628 %if "%{TARGET_ARCH}" == "armv7el"
1629 --with-arch=armv7-a \
1630 --with-tune=cortex-a9 \
1634 --disable-sjlj-exceptions \
1636 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
1637 --with-arch=armv7-a \
1638 --with-tune=cortex-a9 \
1640 --with-abi=aapcs-linux \
1641 --with-fpu=vfpv3-d16 \
1642 --disable-sjlj-exceptions \
1644 %if "%{TARGET_ARCH}" == "i586"
1645 --with-arch-32=i586 \
1646 --with-tune=generic \
1648 %if "%{TARGET_ARCH}" == "x86_64"
1649 --with-arch-32=i586 \
1650 --with-tune=generic \
1656 %if 0%{?building_libffi:1}
1657 make stage1-bubble $PARALLEL
1658 make all-target-libffi $PARALLEL
1660 # Only run profiled bootstrap on archs where it works
1661 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1662 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1667 STAGE1_FLAGS="-O -g"
1669 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1670 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1674 %if 0%{?run_tests:1}
1675 echo "Run testsuite"
1676 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1677 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1678 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1679 make -k check $PARALLEL || true
1680 mkdir ../testresults
1681 ../contrib/test_summary | tee ../testresults/test_summary.txt
1686 export NO_BRP_CHECK_BYTECODE_VERSION=true
1688 # GCC-TESTSUITE-DELETE-BEGIN
1689 # Work around tail/head -1 changes
1690 export _POSIX2_VERSION=199209
1691 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1692 %if 0%{?building_libffi:1}
1693 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1695 %if 0%{?building_libjava:1}
1696 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1697 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1698 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1699 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1700 # install-common also installs collect2, gcov and the g++ and gfortran driver
1702 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1704 %if %{build_fortran}
1705 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1707 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1708 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1710 make install DESTDIR=$RPM_BUILD_ROOT
1712 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1713 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1714 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1715 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1716 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1717 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1722 # Remove libffi installed files if we did not want to build it
1723 %if !0%{?building_libffi:1}
1724 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1726 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1728 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1729 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1730 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1731 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1732 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1735 # Remove some useless .la files
1736 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1737 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij; do
1738 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1740 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1744 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1746 %if %{build_primary_64bit}
1747 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1749 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1753 # LIBFFI-DELETE-BEGIN
1754 # LIBJAVA-DELETE-BEGIN
1756 # Merge multilib c++config.h to allow omitting the duplicate and
1757 # identical other arch specific headers
1759 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1760 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1761 if ! diff -up $cxxconfig $i; then
1776 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1781 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1782 #ifndef _CPP_CPPCONFIG_WRAPPER
1783 #define _CPP_CPPCONFIG_WRAPPER 1
1784 #include <bits/wordsize.h>
1785 #if __WORDSIZE == 32
1795 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1796 if ! test -z "$dir_ml"; then
1797 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1800 # LIBJAVA-DELETE-END
1802 %if 0%{!?build_optional_compiler:1}
1803 # move shared libs from versionspecific dir to main libdir
1805 %if 0%{?building_libjava:1}
1806 libgcj libgij libgcj-tools \
1808 %if %{build_fortran}
1810 %ifarch %quadmath_arch
1821 %if %{build_with_mudflap}
1822 libmudflap libmudflapth \
1826 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1827 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1829 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1830 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1832 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1833 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1834 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1836 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1837 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1842 %if !0%{?building_libjava:1}
1843 # And we want to move the shlib gdb pretty printers to a more sane
1844 # place so ldconfig does not complain
1845 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1846 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1847 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1849 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1850 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1851 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1852 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1857 %if 0%{?building_libjava:1}
1858 # libgcj_bc is special as the .so file is actually a different
1859 # library as the library refered to by the SONAME which should
1860 # be a simple link to our libgcj.
1861 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1864 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.1
1865 %if %{biarch_libjava}
1866 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1869 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.1
1874 # LIBJAVA-DELETE-BEGIN
1875 %if 0%{!?build_optional_compiler:1}
1876 # Move libgcc_s around
1877 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1878 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1879 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1881 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1883 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1885 %if %{build_primary_64bit}
1886 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1887 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1888 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1890 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1892 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1893 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1895 # 32-bit biarch systems
1896 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1897 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1898 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1900 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1902 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1903 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1907 # Move libgcc_s around
1908 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/
1909 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1910 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1911 ln -sf %{versmainlibdir}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1913 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1915 chmod a+x $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so.%{libgcc_s}
1917 %if %{build_primary_64bit}
1918 mv $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1919 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1920 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1921 ln -sf %{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1923 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1925 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1926 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s}
1928 # 32-bit biarch systems
1929 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1930 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1931 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1932 ln -sf %{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1934 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1936 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1937 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s}
1942 # Provide a defaults.spec file which adds a proper rpath
1943 %if 0%{?build_optional_compiler:1}
1944 cat > $RPM_BUILD_ROOT%{libsubdir}/defaults.spec << EOF
1946 + %%{!m32:%%{!m64:-rpath=%{libsubdir}}} %%{m32:-rpath=%{libsubdir}/32} %%{m64:-rpath=%{libsubdir}/64}
1949 # LIBJAVA-DELETE-END
1953 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1954 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1955 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1956 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1958 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1959 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1960 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1961 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1965 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1967 # Remove some crap from the .la files:
1968 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1970 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1971 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1972 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1973 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1974 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1976 %if %{build_primary_64bit}
1977 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1978 -e '/^libdir/s|lib64/\.\./||' \
1980 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1987 # GCC-TESTSUITE-DELETE-END
1988 %if 0%{?run_tests:1}
1989 cp `find . -name "*.sum"` ../testresults/
1990 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1991 chmod 644 ../testresults/*
1993 # GCC-TESTSUITE-DELETE-BEGIN
1994 # LIBFFI-DELETE-BEGIN
1996 # Find C++ and Java headers
1997 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
1998 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
1999 -o \( -type d -printf "%%%%dir " , \
2000 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
2003 # Remove files that we do not need to clean up filelist
2004 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
2005 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
2006 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2007 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
2008 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
2009 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
2010 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
2011 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
2012 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
2013 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
2014 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
2015 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
2016 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
2017 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2018 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
2019 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
2020 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
2021 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2022 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
2024 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
2025 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
2026 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
2028 %if !0%{?building_libjava:1}%{?building_libffi:1}
2029 # delete compile flag tracking from crt files
2030 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
2032 %if %{build_primary_64bit}
2033 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
2035 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
2038 for o in $crt_list $crt32_list $crt64_list; do
2039 objcopy -R ".comment.SUSE.OPTs" $o
2043 %if 0%{?building_libjava:1}
2044 # gcj -static doesn't work properly anyway, unless using --whole-archive
2045 # let's save the space instead.
2046 find $RPM_BUILD_ROOT -name libgcj.a \
2047 -o -name libgcj-tools.a \
2050 -o -name libgcj_bc.a \
2053 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
2054 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
2056 # security files have broken install locations, also they cause conflicts
2057 # between libgcj versions. Simply delete them here, libgcj will use its
2058 # defaults in this case (which is what these files contain anyway).
2059 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
2060 rm -r $RPM_BUILD_ROOT%{_libdir}/security
2063 %if 0%{?building_libffi:1}
2064 # Move libffi headers, remove empty libffi libtool file
2065 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
2066 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
2067 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
2068 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
2070 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
2072 # Generate a simple pkg-config file
2073 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
2074 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
2078 %if !%{build_libjava}
2079 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
2080 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
2081 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
2082 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
2083 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
2084 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
2085 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
2087 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
2088 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
2090 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
2091 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
2092 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
2093 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
2095 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/nof/libiberty.a
2098 %if %{build_primary_64bit}
2099 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
2101 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
2104 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
2105 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
2107 # LIBFFI-DELETE-BEGIN
2108 %if 0%{?building_libjava:1}
2109 # For building libjava only we need to delete other info docs
2110 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
2111 # Remove stale manpages for binaries we do not build
2112 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
2113 # For building the java frontend we need to copy the ecj jar
2114 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
2115 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
2117 # For regular build, some info files do not get renamed properly.
2119 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
2120 %if %{build_fortran}
2121 %ifarch %quadmath_arch
2122 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
2126 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
2127 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
2128 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
2132 # LIBJAVA-DELETE-BEGIN
2134 %find_lang gcc47-locale --all-name
2137 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2138 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2139 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2140 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2141 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2142 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2143 %if %{build_fortran}
2144 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2145 %ifarch %quadmath_arch
2146 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2150 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2153 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2154 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2155 %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
2159 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2160 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2161 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2162 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2163 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2164 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2165 %if %{build_fortran}
2166 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2167 %ifarch %quadmath_arch
2168 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2172 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2175 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2176 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2177 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2182 %defattr(-,root,root)
2184 %dir %{_libdir}/gcc/%{GCCDIST}
2186 %dir %{libsubdir}/include
2187 %dir %{libsubdir}/include-fixed
2189 %if %{build_primary_64bit}
2190 %dir %{libsubdir}/32
2192 %dir %{libsubdir}/64
2196 %dir %{libsubdir}/nof
2198 %{_prefix}/bin/gcc%{binsuffix}
2199 %{_prefix}/bin/gcov%{binsuffix}
2200 %{_prefix}/bin/gcc-ar%{binsuffix}
2201 %{_prefix}/bin/gcc-nm%{binsuffix}
2202 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2203 %{libsubdir}/collect2
2205 %{libsubdir}/lto-wrapper
2206 %{libsubdir}/liblto_plugin.so*
2207 %{libsubdir}/include-fixed/README
2208 %{libsubdir}/include-fixed/limits.h
2209 %{libsubdir}/include-fixed/syslimits.h
2210 %{libsubdir}/include/omp.h
2211 %{libsubdir}/include/float.h
2212 %{libsubdir}/include/iso646.h
2213 %{libsubdir}/include/stdarg.h
2214 %{libsubdir}/include/stdbool.h
2215 %{libsubdir}/include/stdfix.h
2216 %{libsubdir}/include/stddef.h
2217 %{libsubdir}/include/uchar.h
2218 %{libsubdir}/include/unwind.h
2219 %{libsubdir}/include/varargs.h
2220 %{libsubdir}/include/stdint.h
2221 %{libsubdir}/include/stdint-gcc.h
2222 %{libsubdir}/include/stdnoreturn.h
2223 %{libsubdir}/include/stdalign.h
2225 %{libsubdir}/include/mmintrin.h
2226 %{libsubdir}/include/arm_neon.h
2227 %{libsubdir}/include/unwind-arm-common.h
2229 %ifarch %ix86 x86_64
2230 %{libsubdir}/include/cross-stdarg.h
2231 %{libsubdir}/include/cpuid.h
2232 %{libsubdir}/include/mm3dnow.h
2233 %{libsubdir}/include/mmintrin.h
2234 %{libsubdir}/include/ammintrin.h
2235 %{libsubdir}/include/bmmintrin.h
2236 %{libsubdir}/include/emmintrin.h
2237 %{libsubdir}/include/immintrin.h
2238 %{libsubdir}/include/avxintrin.h
2239 %{libsubdir}/include/pmmintrin.h
2240 %{libsubdir}/include/xmmintrin.h
2241 %{libsubdir}/include/tmmintrin.h
2242 %{libsubdir}/include/nmmintrin.h
2243 %{libsubdir}/include/smmintrin.h
2244 %{libsubdir}/include/wmmintrin.h
2245 %{libsubdir}/include/x86intrin.h
2246 %{libsubdir}/include/ia32intrin.h
2247 %{libsubdir}/include/mm_malloc.h
2248 %{libsubdir}/include/fma4intrin.h
2249 %{libsubdir}/include/xopintrin.h
2250 %{libsubdir}/include/lwpintrin.h
2251 %{libsubdir}/include/popcntintrin.h
2252 %{libsubdir}/include/bmiintrin.h
2253 %{libsubdir}/include/tbmintrin.h
2254 %{libsubdir}/include/avx2intrin.h
2255 %{libsubdir}/include/bmi2intrin.h
2256 %{libsubdir}/include/fmaintrin.h
2257 %{libsubdir}/include/lzcntintrin.h
2258 %{libsubdir}/include/f16cintrin.h
2260 %if %{build_with_mudflap}
2261 %{libsubdir}/include/mf-runtime.h
2263 %versmainlib *crt*.o
2264 %versmainlib libgcc*.a
2265 %versmainlib libgcov.a
2266 %versmainlib libgcc_s*.so
2267 %if %{build_with_mudflap}
2268 %versmainlib libmudflap.a
2269 %versmainlib libmudflap.so
2270 %versmainlib libmudflapth.a
2271 %versmainlib libmudflapth.so
2273 %versmainlib libgomp.so
2274 %versmainlib libgomp.a
2275 %versmainlib libgomp.spec
2276 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2277 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2278 %if 0%{?build_optional_compiler:1}
2279 %{libsubdir}/defaults.spec
2282 %if %{separate_biarch}
2283 %files -n gcc47%{separate_biarch_suffix}
2284 %defattr(-,root,root)
2285 %versbiarchlib *crt*.o
2286 %versbiarchlib libgcc*.a
2287 %versbiarchlib libgcov.a
2288 %versbiarchlib libgcc_s*.so
2289 %if %{build_with_mudflap}
2290 %versbiarchlib libmudflap.a
2291 %versbiarchlib libmudflap.so
2292 %versbiarchlib libmudflapth.a
2293 %versbiarchlib libmudflapth.so
2295 %versbiarchlib libgomp.so
2296 %versbiarchlib libgomp.a
2297 %versbiarchlib libgomp.spec
2300 %files locale -f gcc47-locale.lang
2304 %defattr(-,root,root)
2306 %dir %{_libdir}/gcc/%{GCCDIST}
2308 %{_prefix}/bin/g++%{binsuffix}
2309 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2310 %{libsubdir}/cc1plus
2312 %files -n libstdc++47
2313 %defattr(-,root,root)
2317 %mainlib libstdc++.so.*
2319 %if %{separate_biarch}
2320 %files -n libstdc++47%{separate_biarch_suffix}
2321 %defattr(-,root,root)
2322 %biarchlib libstdc++.so.*
2325 %files -n libstdc++47-devel -f c++-headers
2326 %defattr(-,root,root)
2327 %versmainlib libstdc++.a
2328 %versmainlib libstdc++.so
2329 %versmainlib libsupc++.a
2330 %dir %{_datadir}/gdb
2331 %dir %{_datadir}/gdb/auto-load
2332 %dir %{_datadir}/gdb/auto-load%{_prefix}
2333 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2334 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2335 %{_datadir}/gcc%{binsuffix}
2337 %if %{separate_biarch}
2338 %files -n libstdc++47-devel%{separate_biarch_suffix}
2339 %defattr(-,root,root)
2340 %versbiarchlib libstdc++.a
2341 %versbiarchlib libstdc++.so
2342 %versbiarchlib libsupc++.a
2343 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2344 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2347 %files -n libstdc++47-doc
2348 %defattr(-,root,root)
2349 %doc libstdc++-v3/doc/html
2353 %defattr(-,root,root)
2354 %if 0%{!?build_optional_compiler:1}
2355 /%{_lib}/libgcc_s.so.%{libgcc_s}
2358 /lib/nof/libgcc_s.so.%{libgcc_s}
2361 %if %{build_primary_64bit}
2362 %if !%{separate_bi32}
2363 /lib/libgcc_s.so.%{libgcc_s}
2366 %if !%{separate_bi64}
2367 /lib64/libgcc_s.so.%{libgcc_s}
2372 %versmainlib libgcc_s.so.%{libgcc_s}
2375 %if %{separate_bi64}
2376 %files -n libgcc47-64bit
2377 %defattr(-,root,root)
2378 %if 0%{!?build_optional_compiler:1}
2379 /lib64/libgcc_s.so.%{libgcc_s}
2381 %versbiarchlib libgcc_s.so.%{libgcc_s}
2385 %if %{separate_bi32}
2386 %files -n libgcc47-32bit
2387 %defattr(-,root,root)
2388 %if 0%{!?build_optional_compiler:1}
2389 /lib/libgcc_s.so.%{libgcc_s}
2391 %versbiarchlib libgcc_s.so.%{libgcc_s}
2397 %defattr(-,root,root)
2398 %mainlib libgomp.so.1*
2400 %if %{separate_biarch}
2401 %files -n libgomp47%{separate_biarch_suffix}
2402 %defattr(-,root,root)
2403 %biarchlib libgomp.so.1*
2407 %if %{build_fortran}
2409 %defattr(-,root,root)
2410 %dir %{libsubdir}/finclude
2411 %{_prefix}/bin/gfortran%{binsuffix}
2413 %{libsubdir}/finclude/*
2414 %versmainlib libgfortran.a
2415 %versmainlib libgfortran.so
2416 %versmainlib libgfortran.spec
2417 %versmainlib libgfortranbegin.a
2418 %versmainlib libcaf_single.a
2419 %ifarch %quadmath_arch
2420 %{libsubdir}/include/quadmath.h
2421 %{libsubdir}/include/quadmath_weak.h
2422 %versmainlib libquadmath.a
2423 %versmainlib libquadmath.so
2425 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2427 %if %{separate_biarch}
2428 %files fortran%{separate_biarch_suffix}
2429 %defattr(-,root,root)
2430 %versbiarchlib libgfortran.a
2431 %versbiarchlib libgfortran.so
2432 %versbiarchlib libgfortran.spec
2433 %versbiarchlib libgfortranbegin.a
2434 %versbiarchlib libcaf_single.a
2435 %ifarch %quadmath_arch
2436 %versbiarchlib libquadmath.a
2437 %versbiarchlib libquadmath.so
2441 %files -n libgfortran47
2442 %defattr(-,root,root)
2443 %mainlib libgfortran.so.*
2445 %if %{separate_biarch}
2446 %files -n libgfortran47%{separate_biarch_suffix}
2447 %defattr(-,root,root)
2448 %biarchlib libgfortran.so.*
2451 %ifarch %quadmath_arch
2452 %files -n libquadmath47
2453 %defattr(-,root,root)
2454 %mainlib libquadmath.so.*
2456 %if %{separate_biarch}
2457 %files -n libquadmath47%{separate_biarch_suffix}
2458 %defattr(-,root,root)
2459 %biarchlib libquadmath.so.*
2464 %if %{build_with_mudflap}
2465 %files -n libmudflap47
2466 %defattr(-,root,root)
2467 %mainlib libmudflap.so.0*
2468 %mainlib libmudflapth.so.0*
2470 %if %{separate_biarch}
2471 %files -n libmudflap47%{separate_biarch_suffix}
2472 %defattr(-,root,root)
2473 %biarchlib libmudflap.so.0*
2474 %biarchlib libmudflapth.so.0*
2479 %defattr(-,root,root)
2480 %doc %{_infodir}/cpp%{binsuffix}.info*.gz
2481 %doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
2482 %doc %{_infodir}/gcc%{binsuffix}.info*.gz
2483 %doc %{_infodir}/gccint%{binsuffix}.info*.gz
2484 %doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
2485 %doc %{_infodir}/libgomp%{binsuffix}.info*.gz
2486 %if %{build_fortran}
2487 %doc %{_infodir}/gfortran%{binsuffix}.info*.gz
2488 %ifarch %quadmath_arch
2489 %doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
2493 %doc %{_infodir}/gcj%{binsuffix}.info*.gz
2496 %doc %{_infodir}/gnat-style%{binsuffix}.info*gz
2497 %doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
2498 %doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
2502 %defattr(-,root,root)
2504 %dir %{_libdir}/gcc/%{GCCDIST}
2506 %{_prefix}/bin/cpp%{binsuffix}
2509 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2513 %defattr(-,root,root)
2515 %{libsubdir}/include/objc
2516 %versmainlib libobjc.a
2517 %versmainlib libobjc.so
2519 %if %{separate_biarch}
2520 %files objc%{separate_biarch_suffix}
2521 %defattr(-,root,root)
2522 %versbiarchlib libobjc.a
2523 %versbiarchlib libobjc.so
2527 %defattr(-,root,root)
2528 %mainlib libobjc.so.*
2530 %if %{separate_biarch}
2531 %files -n libobjc47%{separate_biarch_suffix}
2532 %defattr(-,root,root)
2533 %biarchlib libobjc.so.*
2540 %defattr(-,root,root)
2541 %{libsubdir}/cc1objplus
2547 %defattr(-,root,root)
2549 %dir %{_libdir}/gcc/%{GCCDIST}
2551 %{_prefix}/bin/gnat*
2552 %dir %{versmainlibdir}/adainclude
2553 %dir %{versmainlibdir}/adalib
2554 %{versmainlibdir}/adainclude
2555 %{versmainlibdir}/adalib/*.ali
2556 %{versmainlibdir}/adalib/*.a
2557 %{versmainlibdir}/adalib/libgnarl.so
2558 %{versmainlibdir}/adalib/libgnat.so
2559 %{versmainlibdir}/gnat1
2561 %if %{separate_biarch}
2562 %files ada%{separate_biarch_suffix}
2563 %defattr(-,root,root)
2564 %dir %{versmainlibdirbi}/adainclude
2565 %dir %{versmainlibdirbi}/adalib
2566 %{versmainlibdirbi}/adainclude
2567 %{versmainlibdirbi}/adalib/*.ali
2568 %{versmainlibdirbi}/adalib/*.a
2569 %{versmainlibdirbi}/adalib/libgnarl.so
2570 %{versmainlibdirbi}/adalib/libgnat.so
2574 %defattr(-,root,root)
2575 %mainlib libgnarl-*.so
2576 %mainlib libgnat-*.so
2578 %if %{separate_biarch}
2579 %files -n libada47%{separate_biarch_suffix}
2580 %defattr(-,root,root)
2581 %biarchlib libgnarl-*.so
2582 %biarchlib libgnat-*.so
2585 # LIBJAVA-DELETE-END
2589 %if 0%{?building_libjava:1}
2590 %files -n gcc47-java
2591 %defattr(-,root,root)
2592 %{_prefix}/bin/gcj%{binsuffix}
2593 %{_prefix}/bin/gcjh%{binsuffix}
2594 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2595 %{_prefix}/bin/jcf-dump%{binsuffix}
2596 %{_prefix}/bin/jv-convert%{binsuffix}
2597 %{_prefix}/bin/gc-analyze%{binsuffix}
2598 %{_prefix}/bin/aot-compile%{binsuffix}
2599 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2601 %{libsubdir}/jvgenmain
2602 %{libsubdir}/ecj.jar
2604 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2605 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2606 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2607 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2608 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2609 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2610 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2611 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2616 %if %{build_libjava}
2618 %defattr(-,root,root)
2619 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}
2621 %dir %{_libdir}/gcc/%{GCCDIST}
2623 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/classmap.db
2624 # We usually do not multilib libjava
2625 %if %{biarch_libjava}
2626 %versbiarchlib libgcj.la
2627 %biarchlib libgcj.so.*
2628 %biarchlib libgij.so.*
2629 %biarchlib libgcj-tools.so.*
2631 %versmainlib libgcj.la
2632 %mainlib libgcj.so.*
2633 %mainlib libgij.so.*
2634 %mainlib libgcj-tools.so.*
2636 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.la
2637 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.so
2638 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.la
2639 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.so
2641 %files -n libgcj_bc47
2642 %defattr(-,root,root)
2643 %if %{biarch_libjava}
2644 %biarchlib libgcj_bc.so.*
2646 %mainlib libgcj_bc.so.*
2649 %files -n libgcj47-jar
2650 %defattr(-,root,root)
2651 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2652 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2654 %files -n libgcj47-devel
2655 %defattr(-,root,root)
2656 %dir %{_prefix}/include/c++
2658 %dir %{libsubdir}/include
2660 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2661 %{libsubdir}/include/jawt.h
2662 %{libsubdir}/include/jawt_md.h
2663 %{libsubdir}/include/jni.h
2664 %{libsubdir}/include/jni_md.h
2665 %{libsubdir}/include/jvmpi.h
2672 %{libsubdir}/include/gcj
2673 %if %{biarch_libjava}
2674 %versbiarchlib libgcj.so
2675 %versbiarchlib libgcj.spec
2676 %versbiarchlib libgcj-tools.so
2677 %versbiarchlib libgij.so
2678 %versbiarchlib libgcj_bc.so
2680 %versmainlib libgcj.so
2681 %versmainlib libgcj.spec
2682 %versmainlib libgcj-tools.so
2683 %versmainlib libgij.so
2684 %versmainlib libgcj_bc.so
2688 %defattr(-,root,root)
2689 %{_prefix}/bin/gij%{binsuffix}
2690 %{_prefix}/bin/gappletviewer%{binsuffix}
2691 %{_prefix}/bin/gjar%{binsuffix}
2692 %{_prefix}/bin/gjarsigner%{binsuffix}
2693 %{_prefix}/bin/gjavah%{binsuffix}
2694 %{_prefix}/bin/gkeytool%{binsuffix}
2695 %{_prefix}/bin/gnative2ascii%{binsuffix}
2696 %{_prefix}/bin/gorbd%{binsuffix}
2697 %{_prefix}/bin/grmic%{binsuffix}
2698 %{_prefix}/bin/grmid%{binsuffix}
2699 %{_prefix}/bin/grmiregistry%{binsuffix}
2700 %{_prefix}/bin/gserialver%{binsuffix}
2701 %{_prefix}/bin/gtnameserv%{binsuffix}
2702 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2703 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2704 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2705 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2706 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2707 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2708 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2709 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2710 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2711 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2712 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2713 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2714 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2720 %if 0%{?building_libffi:1}
2722 %defattr(-,root,root)
2723 %mainlib libffi.so.*
2725 %if %{separate_biarch}
2726 %files -n libffi47%{separate_biarch_suffix}
2727 %defattr(-,root,root)
2728 %biarchlib libffi.so.*
2731 %files -n libffi47-devel
2732 %defattr(-,root,root)
2733 %{_prefix}/include/ffi.h
2734 %{_prefix}/include/ffitarget.h
2737 %{_libdir}/pkgconfig/libffi.pc
2738 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2739 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2740 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2742 %if %{separate_biarch}
2743 %files -n libffi47-devel%{separate_biarch_suffix}
2744 %defattr(-,root,root)
2745 %biarchlib libffi.so
2750 # GCC-TESTSUITE-DELETE-END
2752 %if 0%{?run_tests:1}
2753 %files -n gcc47-testresults
2754 %defattr(-,root,root)
2755 %doc testresults/test_summary.txt
2756 %doc testresults/*.sum
2757 %doc testresults/*.log