diff options
-rw-r--r-- | packaging/key-manager.spec | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/key-manager.spec b/packaging/key-manager.spec index 24fc5ac8..c5f82121 100644 --- a/packaging/key-manager.spec +++ b/packaging/key-manager.spec @@ -1,7 +1,7 @@ %global watchdog_enabled 1 %global watchdog_timeout_sec 60 %global watchdog_notify_sec 20 -%global tz_backend_enabled 0 +%global tz_backend_enabled %{?tz_backend:%tz_backend}%{!?tz_backend:OFF} Name: key-manager Summary: Central Key Manager and utilities @@ -36,7 +36,7 @@ BuildRequires: pkgconfig(argos_watchdog) %endif BuildRequires: boost-devel BuildRequires: ca-certificates-devel -%if %{tz_backend_enabled} == 1 +%if %{tz_backend_enabled} == ON BuildRequires: key-manager-ta-devel BuildRequires: key-manager-ta-serialization-devel BuildRequires: pkgconfig(tef-libteec) @@ -176,7 +176,7 @@ export LDFLAGS+="-Wl,--rpath=%{_libdir},-Bsymbolic-functions " -DWATCHDOG_TIMEOUT_SEC=%{watchdog_timeout_sec} \ -DWATCHDOG_NOTIFY_SEC=%{watchdog_notify_sec} \ %endif -%if %{tz_backend_enabled} == 1 +%if %{tz_backend_enabled} == ON -DTZ_BACKEND_ENABLED=ON \ %else -DTZ_BACKEND_ENABLED=OFF \ |