summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-10-19 23:14:51 +0800
committerGitHub <noreply@github.com>2020-10-19 10:14:51 -0500
commitced73019de3f2eb5bc6aa4011b5eebab89d13fbc (patch)
tree133219c0f9d282d88c57bcc5dbef9de659f4ff66
parent78986c5575be0d3a26546b0b20fade2336a0c33d (diff)
downloadspack-ced73019de3f2eb5bc6aa4011b5eebab89d13fbc.tar.gz
spack-ced73019de3f2eb5bc6aa4011b5eebab89d13fbc.tar.bz2
spack-ced73019de3f2eb5bc6aa4011b5eebab89d13fbc.tar.xz
spack-ced73019de3f2eb5bc6aa4011b5eebab89d13fbc.zip
Add new package: tpm2-tss (#18824)
* Add new package: tpm2-tss * remove patch(), there's no need to use it
-rw-r--r--var/spack/repos/builtin/packages/tpm2-tss/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tpm2-tss/package.py b/var/spack/repos/builtin/packages/tpm2-tss/package.py
new file mode 100644
index 0000000000..f06f4a0378
--- /dev/null
+++ b/var/spack/repos/builtin/packages/tpm2-tss/package.py
@@ -0,0 +1,43 @@
+# Copyright 2013-2020 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 import *
+
+
+class Tpm2Tss(AutotoolsPackage):
+ """OSS implementation of the TCG TPM2 Software Stack (TSS2)"""
+
+ homepage = "https://tpm2-software.github.io/"
+ url = "https://github.com/tpm2-software/tpm2-tss/archive/3.0.0.tar.gz"
+
+ version('3.0.0', sha256='e88e91aeee2e01ccc45596fb8afcc3b521a660dcebe5a6e1b14ea5e9e5c15cf5')
+ version('2.4.2', sha256='1cec5e834a6a750b138cabcd100b3fcd12b16cd21fa4f9103739914743511f75')
+ version('2.4.1', sha256='cc6f0691307f3c65d5a1375e2cd22508cc72850dbc70eb820b892f0b3d0cbea2')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('autoconf-archive', type='build')
+ depends_on('json-c')
+ depends_on('curl')
+ depends_on('doxygen', type='build', when='@:2.4.2')
+ depends_on('libgcrypt', when='@:2.4.2')
+
+ @when('@:2.4.2')
+ def setup_build_environment(self, env):
+ env.prepend_path('ACLOCAL_PATH',
+ self.spec['libgcrypt'].prefix.share.aclocal)
+ env.prepend_path('ACLOCAL_PATH',
+ self.spec['autoconf-archive'].prefix.share.aclocal)
+
+ @when('@3.0.0:')
+ def setup_build_environment(self, env):
+ env.prepend_path('ACLOCAL_PATH',
+ self.spec['autoconf-archive'].prefix.share.aclocal)
+
+ def autoreconf(self, spec, prefix):
+ sh = which('sh')
+ sh('./bootstrap')