Don't pull in selinux-policy as a requires

Building Fedora images without the selinux policy should be
possible. Currently, out of the 500 packages or so installed in
the mkosi-kernel fedora image (https://github.com/DaanDeMeyer/mkosi-kernel),
libguestfs is the only one that has a requires on selinux-policy.
Let's make sure we don't pull in selinux-policy but do keep the version
requirement intact if it is already installed.
This commit is contained in:
Daan De Meyer 2023-10-28 11:00:19 +02:00
parent 007cc47bef
commit ef0dbaea60

View File

@ -335,7 +335,7 @@ Requires: libvirt-daemon-driver-qemu >= 7.1.0
Requires: libvirt-daemon-driver-secret Requires: libvirt-daemon-driver-secret
Requires: libvirt-daemon-driver-storage-core Requires: libvirt-daemon-driver-storage-core
Recommends: passt Recommends: passt
Requires: selinux-policy >= 3.11.1-63 Requires: (selinux-policy >= 3.11.1-63 if selinux-policy)
%ifarch aarch64 %ifarch aarch64
Requires: edk2-aarch64 Requires: edk2-aarch64