From 518d1439c7c210ddb6c1bd6267fed62bb0cb8ab7 Mon Sep 17 00:00:00 2001
From: Mathias Anselmann <mathias.anselmann@posteo.de>
Date: Tue, 3 Mar 2020 12:06:58 +0100
Subject: [PATCH] Suite sparse compilation fix for 5.7.0 and 5.7.1 (#15289)

Suite-sparse 5.7.0 and 5.7.1 need separate make and make install run to be able to compile, too
---
 var/spack/repos/builtin/packages/suite-sparse/package.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py
index 5019b7a236..c9e7b43470 100644
--- a/var/spack/repos/builtin/packages/suite-sparse/package.py
+++ b/var/spack/repos/builtin/packages/suite-sparse/package.py
@@ -131,8 +131,7 @@ def install(self, spec, prefix):
         # In those SuiteSparse versions calling "make install" in one go is
         # not possible, mainly because of GraphBLAS.  Thus compile first and
         # install in a second run.
-        if (self.spec.version >= Version('5.4.0') and
-            self.spec.version <= Version('5.6.0')):
+        if '@5.4.0:' in self.spec:
             make('default', *make_args)
 
         make('install', *make_args)
-- 
GitLab