forked from pool/gcc11
- Update to gcc-11 branch head (27350b77a92062667427100afb4), git10
* Includes GCC 11.1 RC1 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=334
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#
|
||||
# spec file template for cross packages of gcc${version}
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
@@ -115,7 +114,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 11.0.1+git184378
|
||||
Version: 11.0.1+git10
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@@ -123,7 +122,6 @@ Release: 0
|
||||
%if %{suse_version} < 1310
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%endif
|
||||
Group: Development/Languages/C and C++
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source2: gcc11-rpmlintrc
|
||||
@@ -146,8 +144,6 @@ Patch52: gcc10-foffload-default.patch
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
License: GPL-3.0-or-later
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
@@ -236,8 +232,8 @@ ExclusiveArch: x86_64
|
||||
%endif
|
||||
%if "%{cross_arch}" == "amdgcn"
|
||||
# amdgcn uses the llvm assembler and linker
|
||||
BuildRequires: llvm
|
||||
BuildRequires: lld
|
||||
BuildRequires: llvm
|
||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||
Requires: lld
|
||||
Requires: llvm
|
||||
@@ -275,8 +271,10 @@ Conflicts: cross-%{cross_arch}-gcc11
|
||||
#!BuildIgnore: gcc-PIE
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun):update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
@@ -784,7 +782,7 @@ install -s $RPM_BUILD_ROOT/%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
install -s $RPM_BUILD_ROOT/%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} \
|
||||
$RPM_BUILD_ROOT/env/usr/bin/gcc
|
||||
|
||||
for back in cc1 cc1plus; do
|
||||
for back in cc1 cc1plus; do
|
||||
install -s -D $RPM_BUILD_ROOT/%{targetlibsubdir}/$back \
|
||||
$RPM_BUILD_ROOT/env%{targetlibsubdir}/$back
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user