From 2221ec51fa93184c325ae5b7e846df587e302025 Mon Sep 17 00:00:00 2001 From: Jerry Snitselaar Date: Feb 12 2019 04:09:43 +0000 Subject: spec: Fix tpm2-abrmd-selinux requires We should only require tpm2-abrmd-selinux on selinux enabled systems. Change requires to depend on selinux-policy-%{selinuxtype}. Signed-off-by: Jerry Snitselaar --- diff --git a/tpm2-abrmd.spec b/tpm2-abrmd.spec index bbefb34..84e182d 100644 --- a/tpm2-abrmd.spec +++ b/tpm2-abrmd.spec @@ -1,6 +1,8 @@ +%global selinuxtype targeted + Name: tpm2-abrmd Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A system daemon implementing TPM2 Access Broker and Resource Manager License: BSD @@ -20,7 +22,7 @@ BuildRequires: pkgconfig(tss2-sys) BuildRequires: tpm2-tss-devel >= 2.0.0-2%{?dist} # tpm2-abrmd depends on the package that contains its SELinux policy module -Requires: %{name}-selinux >= 2.0.0-1%{?dist} +Requires: (%{name}-selinux >= 2.0.0-1%{?dist} if selinux-policy-%{selinuxtype}) %description tpm2-abrmd is a system daemon implementing the TPM2 access broker (TAB) and @@ -88,6 +90,9 @@ required to build applications that use tpm2-abrmd. %systemd_postun tpm2-abrmd.service %changelog +* Mon Feb 11 2019 Jerry Snitselaar - 2.1.0-2 +- Fix tpm2-abrmd-selinux requires + * Mon Feb 11 2019 Sun Yunying - 2.1.0-1 - Update to 2.1.0 release