summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libjwt/package.py
blob: da3874a7104221626ed421c55091927abfd36952 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Libjwt(AutotoolsPackage):
    """libjwt JSON Web Token C Library"""

    homepage = "https://github.com/benmcollins/libjwt"
    git      = "https://github.com/benmcollins/libjwt"
    url      = "https://github.com/benmcollins/libjwt/archive/v1.12.0.tar.gz"

    maintainers = ['bollig']

    version('1.13.1', sha256='4df55ac89c6692adaf3badb43daf3241fd876612c9ab627e250dfc4bb59993d9')
    version('1.12.1', sha256='d29e4250d437340b076350e910e69fd5539ef8b92528d0306745cec0e343cc17')
    version('1.12.0', sha256='eaf5d8b31d867c02dde767efa2cf494840885a415a3c9a62680bf870a4511bee')

    depends_on('autoconf', type='build')
    depends_on('automake', type='build')
    depends_on('libtool', type='build')
    depends_on('m4', type='build')
    depends_on('pkgconfig', type='build')
    # Needs openssl at runtime to ensure we can generate keys
    depends_on('openssl', type=('build', 'run'))
    depends_on('jansson')

    def configure_args(self):
        return ['--without-examples']