]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Fix python3-libvirt requirement in client-qemu package
authorJiri Denemark <jdenemar@redhat.com>
Wed, 2 Nov 2022 11:42:26 +0000 (12:42 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 2 Nov 2022 12:47:15 +0000 (13:47 +0100)
The %{release} part of the requirement is just wrong as python bindings
are not rebuilt anytime libvirt release is increased, which means the
client-qemu package may require nonexistent release of python bindings.

The %{version} part is not wrong, but it's too strict for no reason as
the virt-qemu-qmp-proxy script will work happily even with ancient
python bindings. And since all distros supported by libvirt.spec already
contain python3-libvirt, we can depend on the first package called this
way.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index d946a8da48aa7da95741ba04e16c02ca4cf54ff2..0bbcdb8956714fed6b8465a4f5282d48e9ac47f7 100644 (file)
@@ -906,7 +906,7 @@ capabilities of recent versions of Linux (and other OSes).
 %package client-qemu
 Summary: Additional client side utilities for QEMU
 Requires: %{name}-libs = %{version}-%{release}
-Requires: python3-libvirt >= %{version}-%{release}
+Requires: python3-libvirt >= 3.7.0
 
 %description client-qemu
 The additional client binaries are used to interact