From 3bfe7693b7a6c014e675bad0ba02b81a3e6d2d46 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Mon, 19 Aug 2024 17:11:40 +0200 Subject: [PATCH] do not add unnecessary require on policycoreutils-python-utils (RHEL-55048) Resolves: RHEL-55048 --- smartmontools.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/smartmontools.spec b/smartmontools.spec index dd5811c..fdc23fd 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -7,7 +7,7 @@ Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 7.4 -Release: 5%{?dist} +Release: 6%{?dist} Epoch: 1 License: GPL-2.0-or-later URL: http://smartmontools.sourceforge.net/ @@ -51,7 +51,16 @@ BuildArch: noarch Requires: selinux-policy-%{selinuxtype} Requires(post): selinux-policy-%{selinuxtype} BuildRequires: selinux-policy-devel -%{?selinux_requires} +# expand %%{?selinux_require} macro as it pulls unnecessary requirements that cause an issue RHEL-55048,RHEL-54715 +Requires: selinux-policy >= 40.13.6 +BuildRequires: pkgconfig(systemd) +BuildRequires: selinux-policy +BuildRequires: selinux-policy-devel +Requires(post): selinux-policy-base >= 40.13.6 +Requires(post): libselinux-utils +Requires(post): policycoreutils +# explicitely disabled Requires(post): policycoreutils-python-utils +# end of %%selinux_require macro %description selinux Custom SELinux policy module for smartmontools @@ -161,6 +170,9 @@ fi %changelog +* Mon Aug 19 2024 Michal Hlavinka - 1:7.4-6 +- do not add unnecessary require on policycoreutils-python-utils (RHEL-55048) + * Tue Aug 06 2024 Michal Hlavinka - 1:7.4-5 - fix static analysis findings (RHEL-44567)