Accepting request 724405 from home:eeich:branches:science:HPC
- Add support for gcc v.6, v.8 and v.9. for SLE-12 HPC: v.6, v.7, v.8 (jsc#SLE-7765) for SLE-15 & SLE-15-SP1: gcc v.7, v.8 (jsc#SLE-7766) - For the base compiler add a Provides: for the versioned form. OBS-URL: https://build.opensuse.org/request/show/724405 OBS-URL: https://build.opensuse.org/package/show/science:HPC/gnu-compilers-hpc?expand=0&rev=22
This commit is contained in:
parent
660edb91ad
commit
152faccf6c
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 2 05:30:55 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
- Add support for gcc v.6, v.8 and v.9.
|
||||||
|
for SLE-12 HPC: v.6, v.7, v.8 (jsc#SLE-7765)
|
||||||
|
for SLE-15 & SLE-15-SP1: gcc v.7, v.8 (jsc#SLE-7766)
|
||||||
|
- For the base compiler add a Provides: for the versioned form.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 16 15:01:07 UTC 2019 - eich@suse.com
|
Wed Jan 16 15:01:07 UTC 2019 - eich@suse.com
|
||||||
|
|
||||||
|
@ -31,10 +31,22 @@ ExclusiveArch: do_not_build
|
|||||||
%undefine c_f_ver
|
%undefine c_f_ver
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "gnu6-hpc"
|
||||||
|
%define c_f_ver 6
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%flavor" == "gnu7-hpc"
|
%if "%flavor" == "gnu7-hpc"
|
||||||
%define c_f_ver 7
|
%define c_f_ver 7
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "gnu8-hpc"
|
||||||
|
%define c_f_ver 8
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "gnu9-hpc"
|
||||||
|
%define c_f_ver 9
|
||||||
|
%endif
|
||||||
|
|
||||||
# Keep in sync with macros.hpc-gnu
|
# Keep in sync with macros.hpc-gnu
|
||||||
%global hpc_gnu_bin_version %{?c_f_ver:-%(echo %c_f_ver | \
|
%global hpc_gnu_bin_version %{?c_f_ver:-%(echo %c_f_ver | \
|
||||||
sed -e "s@\\([0-9]\\)@\\1.@g" -e "s@\\([0-9]\\)\\.\\$@\\1@g")}
|
sed -e "s@\\([0-9]\\)@\\1.@g" -e "s@\\([0-9]\\)\\.\\$@\\1@g")}
|
||||||
@ -45,6 +57,7 @@ ExclusiveArch: do_not_build
|
|||||||
[ ${HPC_CF_FULL_VERSION%%%%.*} -lt 5 ] && \
|
[ ${HPC_CF_FULL_VERSION%%%%.*} -lt 5 ] && \
|
||||||
echo ${HPC_CF_FULL_VERSION%%.*} || \
|
echo ${HPC_CF_FULL_VERSION%%.*} || \
|
||||||
echo ${HPC_CF_FULL_VERSION%%%%.*} )
|
echo ${HPC_CF_FULL_VERSION%%%%.*} )
|
||||||
|
%global hpc_prov_version %{!?c_f_ver:%(var=%hpc_gnu_dep_version; echo ${var/./_})}
|
||||||
%global hpc_gnu_pack_version %{?c_f_ver}
|
%global hpc_gnu_pack_version %{?c_f_ver}
|
||||||
%if 0%{!?leap_version:1} && 0%{!?sle_version:1}
|
%if 0%{!?leap_version:1} && 0%{!?sle_version:1}
|
||||||
%global hpc_rolling_release_version %(echo %hpc_gnu_dep_version | tr -d '.')
|
%global hpc_rolling_release_version %(echo %hpc_gnu_dep_version | tr -d '.')
|
||||||
@ -67,6 +80,9 @@ Source3: _multibuild
|
|||||||
BuildRequires: gcc%{?c_f_ver}
|
BuildRequires: gcc%{?c_f_ver}
|
||||||
BuildRequires: lua-lmod
|
BuildRequires: lua-lmod
|
||||||
BuildRequires: suse-hpc
|
BuildRequires: suse-hpc
|
||||||
|
%{!?c_f_ver: #
|
||||||
|
Provides: %{compiler_family}%{?hpc_prov_version}-compilers-hpc = %version-%release
|
||||||
|
}
|
||||||
Requires: lua-lmod
|
Requires: lua-lmod
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -80,6 +96,9 @@ Provides HPC-compatible setup and configuration for the GNU compiler toolchain.
|
|||||||
Summary: Devel package for HPC GNU compiler environment
|
Summary: Devel package for HPC GNU compiler environment
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%{!?c_f_ver: #
|
||||||
|
Provides: %{compiler_family}%{?hpc_prov_version}-compilers-hpc-devel = %version-%release
|
||||||
|
}
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: gcc%{hpc_cf_pack_version}
|
Requires: gcc%{hpc_cf_pack_version}
|
||||||
Requires: gcc%{hpc_cf_pack_version}-c++
|
Requires: gcc%{hpc_cf_pack_version}-c++
|
||||||
@ -99,6 +118,9 @@ Group: Development/Tools/Other
|
|||||||
Provides: %{pname}-hpc-macros-devel = %{version}
|
Provides: %{pname}-hpc-macros-devel = %{version}
|
||||||
Conflicts: otherproviders(%{pname}-hpc-macros-devel)
|
Conflicts: otherproviders(%{pname}-hpc-macros-devel)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%{!?c_f_ver: #
|
||||||
|
Provides: %{compiler_family}%{?hpc_prov_version}-compilers-hpc-macros-devel = %version-%release
|
||||||
|
}
|
||||||
Requires: %{name}-devel = %{version}
|
Requires: %{name}-devel = %{version}
|
||||||
|
|
||||||
%description macros-devel
|
%description macros-devel
|
||||||
@ -107,6 +129,10 @@ Provides macros for building HPC compliant RPM with the GNU compiler toolchain.
|
|||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
echo "hpc_gnu_full_version: %hpc_gnu_full_version"
|
||||||
|
echo "hpc_gnu_dep_version: %hpc_gnu_dep_version"
|
||||||
|
echo "hpc_gnu_bin_version: %hpc_gnu_bin_version"
|
||||||
|
%{!?c_f_ver:echo "hpc_prov_version: %hpc_prov_version"}
|
||||||
|
|
||||||
%{__cat} <<EOF > %{meta}
|
%{__cat} <<EOF > %{meta}
|
||||||
%{name}-devel is a meta package to ensure installation of the
|
%{name}-devel is a meta package to ensure installation of the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user