yafyaml: Add fismahigh variant to comply with FISMA standards (#36471)

This commit is contained in:
Alex Richert 2023-04-01 12:12:00 -07:00 committed by GitHub
parent 5c3bc36fde
commit b9bde03df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
@ -52,3 +54,9 @@ class Yafyaml(CMakePackage):
description="The build type to build",
values=("Debug", "Release"),
)
variant("fismahigh", default=False, description="Apply patching for FISMA-high compliance")
@when("+fismahigh")
def patch(self):
if os.path.exists("tools/ci-install-gfe.bash"):
os.remove("tools/ci-install-gfe.bash")