SHA256
1
0
forked from pool/gcc

- Add gcc-build flavor for building ALP packages, but disabled for

openSUSE.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=123
This commit is contained in:
Richard Biener 2024-02-14 09:28:53 +00:00 committed by Git OBS Bridge
parent 53d2a33602
commit 682f641ea9
3 changed files with 26 additions and 4 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<flavor>build</flavor>
</multibuild>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 14 09:27:54 UTC 2024 - Richard Biener <rguenther@suse.com>
- Add gcc-build flavor for building ALP packages, but disabled for
openSUSE.
-------------------------------------------------------------------
Tue Feb 13 14:46:11 UTC 2024 - Richard Biener <rguenther@suse.com>

View File

@ -16,7 +16,17 @@
#
%define flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "build"
%define gccsuffix -build
%define gcc_version 13
%define gcc_suffix 13
%else
%define gccsuffix %{nil}
%define gcc_version 13
%define gcc_suffix 13
%endif
Name: gcc%{gccsuffix}
%define separate_bi32 0
@ -45,9 +55,7 @@ Name: gcc%{gccsuffix}
%endif
%define libgccjit_sover 0
URL: http://gcc.gnu.org/
%define gcc_version 13
%define gcc_suffix 13
Version: 13
Version: %{gcc_version}
Release: 0
Summary: The system GNU C Compiler
License: GPL-3.0-or-later
@ -67,6 +75,9 @@ BuildRequires: gcc%{gcc_version}-ada
BuildRequires: gcc%{gcc_version}-d
%endif
Source: cpp
%if "%{gccsuffix}" != "" && 0%{?is_opensuse}
ExclusiveArch: do-not-build
%endif
%description -n gcc%{gccsuffix}
The system GNU C Compiler.
@ -142,8 +153,10 @@ The system GNU Compiler documentation.
# install / update the entries
# 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