1 %define building_libjava 1
3 # spec file for package gcc48
5 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
7 # All modifications and additions to the file contributed by third parties
8 # remain the property of their copyright owners, unless otherwise agreed
9 # upon. The license for this file, and modifications and additions to the
10 # file, is the same license as for the pristine package itself (unless the
11 # license for the pristine package is not an Open Source License, in which
12 # case the license is the MIT License). An "Open Source License" is a
13 # license that conforms to the Open Source Definition (Version 1.9)
14 # published by the Open Source Initiative.
16 # Please submit bugfixes or comments via http://bugs.opensuse.org/
25 %define quadmath_arch %ix86 x86_64 ia64
26 %define tsan_arch x86_64
27 %define asan_arch x86_64 %ix86 ppc ppc64
28 %define itm_arch x86_64 %ix86 %arm ppc ppc64
29 %define atomic_arch x86_64 %ix86 %arm ppc ppc64 s390 s390x
31 # We don't want to build java
33 %define build_libjava 0
36 %define build_fortran !0%{?building_libjava:1}%{?building_libffi:1}
37 %define build_objc !0%{?building_libjava:1}%{?building_libffi:1}
38 %define build_objcp !0%{?building_libjava:1}%{?building_libffi:1}
39 %define build_with_mudflap 0
50 # For optional compilers only build C, C++ and Fortran
51 %if 0%{?build_optional_compiler_languages:1}
54 %define build_libjava 0
59 # Shared library SONAME versions
65 %define libgcj_sover 14
66 %define libgcj_bc_sover 1
67 %define libffi_sover 4
68 %define libmudflap_sover 0
69 %define libgomp_sover 1
70 %define libstdcxx_sover 6
71 %define libobjc_sover 4
72 %define libgfortran_sover 3
73 %define libquadmath_sover 0
74 %define libasan_sover 0
75 %define libtsan_sover 0
76 %define libatomic_sover 1
77 %define libitm_sover 1
79 # Shared library package suffix
80 # This is used for the "non-standard" set of libraries, the standard
81 # being defined by %product_libs_gcc_ver, the GCC version that should
82 # provide un-suffixed shared library packages following the shared-library
83 # policy. Even suffixed variants should provide the shared-library policy
84 # mandated names and ensure they conflict with each other.
85 # Note that on SONAME changes of any library the %product_libs_gcc_ver
86 # define needs to be either split or the newest GCC version still providing
87 # the old SONAME needs to unconditionally produce an un-suffixed library
88 # if %product_libs_gcc_ver is newer than it. Similar the _oldest_ GCC
89 # version first providing a new SONAME needs to unconditionally produce
90 # an un-suffixed library if %product_libs_gcc_ver is lower that it.
91 %if %{!?product_libs_gcc_ver:48}%{?product_libs_gcc_ver} != 48
94 %define libgcc_s_suffix %{?pne:-gcc48}
95 # libgcj SONAME changes with every GCC version
96 %define libgcj_suffix %nil
97 %define libgcj_bc_suffix %{?pne:-gcc48}
98 %define libffi_suffix %{?pne:-gcc48}
99 %define libmudflap_suffix %{?pne:-gcc48}
100 %define libgomp_suffix %{?pne:-gcc48}
101 %define libstdcxx_suffix %{?pne:-gcc48}
102 %define libobjc_suffix %{?pne:-gcc48}
103 %define libgfortran_suffix %{?pne:-gcc48}
104 %define libquadmath_suffix %{?pne:-gcc48}
105 %define libasan_suffix %{?pne:-gcc48}
106 %define libtsan_suffix %{?pne:-gcc48}
107 %define libatomic_suffix %{?pne:-gcc48}
108 %define libitm_suffix %{?pne:-gcc48}
114 BuildRequires: gcc-c++
117 BuildRequires: glibc-devel-32bit
118 BuildRequires: mpc-devel
119 BuildRequires: mpfr-devel
121 BuildRequires: makeinfo
122 BuildRequires: zlib-devel
123 %ifarch %ix86 x86_64 ppc ppc64 s390 s390x ia64 %sparc hppa %arm
124 BuildRequires: cloog-isl-devel
125 BuildRequires: isl-devel
128 %define hostsuffix -4.7
129 BuildRequires: gcc47-ada
131 %if 0%{?building_libjava:1}%{?building_testsuite:1}
132 BuildRequires: fastjar
134 %if 0%{?building_libffi:1}
135 BuildRequires: pkg-config
138 BuildRequires: libunwind-devel
141 BuildRequires: dejagnu
142 BuildRequires: expect
146 %define separate_bi32 0
147 %define separate_bi64 0
149 # Beware, this does _not_ separate libgcj, as for that one multilibing
150 # is inactive for the time being
151 %define separate_bi64 1
153 %ifarch x86_64 s390x ppc64 sparc64
154 %define separate_bi32 1
157 # Define two macros to trigger -32bit or -64bit package variants
158 %define separate_biarch 0
160 %define separate_biarch 1
161 %define separate_biarch_suffix -32bit
164 %define separate_biarch 1
165 %define separate_biarch_suffix -64bit
168 %ifarch x86_64 ia64 s390x alpha ppc64 sparc64
169 # 64-bit is primary build target
170 %define build_primary_64bit 1
172 %define build_primary_64bit 0
175 %define biarch_libjava 0
177 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
179 URL: http://gcc.gnu.org/
182 %define gcc_version %(echo %version | sed 's/_.*//')
183 %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1-2)
184 %define snapshot_date %(echo %version | sed 's/[34]\.[0-9]\.[0-6]//' | sed 's/_/-/')
185 %define binsuffix -4.8
187 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
188 Requires: binutils glibc-devel
189 Requires: cpp48 = %{version}-%{release}
190 Requires: libgcc_s%{libgcc_s} >= %{version}-%{release}
191 Requires: libgomp%{libgomp_sover} >= %{version}-%{release}
192 %if %{build_with_mudflap}
193 Requires: libmudflap%{libmudflap_sover} >= %{version}-%{release}
194 Requires: libmudflapth%{libmudflap_sover} >= %{version}-%{release}
197 Requires: libasan%{libasan_sover} >= %{version}-%{release}
200 Requires: libtsan%{libtsan_sover} >= %{version}-%{release}
203 Requires: libatomic%{libatomic_sover} >= %{version}-%{release}
206 Requires: libitm%{libitm_sover} >= %{version}-%{release}
208 Suggests: gcc48-info gcc48-locale
211 BuildRoot: %{_tmppath}/%{name}-%{version}-build
212 Source: gcc-%{gcc_version}%{snapshot_date}.tar.bz2
214 Source3: gcc48-rpmlintrc
216 Source6: baselibs.conf
219 Summary: Java Runtime Library for gcc
220 License: GPL-2.0-with-classpath-exception
221 Group: System/Libraries
224 This library is needed if you want to use the GNU Java compiler, gcj.
225 Source code for this package is in gcc.
234 %package -n gcc48-java
235 Summary: The GNU Java Compiler
237 Group: Development/Languages/Java
238 Requires: gcc48 = %{version}
239 Requires: libgcj48-devel = %{version}-%{release}
241 %description -n gcc48-java
242 The Java compiler from the GCC-tools-suite.
245 %package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
246 Summary: Fake library for BC-ABI compatibility.
247 License: GPL-2.0-with-classpath-exception
248 Group: Development/Libraries/Java
249 # libgcj_bc is special in that it just contains a symlink to
250 # a proper libgcj version. So require that library and add
251 # provides for the shlib version as created at link time
252 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
253 %ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
254 Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
256 Provides: libgcj_bc.so.%{libgcj_bc_sover}
259 %description -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
260 A fake library that is used at link time only. It ensures that
261 binaries built with the BC-ABI link against a constant SONAME.
262 This way, BC-ABI binaries continue to work if the SONAME underlying
266 %package -n libgcj48-jar
267 Summary: Java runtime library (jar files).
268 License: GPL-2.0-with-classpath-exception
269 Group: Development/Libraries/Java
271 %description -n libgcj48-jar
272 These are the jar files that go along with the gcj front end to gcc.
275 %package -n libgcj48-devel
276 Summary: Include Files and Libraries mandatory for Development.
277 License: GPL-2.0-with-classpath-exception
278 Group: Development/Libraries/Java
279 Requires: libstdc++48-devel = %{version}
280 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
281 Requires: libgcj_bc%{libgcj_bc_sover} >= %{version}-%{release}
282 Requires: libgcj48-jar = %{version}-%{release}
284 Requires: libart_lgpl-devel
285 Requires: glibc-devel
288 Requires: libunwind-devel
291 %description -n libgcj48-devel
292 This package contains all necessary include files and libraries needed
293 to develop applications that require these.
296 %package -n gcc48-gij
297 Summary: Java Bytecode Interpreter for gcc
298 License: GPL-2.0-with-classpath-exception
299 Group: Development/Libraries/Java
300 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
302 %description -n gcc48-gij
303 This package contains the java bytecode interpreter gij and related tools.
305 %package -n libffi%{libffi_sover}%{libffi_suffix}
306 Summary: Foreign Function Interface library
307 License: BSD-3-Clause
308 Group: Development/Languages/C and C++
310 %description -n libffi%{libffi_sover}%{libffi_suffix}
311 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.
313 %post -n libffi%{libffi_sover}%{libffi_suffix}
316 %postun -n libffi%{libffi_sover}%{libffi_suffix}
318 %package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
319 Summary: Foreign Function Interface library
320 License: BSD-3-Clause
321 Group: Development/Languages/C and C++
323 %description -n libffi%{libffi_sover}%{libffi_suffix}-32bit
324 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.
326 %post -n libffi%{libffi_sover}%{libffi_suffix}-32bit
329 %postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit
331 %package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
332 Summary: Foreign Function Interface library
333 License: BSD-3-Clause
334 Group: Development/Languages/C and C++
336 %description -n libffi%{libffi_sover}%{libffi_suffix}-64bit
337 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.
339 %post -n libffi%{libffi_sover}%{libffi_suffix}-64bit
342 %postun -n libffi%{libffi_sover}%{libffi_suffix}-64bit
345 %package -n libffi48-devel
346 Summary: Foreign Function Interface library development files
347 License: BSD 3-Clause
348 Group: Development/Languages/C and C++
349 Requires: libffi%{libffi_sover} >= %{version}-%{release}
351 %description -n libffi48-devel
352 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.
353 %package -n libffi48-devel-32bit
354 Summary: Foreign Function Interface library development files
355 License: BSD 3-Clause
356 Group: Development/Languages/C and C++
357 Requires: libffi%{libffi_sover}-32bit >= %{version}-%{release}
359 %description -n libffi48-devel-32bit
360 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.
361 %package -n libffi48-devel-64bit
362 Summary: Foreign Function Interface library development files
363 License: BSD 3-Clause
364 Group: Development/Languages/C and C++
365 Requires: libffi%{libffi_sover}-64bit >= %{version}-%{release}
367 %description -n libffi48-devel-64bit
368 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.
370 %package -n gcc48-testresults
371 Summary: Testsuite results
372 License: SUSE-Public-Domain
373 Group: Development/Languages/C and C++
375 %description -n gcc48-testresults
376 Results from running the gcc and target library testsuites.
380 # Define the canonical target and host architecture
381 # %gcc_target_arch is supposed to be the full target triple
382 # %TARGET_ARCH is the canonicalized CPU part
383 # %CONFIGURE_TARGET is the target triple used for --target=
384 %if 0%{?gcc_target_arch:1}
385 %define CONFIGURE_TARGET %{gcc_target_arch}
386 %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/;")
387 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc"
388 %define CONFIGURE_TARGET powerpc64-tizen-linux
390 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc64"
391 %define CONFIGURE_TARGET powerpc64-tizen-linux
393 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
394 %define CONFIGURE_TARGET i586-tizen-linux
396 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
397 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
399 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
400 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
402 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel"
403 %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi
406 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
408 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
410 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
413 %define GCCDIST powerpc64-tizen-linux
416 %define GCCDIST sparc64-tizen-linux
419 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
421 %define GCCDIST %{HOST_ARCH}-tizen-linux
426 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
427 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
430 # Versionspecific directories
431 %define versmainlibdir %{libsubdir}
432 %define versmainlibdirbi32 %{libsubdir}/32
433 %define versmainlibdirbi64 %{libsubdir}/64
435 %define versmainlibdirbi32 %{libsubdir}
436 %define versmainlibdirbi64 %{libsubdir}/64
438 %if %{build_primary_64bit}
439 %define versmainlibdirbi %{versmainlibdirbi32}
441 %define versmainlibdirbi %{versmainlibdirbi64}
444 %define mainlibdir %{_libdir}
445 %define mainlibdirbi32 %{_prefix}/lib
446 %define mainlibdirbi64 %{_prefix}/lib64
447 %if %{build_primary_64bit}
448 %define mainlibdirbi %{mainlibdirbi32}
450 %define mainlibdirbi %{mainlibdirbi64}
454 # Now define a few macros that make it easy to package libs and
455 # related files just to the right package, without caring for the
456 # exact path the files are in.
457 # %mainlib package X from all dirs that belong to the main package
458 # %biarchlib package X from all dirs that belong to the -32/64bit package
459 %define mainlib() %{mainlibdir}/%1\
461 %define biarchlib() %{nil}
463 %if !%{separate_biarch}
464 %define mainlib() %{mainlibdir}/%1\
468 %define biarchlib() %{mainlibdirbi}/%1\
473 %define versmainlib() %{versmainlibdir}/%1\
475 %define versbiarchlib() %{nil}
477 %if !%{separate_biarch}
478 %define versmainlib() %{versmainlibdir}/%1\
479 %{versmainlibdirbi}/%1\
482 %define versbiarchlib() %{versmainlibdirbi}/%1\
490 %setup -q -n gcc-%{gcc_version}%{snapshot_date}
493 # We are configuring ppc as ppc64 but with switched multilibs. Adjust
494 # the libstdc++ abi testsuite baseline files accordingly
496 if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
497 mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
498 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt \
499 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64/
500 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt \
501 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/
506 # Avoid rebuilding of generated files
507 contrib/gcc_update --touch
508 # Avoid fucking up testsuite results with Java and indirect dispatch
509 export LD_AS_NEEDED=0
510 # Split version file into version used for directories (X.Y) and
511 # version to report with --version (X.Y.Z).
512 # See also gcc-dir-version.patch.
513 # Also decrement the patchlevel version by one
514 if test `cat gcc/DEV-PHASE` == "prerelease"; then
515 ( 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
517 mv gcc/BASE-VER gcc/FULL-VER
519 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
521 rm -rf obj-%{GCCDIST}
524 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
525 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'`
527 # -mcpu is superceded by -mtune but -mtune is not supported by
528 # our bootstrap compiler. -mcpu gives a warning that stops
529 # the build process, so remove it for now. Also remove all other
530 # -march and -mtune flags. They are superseeded by proper
531 # default compiler settings now.
532 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'`
535 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fsigned-char//g'`
536 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-O1/-O2/g'`
538 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
539 # Kill all -march/tune/cpu because that screws building the target libs
540 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
542 # Replace 2 spaces by one finally
543 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
547 languages=$languages,c++
550 languages=$languages,objc
553 languages=$languages,fortran
556 languages=$languages,obj-c++
559 languages=$languages,java
562 languages=$languages,ada
566 if test -z "$J"; then
567 J=$(getconf _NPROCESSORS_CONF)
570 test 1 -gt "$J" && J=1
571 JL=$(($(getconf _NPROCESSORS_CONF)*2))
573 if test "$J" == "0"; then
576 if test "$JL" == "0"; then
579 PARALLEL="-j$J -l$JL"
581 # we don't want some miscompiles in the testsuite, or some fault in
582 # the compiler to kill the machine. Hence we limit the amount of memory
583 # by the physical RAM plus half of swap
584 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
585 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
586 #ulimit -v $(((MEM + SWAP/2)*1024))
588 # In general we want to ship release checking enabled compilers
589 # and run BETA with checking enabled.
590 #ENABLE_CHECKING="--enable-checking=yes"
591 ENABLE_CHECKING="--enable-checking=release"
593 # Work around tail/head -1 changes
594 export _POSIX2_VERSION=199209
596 # configure tries to parse include/features.h to detect
597 # if glibc supports SSP. When cross compiling we would need
598 # to install a cross glibc, which we don't, or make the whole
599 # thing point to the native glibc, which is in /, hence the
600 # --with-build-sysroot=/
603 # Using the host gnatmake like
604 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
605 # GNATMAKE="gnatmake%{hostsuffix}"
606 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
608 mkdir -p host-tools/bin
609 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
610 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
611 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
612 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
613 ln -sf /usr/%{_lib} host-tools/%{_lib}
614 export PATH="`pwd`/host-tools/bin:$PATH"
616 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
618 # --enable-threads=posix \
621 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
622 # temporary workaround for a miscompilation of hash functions in java code
623 GCJ_EXTRA_FLAGS="-marm"
625 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
626 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
628 --prefix=%{_prefix} \
629 --infodir=%{_infodir} \
630 --mandir=%{_mandir} \
631 --libdir=%{_libdir} \
632 --libexecdir=%{_libdir} \
633 --disable-bootstrap \
634 --enable-languages=$languages \
636 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
640 --with-bugurl="http://bugs.tizen.org/" \
641 --with-pkgversion="Tizen" \
642 %if !%{build_libjava}
645 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
646 --with-ecj-jar=%{libsubdir}/ecj.jar \
648 %if !%{biarch_libjava}
649 --disable-libjava-multilib \
652 %if !%{build_with_mudflap}
653 --disable-libmudflap \
655 --with-slibdir=/%{_lib} \
657 --enable-__cxa_atexit \
658 --enable-libstdcxx-allocator=new \
659 --disable-libstdcxx-pch \
660 --enable-version-specific-runtime-libs \
661 --enable-linker-build-id \
662 %if 0%{?gcc_target_arch:1}
663 %if 0%{?gcc_icecream:1}
664 --with-build-sysroot=/ \
665 --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
666 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
667 --enable-linux-futex \
669 %if 0%{?canonical_target:1}
670 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
673 --with-sysroot=%sysroot \
675 %if 0%{?build_static:1}
678 %if "%{TARGET_ARCH}" == "spu"
679 --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
683 --target=%{CONFIGURE_TARGET} \
685 --program-suffix=%{binsuffix} \
686 --enable-linux-futex \
688 --with-system-libunwind \
690 --without-system-libunwind \
693 %if "%{TARGET_ARCH}" == "armv5tel"
694 --with-arch=armv5te \
697 --with-abi=aapcs-linux \
698 --disable-sjlj-exceptions \
700 %if "%{TARGET_ARCH}" == "armv7l"
701 --with-arch=armv7-a \
702 --with-tune=cortex-a9 \
704 --with-abi=aapcs-linux \
705 --with-fpu=vfpv3-d16 \
706 --disable-sjlj-exceptions \
708 %if "%{TARGET_ARCH}" == "armv7hl"
709 --with-arch=armv7-a \
710 --with-tune=cortex-a9 \
712 --with-abi=aapcs-linux \
713 --with-fpu=vfpv3-d16 \
714 --disable-sjlj-exceptions \
716 %if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
717 %if "%{TARGET_ARCH}" == "powerpc"
718 --with-cpu=default32 \
720 --with-cpu-64=power4 \
722 --with-long-double-128 \
724 %if "%{TARGET_ARCH}" == "sparc64"
725 --with-cpu=ultrasparc \
726 --with-long-double-128 \
728 %if "%{TARGET_ARCH}" == "sparc"
730 --with-long-double-128 \
732 %if "%{TARGET_ARCH}" == "i586"
733 --with-arch-32=i586 \
734 --with-tune=generic \
736 %if "%{TARGET_ARCH}" == "x86_64"
737 --with-arch-32=i586 \
738 --with-tune=generic \
740 %if "%{TARGET_ARCH}" == "s390"
741 --with-tune=z196 --with-arch=z10 \
742 --with-long-double-128 \
743 --enable-decimal-float \
745 %if "%{TARGET_ARCH}" == "s390x"
746 --with-tune=z196 --with-arch=z10 \
747 --with-long-double-128 \
748 --enable-decimal-float \
753 %if 0%{?building_libffi:1}
754 make stage1-bubble $PARALLEL
755 make all-target-libffi $PARALLEL
758 # Only run profiled bootstrap on archs where it works
759 #%ifarch %ix86 x86_64 ppc ppc64 ia64
760 #make profiledbootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
762 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
763 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
769 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
770 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
771 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
772 # asan needs a whole shadow address space
773 ulimit -v unlimited || true
774 make -k check $PARALLEL || true
776 ../contrib/test_summary | tee ../testresults/test_summary.txt
781 export NO_BRP_CHECK_BYTECODE_VERSION=true
783 # Work around tail/head -1 changes
784 export _POSIX2_VERSION=199209
785 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
786 %if 0%{?building_libffi:1}
787 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
789 %if 0%{?building_libjava:1}
790 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
791 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
792 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
793 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
794 # install-common also installs collect2, gcov and the g++ and gfortran driver
796 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
799 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
801 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
802 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
804 make install DESTDIR=$RPM_BUILD_ROOT
806 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
807 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
808 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
809 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
810 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
811 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
816 # Remove libffi installed files if we did not want to build it
817 %if !0%{?building_libffi:1}
818 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
820 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
822 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
823 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
824 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
825 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
826 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
827 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3*
830 # Remove some useless .la files
831 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
832 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij \
833 libasan libatomic libitm libtsan; do
834 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
836 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
840 mkdir -p $RPM_BUILD_ROOT%{_libdir}
842 %if %{build_primary_64bit}
843 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
845 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
850 # move shared libs from versionspecific dir to main libdir
852 %if 0%{?building_libjava:1}
853 libgcj libgij libgcj-tools \
857 %ifarch %quadmath_arch
880 %if %{build_with_mudflap}
881 libmudflap libmudflapth \
885 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
886 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
888 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
889 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
891 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
892 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
893 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
895 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
896 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
900 # FIXME, tsan is not multilib
903 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/libtsan.so
907 %if !0%{?building_libjava:1}
908 # And we want to move the shlib gdb pretty printers to a more sane
909 # place so ldconfig does not complain
910 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
911 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
912 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
914 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
915 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
916 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
917 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
922 %if 0%{?building_libjava:1}
923 # libgcj_bc is special as the .so file is actually a different
924 # library as the library refered to by the SONAME which should
925 # be a simple link to our libgcj.
926 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
929 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.%{libgcj_bc_sover}
930 %if %{biarch_libjava}
931 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
934 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.%{libgcj_bc_sover}
940 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
941 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
942 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
943 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
945 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
946 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
947 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
948 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
952 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
954 # Remove some crap from the .la files:
955 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
957 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
958 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
959 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
960 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
961 -e '/^dependency_libs/s|-L[^ ]* ||g' \
963 %if %{build_primary_64bit}
964 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
965 -e '/^libdir/s|lib64/\.\./||' \
967 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
975 cp `find . -name "*.sum"` ../testresults/
976 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
977 chmod 644 ../testresults/*
980 # Find C++ and Java headers
981 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
982 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
983 -o \( -type d -printf "%%%%dir " , \
984 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
986 # Remove files that we do not need to clean up filelist
987 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
988 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
989 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
990 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
991 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
992 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
993 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
994 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
995 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
996 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
997 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
998 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
999 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
1000 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1001 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
1002 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
1003 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
1004 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1005 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
1007 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
1008 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1009 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
1011 %if !0%{?building_libjava:1}%{?building_libffi:1}
1012 # delete compile flag tracking from crt files
1013 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
1015 %if %{build_primary_64bit}
1016 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
1018 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
1021 for o in $crt_list $crt32_list $crt64_list; do
1022 objcopy -R ".comment.SUSE.OPTs" $o
1026 %if 0%{?building_libjava:1}
1027 # gcj -static doesn't work properly anyway, unless using --whole-archive
1028 # let's save the space instead.
1029 find $RPM_BUILD_ROOT -name libgcj.a \
1030 -o -name libgcj-tools.a \
1033 -o -name libgcj_bc.a \
1036 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
1037 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
1039 # security files have broken install locations, also they cause conflicts
1040 # between libgcj versions. Simply delete them here, libgcj will use its
1041 # defaults in this case (which is what these files contain anyway).
1042 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
1043 rm -r $RPM_BUILD_ROOT%{_libdir}/security
1046 %if 0%{?building_libffi:1}
1047 # Move libffi headers, remove empty libffi libtool file
1048 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
1049 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
1050 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
1051 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
1053 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
1055 # Generate a simple pkg-config file
1056 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
1057 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
1061 %if !%{build_libjava}
1062 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
1063 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
1064 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
1065 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
1066 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
1067 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
1068 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
1070 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
1071 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
1073 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
1074 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
1075 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
1076 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
1078 %if %{build_primary_64bit}
1079 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
1081 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
1084 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
1085 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
1087 %if 0%{?building_libjava:1}
1088 # For building libjava only we need to delete other info docs
1089 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
1090 # Remove stale manpages for binaries we do not build
1091 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
1092 # For building the java frontend we need to copy the ecj jar
1093 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
1094 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
1096 # For regular build, some info files do not get renamed properly.
1098 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
1100 mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
1102 %if %{build_fortran}
1103 %ifarch %quadmath_arch
1104 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
1108 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
1109 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
1110 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
1117 %if 0%{?building_libjava:1}
1118 %files -n gcc48-java
1119 %defattr(-,root,root)
1120 %{_prefix}/bin/gcj%{binsuffix}
1121 %{_prefix}/bin/gcjh%{binsuffix}
1122 %{_prefix}/bin/gcj-dbtool%{binsuffix}
1123 %{_prefix}/bin/jcf-dump%{binsuffix}
1124 %{_prefix}/bin/jv-convert%{binsuffix}
1125 %{_prefix}/bin/gc-analyze%{binsuffix}
1126 %{_prefix}/bin/aot-compile%{binsuffix}
1127 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
1129 %{libsubdir}/jvgenmain
1130 %{libsubdir}/ecj.jar
1132 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
1133 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
1134 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
1135 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
1136 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
1137 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
1138 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
1139 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
1144 %if %{build_libjava}
1146 %defattr(-,root,root)
1147 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
1149 %dir %{_libdir}/gcc/%{GCCDIST}
1151 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/classmap.db
1152 # We usually do not multilib libjava
1153 %if %{biarch_libjava}
1154 %versbiarchlib libgcj.la
1155 %biarchlib libgcj.so.*
1156 %biarchlib libgij.so.*
1157 %biarchlib libgcj-tools.so.*
1159 %versmainlib libgcj.la
1160 %mainlib libgcj.so.*
1161 %mainlib libgij.so.*
1162 %mainlib libgcj-tools.so.*
1164 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.la
1165 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.so
1166 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.la
1167 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.so
1169 %files -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
1170 %defattr(-,root,root)
1171 %if %{biarch_libjava}
1172 %biarchlib libgcj_bc.so.%{libgcj_bc_sover}*
1174 %mainlib libgcj_bc.so.%{libgcj_bc_sover}*
1177 %files -n libgcj48-jar
1178 %defattr(-,root,root)
1179 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
1180 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
1182 %files -n libgcj48-devel
1183 %defattr(-,root,root)
1184 %dir %{_prefix}/include/c++
1186 %dir %{libsubdir}/include
1188 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
1189 %{libsubdir}/include/jawt.h
1190 %{libsubdir}/include/jawt_md.h
1191 %{libsubdir}/include/jni.h
1192 %{libsubdir}/include/jni_md.h
1193 %{libsubdir}/include/jvmpi.h
1200 %{libsubdir}/include/gcj
1201 %if %{biarch_libjava}
1202 %versbiarchlib libgcj.so
1203 %versbiarchlib libgcj.spec
1204 %versbiarchlib libgcj-tools.so
1205 %versbiarchlib libgij.so
1206 %versbiarchlib libgcj_bc.so
1208 %versmainlib libgcj.so
1209 %versmainlib libgcj.spec
1210 %versmainlib libgcj-tools.so
1211 %versmainlib libgij.so
1212 %versmainlib libgcj_bc.so
1216 %defattr(-,root,root)
1217 %{_prefix}/bin/gij%{binsuffix}
1218 %{_prefix}/bin/gappletviewer%{binsuffix}
1219 %{_prefix}/bin/gjar%{binsuffix}
1220 %{_prefix}/bin/gjarsigner%{binsuffix}
1221 %{_prefix}/bin/gjavah%{binsuffix}
1222 %{_prefix}/bin/gkeytool%{binsuffix}
1223 %{_prefix}/bin/gnative2ascii%{binsuffix}
1224 %{_prefix}/bin/gorbd%{binsuffix}
1225 %{_prefix}/bin/grmic%{binsuffix}
1226 %{_prefix}/bin/grmid%{binsuffix}
1227 %{_prefix}/bin/grmiregistry%{binsuffix}
1228 %{_prefix}/bin/gserialver%{binsuffix}
1229 %{_prefix}/bin/gtnameserv%{binsuffix}
1230 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
1231 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
1232 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
1233 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
1234 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
1235 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
1236 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
1237 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
1238 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
1239 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
1240 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
1241 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
1242 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
1247 %if 0%{?building_libffi:1}
1248 %files -n libffi%{libffi_sover}%{libffi_suffix}
1249 %defattr(-,root,root)
1250 %mainlib libffi.so.%{libffi_sover}*
1252 %if %{separate_biarch}
1253 %files -n libffi%{libffi_sover}%{libffi_suffix}%{separate_biarch_suffix}
1254 %defattr(-,root,root)
1255 %biarchlib libffi.so.%{libffi_sover}*
1258 %post -n libffi48-devel
1259 %install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
1260 %postun -n libffi48-devel
1261 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
1263 %files -n libffi48-devel
1264 %defattr(-,root,root)
1265 %{_prefix}/include/ffi.h
1266 %{_prefix}/include/ffitarget.h
1269 %{_libdir}/pkgconfig/libffi.pc
1270 %doc %{_infodir}/libffi%{binsuffix}.info.gz
1271 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
1272 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
1273 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
1274 %doc %{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3.gz
1276 %if %{separate_biarch}
1277 %files -n libffi48-devel%{separate_biarch_suffix}
1278 %defattr(-,root,root)
1279 %biarchlib libffi.so
1285 %if 0%{?run_tests:1}
1286 %files -n gcc48-testresults
1287 %defattr(-,root,root)
1288 %doc testresults/test_summary.txt
1289 %doc testresults/*.sum
1290 %doc testresults/*.log