summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/slurm/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/slurm/package.py')
-rw-r--r--var/spack/repos/builtin/packages/slurm/package.py39
1 files changed, 10 insertions, 29 deletions
diff --git a/var/spack/repos/builtin/packages/slurm/package.py b/var/spack/repos/builtin/packages/slurm/package.py
index ac0d6f2610..afa3fc27db 100644
--- a/var/spack/repos/builtin/packages/slurm/package.py
+++ b/var/spack/repos/builtin/packages/slurm/package.py
@@ -1,27 +1,8 @@
-##############################################################################
-# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
-# Produced at the Lawrence Livermore National Laboratory.
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
-# This file is part of Spack.
-# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
-# LLNL-CODE-647188
-#
-# For details, see https://github.com/spack/spack
-# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License (as
-# published by the Free Software Foundation) version 2.1, February 1999.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
-# conditions of the GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-##############################################################################
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
from spack import *
@@ -43,6 +24,8 @@ class Slurm(AutotoolsPackage):
homepage = 'https://slurm.schedmd.com'
url = 'https://github.com/SchedMD/slurm/archive/slurm-17-02-6-1.tar.gz'
+ version('18-08-0-1', sha256='62129d0f2949bc8a68ef86fe6f12e0715cbbf42f05b8da6ef7c3e7e7240b50d9')
+ version('17-11-9-2', sha256='6e34328ed68262e776f524f59cca79ac75bcd18030951d45ea545a7ba4c45906')
version('17-02-6-1', '8edbb9ad41819464350d9de013367020')
variant('gtk', default=False, description='Enable GTK+ support')
@@ -64,11 +47,11 @@ class Slurm(AutotoolsPackage):
depends_on('lz4')
depends_on('munge')
depends_on('openssl')
- depends_on('pkg-config', type='build')
- depends_on('readline')
+ depends_on('pkgconfig', type='build')
+ depends_on('readline', when='+readline')
depends_on('zlib')
- depends_on('gtkplus+X', when='+gtk')
+ depends_on('gtkplus', when='+gtk')
depends_on('hdf5', when='+hdf5')
depends_on('hwloc', when='+hwloc')
depends_on('mariadb', when='+mariadb')
@@ -89,9 +72,7 @@ class Slurm(AutotoolsPackage):
if '~gtk' in spec:
args.append('--disable-gtktest')
- if '+readline' in spec:
- args.append('--with-readline={0}'.format(spec['readline'].prefix))
- else:
+ if '~readline' in spec:
args.append('--without-readline')
if '+hdf5' in spec: