Compare commits
10 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
a8cf2c9ee1 | ||
|
23dbabc001 | ||
|
91c762a013 | ||
|
434da6ea26 | ||
|
40d54b1d24 | ||
|
02d9ee9b11 | ||
|
863f686452 | ||
|
97fc35c75f | ||
|
b49cf631e7 | ||
|
0199c2a4e9 |
28
gcc.changes
28
gcc.changes
@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 23 16:34:29 UTC 2024 - Eugenio Paolantonio <eugenio.paolantonio@suse.com>
|
||||
|
||||
- Ensure every -build package conflicts and provides the non-build
|
||||
counterpart (related to boo#1230628)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 14:06:50 UTC 2024 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Make gcc-build-fortran provide and conflict gcc-fortran.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 1 10:53:40 UTC 2024 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Add libquadmath-devel package for GCC 14.
|
||||
- Bump GCC version to 14, leave -build flavor at 13.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 20 09:48:44 UTC 2024 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Add conflicts where -build variants provide the non-build variant.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 18 13:47:32 UTC 2024 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Add gcc, gcc-c++ and libstdc++-devel Provides to the -build flavor
|
||||
of those packages. Should fix build of boost in ALP.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 14 09:27:54 UTC 2024 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
157
gcc.spec
157
gcc.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package gcc
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
@ -24,8 +24,8 @@
|
||||
%define gcc_suffix 13
|
||||
%else
|
||||
%define gccsuffix %{nil}
|
||||
%define gcc_version 13
|
||||
%define gcc_suffix 13
|
||||
%define gcc_version 14
|
||||
%define gcc_suffix 14
|
||||
%endif
|
||||
|
||||
Name: gcc%{gccsuffix}
|
||||
@ -53,7 +53,9 @@ Name: gcc%{gccsuffix}
|
||||
%else
|
||||
%define build_d 0
|
||||
%endif
|
||||
%define quadmath_arch %ix86 x86_64 ia64 ppc64le
|
||||
%define libgccjit_sover 0
|
||||
|
||||
URL: http://gcc.gnu.org/
|
||||
Version: %{gcc_version}
|
||||
Release: 0
|
||||
@ -61,6 +63,10 @@ Summary: The system GNU C Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
Provides: c_compiler
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc = %{version}
|
||||
Conflicts: gcc
|
||||
%endif
|
||||
Requires: cpp%{gccsuffix}
|
||||
Requires: gcc%{gcc_version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -86,6 +92,10 @@ The system GNU C Compiler.
|
||||
Summary: The system GNU C Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-32bit = %{version}
|
||||
Conflicts: gcc-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-32bit
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
|
||||
@ -96,6 +106,10 @@ The system GNU C Compiler.
|
||||
Summary: The system GNU C Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-64bit = %{version}
|
||||
Conflicts: gcc-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-64bit
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
|
||||
@ -118,6 +132,10 @@ The system GNU Preprocessor.
|
||||
Summary: The system GNU C Compiler Plugin development files
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-devel = %{version}
|
||||
Conflicts: gcc-devel
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-devel
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
|
||||
@ -128,6 +146,10 @@ The system GNU C Compiler Plugin development files.
|
||||
Summary: The system GNU Compiler locale files
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-locale = %{version}
|
||||
Conflicts: gcc-locale
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-locale
|
||||
|
||||
%description -n gcc%{gccsuffix}-locale
|
||||
@ -137,6 +159,10 @@ The system GNU Compiler locale files.
|
||||
Summary: The system GNU Compiler documentation
|
||||
License: GFDL-1.2-only
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-info = %{version}
|
||||
Conflicts: gcc-info
|
||||
%endif
|
||||
PreReq: %{install_info_prereq}
|
||||
PreReq: gcc%{gcc_version}-info
|
||||
|
||||
@ -153,11 +179,7 @@ The system GNU Compiler documentation.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# install / update the entries
|
||||
|
||||
%post -n gcc%{gccsuffix}-info
|
||||
%install_info --info-dir=%{_infodir} --name=cpp --description='The GNU C preprocessor.' %{_infodir}/cpp.info.gz
|
||||
%install_info --info-dir=%{_infodir} --name=gcc --description='The GNU Compiler Collection.' %{_infodir}/gcc.info.gz
|
||||
@ -178,6 +200,10 @@ Summary: The system GNU C++ Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
Provides: c++_compiler
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-c++ = %{version}
|
||||
Conflicts: gcc-c++
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-c++
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
|
||||
@ -188,6 +214,10 @@ The system GNU C++ Compiler.
|
||||
Summary: The system GNU C++ Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-c++-32bit = %{version}
|
||||
Conflicts: gcc-c++-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-c++-32bit
|
||||
Requires: gcc%{gccsuffix}-32bit = %{version}
|
||||
Requires: gcc%{gccsuffix}-c++ = %{version}
|
||||
@ -199,6 +229,10 @@ The system GNU C++ Compiler 32 bit support.
|
||||
Summary: The system GNU C++ Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-c++-64bit = %{version}
|
||||
Conflicts: gcc-c++-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-c++-64bit
|
||||
Requires: gcc%{gccsuffix}-64bit = %{version}
|
||||
Requires: gcc%{gccsuffix}-c++ = %{version}
|
||||
@ -210,6 +244,10 @@ The system GNU C++ Compiler 64 bit support.
|
||||
Summary: The system GNU C++ development files
|
||||
License: GPL-3.0-only WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: libstdc++-devel = %{version}
|
||||
Conflicts: libstdc++-devel
|
||||
%endif
|
||||
Requires: libstdc++6-devel-gcc%{gcc_version}
|
||||
|
||||
%description -n libstdc++%{gccsuffix}-devel
|
||||
@ -219,6 +257,10 @@ The system GNU C++ development files.
|
||||
Summary: The system GNU C++ 32bit development files
|
||||
License: GPL-3.0-only WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: libstdc++-devel-32bit = %{version}
|
||||
Conflicts: libstdc++-devel-32bit
|
||||
%endif
|
||||
Requires: libstdc++%{gccsuffix}-devel
|
||||
Requires: libstdc++6-devel-gcc%{gcc_version}-32bit
|
||||
|
||||
@ -229,6 +271,10 @@ The system GNU C++ 32bit development files.
|
||||
Summary: The system GNU C++ 64bit development files
|
||||
License: GPL-3.0-only WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: libstdc++-devel-64bit = %{version}
|
||||
Conflicts: libstdc++-devel-64bit
|
||||
%endif
|
||||
Requires: libstdc++%{gccsuffix}-devel
|
||||
Requires: libstdc++6-devel-gcc%{gcc_version}-64bit
|
||||
|
||||
@ -239,6 +285,10 @@ The system GNU C++ 64bit development files.
|
||||
Summary: The system GNU Fortran Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Fortran
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-fortran = %{version}
|
||||
Conflicts: gcc-fortran
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-fortran
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
|
||||
@ -249,6 +299,10 @@ The system GNU Fortran Compiler.
|
||||
Summary: The system GNU Fortran Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Fortran
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-fortran-32bit = %{version}
|
||||
Conflicts: gcc-fortran-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-fortran-32bit
|
||||
Requires: gcc%{gccsuffix}-fortran = %{version}
|
||||
|
||||
@ -259,6 +313,10 @@ The system GNU Fortran Compiler 32 bit support.
|
||||
Summary: The system GNU Fortran Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Fortran
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-fortran-64bit = %{version}
|
||||
Conflicts: gcc-fortran-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-fortran-64bit
|
||||
Requires: gcc%{gccsuffix}-fortran = %{version}
|
||||
|
||||
@ -269,6 +327,10 @@ The system GNU Fortran Compiler 64 bit support.
|
||||
Summary: The system GNU Objective C Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Other
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-objc = %{version}
|
||||
Conflicts: gcc-objc
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-objc
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
%ifarch ppc64
|
||||
@ -282,6 +344,10 @@ The system GNU Objective C Compiler.
|
||||
Summary: The system GNU Objective C Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Other
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-objc-32bit = %{version}
|
||||
Conflicts: gcc-objc-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-objc-32bit
|
||||
Requires: gcc%{gccsuffix}-objc = %{version}
|
||||
|
||||
@ -292,6 +358,10 @@ The system GNU Objective C Compiler 32 bit support.
|
||||
Summary: The system GNU Objective C Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Other
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-objc-64bit = %{version}
|
||||
Conflicts: gcc-objc-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-objc-64bit
|
||||
Requires: gcc%{gccsuffix}-objc = %{version}
|
||||
|
||||
@ -302,6 +372,10 @@ The system GNU Objective C Compiler 64 bit support.
|
||||
Summary: The system GNU Objective C++ Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Other
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-objc-c++ = %{version}
|
||||
Conflicts: gcc-objc-c++
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-obj-c++
|
||||
Requires: gcc%{gccsuffix}-objc = %{version}
|
||||
|
||||
@ -312,6 +386,10 @@ The system GNU Objective C++ Compiler.
|
||||
Summary: A default configuration to build all binaries in PIE mode
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Other
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-PIE = %{version}
|
||||
Conflicts: gcc-PIE
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-PIE
|
||||
|
||||
%description -n gcc%{gccsuffix}-PIE
|
||||
@ -324,6 +402,10 @@ space randomization (ASLR).
|
||||
Summary: The system GNU Ada Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-ada = %{version}
|
||||
Conflicts: gcc-ada
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-ada
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
|
||||
@ -334,6 +416,10 @@ The system GNU Ada Compiler.
|
||||
Summary: The system GNU Ada Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-ada-32bit = %{version}
|
||||
Conflicts: gcc-ada-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-ada-32bit
|
||||
Requires: gcc%{gccsuffix}-ada = %{version}
|
||||
|
||||
@ -344,6 +430,10 @@ The system GNU Ada Compiler 32 bit support.
|
||||
Summary: The system GNU Ada Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-ada-64bit = %{version}
|
||||
Conflicts: gcc-ada-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-ada-64bit
|
||||
Requires: gcc%{gccsuffix}-ada = %{version}
|
||||
|
||||
@ -354,10 +444,14 @@ The system GNU Ada Compiler 64 bit support.
|
||||
Summary: The system GNU Go Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-go = %{version}
|
||||
Conflicts: gcc-go
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-go
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description -n gcc%{gccsuffix}-go
|
||||
The system GNU Go Compiler.
|
||||
@ -366,6 +460,10 @@ The system GNU Go Compiler.
|
||||
Summary: The system GNU Go Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-go-32bit = %{version}
|
||||
Conflicts: gcc-go-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-go-32bit
|
||||
Requires: gcc%{gccsuffix}-go = %{version}
|
||||
|
||||
@ -376,6 +474,10 @@ The system GNU Go Compiler 32bit support.
|
||||
Summary: The system GNU Go Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-go-64bit = %{version}
|
||||
Conflicts: gcc-go-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-go-64bit
|
||||
Requires: gcc%{gccsuffix}-go = %{version}
|
||||
|
||||
@ -386,10 +488,14 @@ The system GNU Go Compiler 64bit support.
|
||||
Summary: The system GNU D Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-d = %{version}
|
||||
Conflicts: gcc-d
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-d
|
||||
Requires: gcc%{gccsuffix} = %{version}
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description -n gcc%{gccsuffix}-d
|
||||
The system GNU D Compiler.
|
||||
@ -398,6 +504,10 @@ The system GNU D Compiler.
|
||||
Summary: The system GNU D Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-d-32bit = %{version}
|
||||
Conflicts: gcc-d-32bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-d-32bit
|
||||
Requires: gcc%{gccsuffix}-d = %{version}
|
||||
|
||||
@ -408,6 +518,10 @@ The system GNU D Compiler 32bit support.
|
||||
Summary: The system GNU D Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: gcc-d-64bit = %{version}
|
||||
Conflicts: gcc-d-64bit
|
||||
%endif
|
||||
Requires: gcc%{gcc_version}-d-64bit
|
||||
Requires: gcc%{gccsuffix}-d = %{version}
|
||||
|
||||
@ -418,11 +532,28 @@ The system GNU D Compiler 64bit support.
|
||||
Summary: Support for embedding GCC inside programs and libraries
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: libgccjit-devel = %{version}
|
||||
Conflicts: libgccjit-devel
|
||||
%endif
|
||||
Requires: libgccjit%{libgccjit_sover}-devel-gcc%{gcc_version}
|
||||
|
||||
%description -n libgccjit%{gccsuffix}-devel
|
||||
Package contains header files and documentation for GCC JIT front-end.
|
||||
|
||||
%package -n libquadmath%{gccsuffix}-devel
|
||||
Summary: Development files for the quadprecision math library
|
||||
License: LGPL-2.1-only
|
||||
Group: Development/Languages/Fortran
|
||||
%if "%{gccsuffix}" != ""
|
||||
Provides: libquadmath-devel = %{version}
|
||||
Conflicts: libquadmath-devel
|
||||
%endif
|
||||
Requires: libquadmath0-devel-gcc%{gcc_version}
|
||||
|
||||
%description -n libquadmath%{gccsuffix}-devel
|
||||
Development files for the quadprecision math library.
|
||||
|
||||
%prep
|
||||
|
||||
%install
|
||||
@ -692,4 +823,12 @@ fi
|
||||
%defattr(-,root,root)
|
||||
# empty - only for the dependency
|
||||
|
||||
%if %{gcc_version} >= 14
|
||||
%ifarch %quadmath_arch
|
||||
%files -n libquadmath%{gccsuffix}-devel
|
||||
%defattr(-,root,root)
|
||||
# empty - only for the dependency
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user