From 775befed48991de698562ea14370924e367f0c94 Mon Sep 17 00:00:00 2001 From: Petr Menšík Date: Apr 28 2020 08:18:03 +0000 Subject: Try successful build on epel8 softhsm is not provided on RHEL 8 as normal package. It is distributed only in idm:DL1 module. If unittest or systemtest is not enabled, skip configuring softhsm. It would not be used anyway. --- diff --git a/bind.spec b/bind.spec index 2f216cf..0161355 100644 --- a/bind.spec +++ b/bind.spec @@ -166,7 +166,7 @@ BuildRequires: libdb-devel # make unit dependencies BuildRequires: libcmocka-devel kyua %endif -%if %{with PKCS11} +%if %{with PKCS11} && (%{with UNITTEST} || %{with SYSTEMTEST}) BuildRequires: softhsm %endif %if %{with SYSTEMTEST} @@ -597,7 +597,7 @@ popd # build %systemtest_prepare_build build %check -%if %{with PKCS11} +%if %{with PKCS11} && (%{with UNITTEST} || %{with SYSTEMTEST}) # Tests require initialization of pkcs11 token eval "$(bash %{SOURCE48} -A "`pwd`/softhsm-tokens")" %endif