Accepting request 779445 from home:eeich:branches:science

- Add support for gcc8/9 building (jsc#SLE-8604).

OBS-URL: https://build.opensuse.org/request/show/779445
OBS-URL: https://build.opensuse.org/package/show/science/metis?expand=0&rev=14
This commit is contained in:
Egbert Eich 2020-02-26 14:57:18 +00:00 committed by Git OBS Bridge
parent b9af26ab06
commit 5cfe676105
2 changed files with 28 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 26 12:26:32 UTC 2020 - Egbert Eich <eich@suse.com>
- Add support for gcc8/9 building (jsc#SLE-8604).
-------------------------------------------------------------------
Fri Mar 15 07:23:19 UTC 2019 - Egbert Eich <eich@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package metis
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -48,6 +48,27 @@ ExclusiveArch: do_not_build
%undefine mpi_flavor
%endif
%if "%{flavor}" == "gnu7-hpc"
%bcond_without hpc
%define compiler_family gnu
%define c_f_ver 7
%undefine mpi_flavor
%endif
%if "%{flavor}" == "gnu8-hpc"
%bcond_without hpc
%define compiler_family gnu
%define c_f_ver 8
%undefine mpi_flavor
%endif
%if "%{flavor}" == "gnu9-hpc"
%bcond_without hpc
%define compiler_family gnu
%define c_f_ver 9
%undefine mpi_flavor
%endif
%if %{without hpc}
%if 0%{!?package_name:1}
%define package_name %{pname}
@ -82,7 +103,7 @@ Release: 0
Summary: Serial Graph Partitioning and Fill-reducing Matrix Ordering
License: Apache-2.0
Group: Productivity/Scientific/Math
Url: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
URL: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
Source0: http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/%{pname}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE metis-cmake.patch
Patch1: metis-cmake.patch