%endif
# Shared library SONAME versions
-%ifarch hppa
-%define libgcc_s 4
-%else
%define libgcc_s 1
-%endif
-%define libgcj_sover 14
-%define libgcj_bc_sover 1
-%define libffi_sover 4
-%define libmudflap_sover 0
-%define libgomp_sover 1
-%define libstdcxx_sover 6
-%define libobjc_sover 4
-%define libgfortran_sover 3
-%define libquadmath_sover 0
-%define libasan_sover 0
-%define libtsan_sover 0
-%define libatomic_sover 1
-%define libitm_sover 1
+%define libgcj_sover %{nil}
+%define libgcj_bc_sover %{nil}
+%define libffi_sover %{nil}
+%define libmudflap_sover %{nil}
+%define libgomp_sover %{nil}
+%define libstdcxx_sover %{nil}
+%define libobjc_sover %{nil}
+%define libgfortran_sover %{nil}
+%define libquadmath_sover %{nil}
+%define libasan_sover %{nil}
+%define libtsan_sover %{nil}
+%define libatomic_sover %{nil}
+%define libitm_sover %{nil}
# Shared library package suffix
# This is used for the "non-standard" set of libraries, the standard
# COMMON-BEGIN
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source: gcc-%{gcc_version}%{snapshot_date}.tar.bz2
+Source: gcc-%{version}.tar.bz2
Source1: change_spec
Source3: gcc48-rpmlintrc
Source4: ecj.jar
# GCC-TESTSUITE-DELETE-BEGIN
# LIBJAVA-DELETE-BEGIN
-Group: Development/Languages/C and C++
+Group: Development/Toolchain
Summary: The GNU C Compiler and Support Files
License: GPL-3.0+
# COMMON-END
%package -n gcc@base_ver@-32bit
Summary: The GNU C Compiler 32bit support
-Group: Development/Languages/C and C++
Requires: gcc@base_ver@ = %{version}-%{release}
Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
Requires: libgomp%{libgomp_sover}-32bit >= %{version}-%{release}
%package -n gcc@base_ver@-64bit
Summary: The GNU C Compiler 64bit support
-Group: Development/Languages/C and C++
Requires: gcc@base_ver@ = %{version}-%{release}
Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
Requires: libgomp%{libgomp_sover}-64bit >= %{version}-%{release}
%package locale
Summary: Locale Data for the GNU Compiler Collection
License: GPL-3.0+
-Group: Development/Languages/C and C++
Requires: gcc@base_ver@ = %{version}-%{release}
%description locale
%package c++
Summary: The GNU C++ Compiler
License: GPL-3.0+
-Group: Development/Languages/C and C++
Requires: gcc@base_ver@ = %{version}-%{release}
Requires: libstdc++@base_ver@-devel = %{version}-%{release}
%package -n libstdc++@base_ver@-devel@variant@
Summary: Include Files and Libraries mandatory for Development
License: GPL-3.0-with-GCC-exception
-Group: Development/Languages/C and C++
Requires: libstdc++%{libstdcxx_sover}@variant@ >= %{version}-%{release}
Requires: glibc-devel@variant@
%ifarch ia64
%package -n libstdc++@base_ver@-doc
Summary: Documentation for the GNU C++ standard library
License: GPL-3.0+
-Group: Documentation/HTML
BuildArch: noarch
%description -n libstdc++@base_ver@-doc
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@
Summary: C compiler runtime library
License: GPL-3.0-with-GCC-exception
-Group: System/Base
+Group: System/Libraries
Provides: libgcc_s%{libgcc_s}@variant@ = %{version}-%{release}
%description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@
Summary: The GNU compiler collection OpenMP runtime library
License: GPL-3.0-with-GCC-exception
-Group: System/Base
+Group: System/Libraries
Provides: libgomp%{libgomp_sover}@variant@ = %{version}-%{release}
%description -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@
%package info
Summary: Documentation for the GNU compiler collection
License: GFDL-1.2
-Group: Documentation/Other
BuildArch: noarch
%description info
%package objc@variant@
Summary: GNU Objective C Compiler
License: GPL-3.0+
-Group: Development/Languages/Other
Requires: gcc@base_ver@ = %{version}-%{release}
Requires: libobjc%{libobjc_sover}@variant@ >= %{version}-%{release}
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@
Summary: Library for the GNU Objective C Compiler
License: GPL-3.0-with-GCC-exception
-Group: Development/Libraries/Other
Provides: libobjc%{libobjc_sover}@variant@ = %{version}-%{release}
%description -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@
%package obj-c++
Summary: GNU Objective C++ Compiler
License: GPL-3.0+
-Group: Development/Languages/Other
Requires: gcc@base_ver@-objc = %{version}-%{release}
Requires: gcc@base_ver@-c++ = %{version}-%{release}
%package -n cpp@base_ver@
Summary: The GCC Preprocessor
License: GPL-3.0+
-Group: Development/Languages/C and C++
%description -n cpp@base_ver@
This Package contains just the preprocessor that is used by the X11
%package ada@variant@
Summary: GNU Ada95 Compiler Based on GCC (GNAT)
License: GPL-3.0+
-Group: Development/Languages/Other
Requires: gcc@base_ver@@variant@ = %{version}-%{release}
Requires: libada@base_ver@@variant@ = %{version}-%{release}
%package -n libada@base_ver@@variant@
Summary: GNU Ada Runtime Libraries
License: GPL-3.0-with-GCC-exception
-Group: System/Libraries
%description -n libada@base_ver@@variant@
This package contains the shared libraries required to run programs
compiled with the GNU Ada compiler (GNAT) if they are compiled to use
%package fortran@variant@
Summary: The GNU Fortran Compiler and Support Files
License: GPL-3.0+
-Group: Development/Languages/Fortran
Requires: gcc@base_ver@ = %{version}-%{release}
Requires: libgfortran%{libgfortran_sover}@variant@ >= %{version}-%{release}
%ifarch %quadmath_arch
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}@variant@
Summary: The GNU Fortran Compiler Runtime Library
License: GPL-3.0-with-GCC-exception
-Group: Development/Languages/Fortran
%ifarch %quadmath_arch
Requires: libquadmath%{libquadmath_sover}@variant@ >= %{version}-%{release}
%endif
%package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}@variant@
Summary: The GNU Fortran Compiler Quadmath Runtime Library
License: LGPL-2.1
-Group: Development/Languages/Fortran
Provides: libquadmath%{libquadmath_sover}@variant@ = %{version}-%{release}
%description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}@variant@
%package -n libmudflap@base_ver@@variant@
Summary: The Mudflap Extension Runtime Library
License: GPL-3.0-with-GCC-exception
-Group: Development/Languages/C and C++
%description -n libmudflap@base_ver@@variant@
This is the Mudflap Extension Runtime Library.
%package -n libitm%{libitm_sover}%{libitm_suffix}@variant@
Summary: The GNU Compiler Transactional Memory Runtime Library
License: MIT
-Group: Development/Languages/C and C++
%description -n libitm%{libitm_sover}%{libitm_suffix}@variant@
The runtime library needed to run programs compiled with the
%package -n libasan%{libasan_sover}%{libasan_suffix}@variant@
Summary: The GNU Compiler Address Sanitizer Runtime Library
License: MIT
-Group: Development/Languages/C and C++
%description -n libasan%{libasan_sover}%{libasan_suffix}@variant@
The runtime library needed to run programs compiled with the
%package -n libtsan%{libtsan_sover}%{libtsan_suffix}@variant@
Summary: The GNU Compiler Thread Sanitizer Runtime Library
License: MIT
-Group: Development/Languages/C and C++
%description -n libtsan%{libtsan_sover}%{libtsan_suffix}@variant@
The runtime library needed to run programs compiled with the
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@
Summary: The GNU Compiler Atomic Operations Runtime Library
License: GPL-3.0-with-GCC-exception
-Group: Development/Languages/C and C++
%description -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@
The runtime library for atomic operations of the GNU Compiler Collection (GCC).
%package -n gcc@base_ver@-java
Summary: The GNU Java Compiler
License: GPL-3.0+
-Group: Development/Languages/Java
Requires: gcc@base_ver@ = %{version}
Requires: libgcj@base_ver@-devel = %{version}-%{release}
%package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
Summary: Fake library for BC-ABI compatibility.
License: GPL-2.0-with-classpath-exception
-Group: Development/Libraries/Java
# libgcj_bc is special in that it just contains a symlink to
# a proper libgcj version. So require that library and add
# provides for the shlib version as created at link time
%package -n libgcj@base_ver@-jar
Summary: Java runtime library (jar files).
License: GPL-2.0-with-classpath-exception
-Group: Development/Libraries/Java
%description -n libgcj@base_ver@-jar
These are the jar files that go along with the gcj front end to gcc.
%package -n libgcj@base_ver@-devel
Summary: Include Files and Libraries mandatory for Development.
License: GPL-2.0-with-classpath-exception
-Group: Development/Libraries/Java
Requires: libstdc++@base_ver@-devel = %{version}
Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
Requires: libgcj_bc%{libgcj_bc_sover} >= %{version}-%{release}
%package -n gcc@base_ver@-gij
Summary: Java Bytecode Interpreter for gcc
License: GPL-2.0-with-classpath-exception
-Group: Development/Libraries/Java
Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
%description -n gcc@base_ver@-gij
%package -n libffi%{libffi_sover}%{libffi_suffix}@variant@
Summary: Foreign Function Interface library
License: BSD-3-Clause
-Group: Development/Languages/C and C++
%description -n libffi%{libffi_sover}%{libffi_suffix}@variant@
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.
%package -n libffi@base_ver@-devel@variant@
Summary: Foreign Function Interface library development files
License: BSD 3-Clause
-Group: Development/Languages/C and C++
Requires: libffi%{libffi_sover}@variant@ >= %{version}-%{release}
%description -n libffi@base_ver@-devel@variant@
# GCC-TESTSUITE-DELETE-END
Summary: Testsuite results
License: SUSE-Public-Domain
-Group: Development/Languages/C and C++
%description -n gcc@base_ver@-testresults
Results from running the gcc and target library testsuites.
# COMMON-BEGIN
%prep
-%setup -q -n gcc-%{gcc_version}%{snapshot_date}
+%setup -q -n gcc-%{version}
# We are configuring ppc as ppc64 but with switched multilibs. Adjust
%endif
%if "%{TARGET_ARCH}" == "armv7l"
--with-arch=armv7-a \
- --with-tune=cortex-a9 \
- --with-float=hard \
- --with-abi=aapcs-linux \
- --with-fpu=vfpv3-d16 \
+ --with-tune=cortex-a8 \
+ --with-float=softfp \
+ --with-fpu=vfpv3 \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "armv7hl"