@@ -0,0 +1,1673 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other%0A# Spack Project Developers. See the top-level COPYRIGHT file for details.%0A#%0A# SPDX-License-Identifier: (Apache-2.0 OR MIT)%0A%0Afrom spack import *%0A%0A%0Aclass Tpm2Tss(AutotoolsPackage):%0A    %22%22%22OSS implementation of the TCG TPM2 Software Stack (TSS2)%22%22%22%0A%0A    homepage = %22https://tpm2-software.github.io/%22%0A    url      = %22https://github.com/tpm2-software/tpm2-tss/archive/3.0.0.tar.gz%22%0A%0A    version('3.0.0', sha256='e88e91aeee2e01ccc45596fb8afcc3b521a660dcebe5a6e1b14ea5e9e5c15cf5')%0A    version('2.4.2', sha256='1cec5e834a6a750b138cabcd100b3fcd12b16cd21fa4f9103739914743511f75')%0A    version('2.4.1', sha256='cc6f0691307f3c65d5a1375e2cd22508cc72850dbc70eb820b892f0b3d0cbea2')%0A%0A    depends_on('autoconf', type='build')%0A    depends_on('automake', type='build')%0A    depends_on('libtool',  type='build')%0A    depends_on('m4',       type='build')%0A    depends_on('autoconf-archive', type='build')%0A    depends_on('json-c')%0A    depends_on('curl')%0A    depends_on('doxygen', type='build', when='@:2.4.2')%0A    depends_on('libgcrypt', when='@:2.4.2')%0A%0A    @when('@:2.4.2')%0A    def setup_build_environment(self, env):%0A        env.prepend_path('ACLOCAL_PATH',%0A                         self.spec%5B'libgcrypt'%5D.prefix.share.aclocal)%0A        env.prepend_path('ACLOCAL_PATH',%0A                         self.spec%5B'autoconf-archive'%5D.prefix.share.aclocal)%0A%0A    @when('@3.0.0:')%0A    def setup_build_environment(self, env):%0A        env.prepend_path('ACLOCAL_PATH',%0A                         self.spec%5B'autoconf-archive'%5D.prefix.share.aclocal)%0A%0A    def autoreconf(self, spec, prefix):%0A        sh = which('sh')%0A        sh('./bootstrap')%0A

Add new package: tpm2-tss (#18824)