%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
%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)
-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 \