diff options
| author | Danish Prakash <contact@danishpraka.sh> | 2025-11-21 18:17:46 +0530 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-11-27 22:20:16 +0100 |
| commit | 95ab87b490c5235c9c9dde8f100a93f4b17ba4f4 (patch) | |
| tree | 6b3bb5811883e397bc5835f4f9b47d624f09eaa3 | |
| parent | be1583f6ea608ed4f7b1409e7ed35237c79a14df (diff) | |
| download | passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.tar passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.tar.gz passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.tar.bz2 passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.tar.lz passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.tar.xz passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.tar.zst passt-95ab87b490c5235c9c9dde8f100a93f4b17ba4f4.zip | |
spec: use %selinux_requires_min macro, drop overlapping dependencies
Also, drop unused preun policycoreutils requires, and Recommends on
selinux-policy-%{targeted}, it has since been added to
%selinux_requires_min.
Signed-off-by: Danish Prakash <contact@danishpraka.sh>
Reviewed-by: Max Chernoff <git@maxchernoff.ca>
Tested-by: Max Chernoff <git@maxchernoff.ca>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
| -rw-r--r-- | contrib/fedora/passt.spec | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec index d1bcf4a..bcbe1f7 100644 --- a/contrib/fedora/passt.spec +++ b/contrib/fedora/passt.spec @@ -34,19 +34,21 @@ for network namespaces: traffic is forwarded using a tap interface inside the namespace, without the need to create further interfaces on the host, hence not requiring any capabilities or privileges. -%package selinux -BuildArch: noarch -Summary: SELinux support for passt and pasta -Requires: selinux-policy-%{selinuxtype} -Requires: container-selinux -Requires(post): selinux-policy-%{selinuxtype} +%package selinux +BuildArch: noarch +Summary: SELinux support for passt and pasta +%if 0%{?fedora} >= 43 +BuildRequires: selinux-policy-devel +%selinux_requires_min +%else +BuildRequires: pkgconfig(systemd) +Requires(post): libselinux-utils +Requires(post): policycoreutils +%endif +Requires: container-selinux +Requires: selinux-policy-%{selinuxtype} Requires(post): container-selinux -Requires(post): policycoreutils -Requires(post): libselinux-utils -Requires(preun): policycoreutils -BuildRequires: selinux-policy-devel -BuildRequires: pkgconfig(systemd) -Recommends: selinux-policy-%{selinuxtype} >= %{selinux_policy_version} +Requires(post): selinux-policy-%{selinuxtype} %description selinux This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1). |
