]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Use consistent versioning for Obsoletes
authorJiri Denemark <jdenemar@redhat.com>
Tue, 27 Sep 2022 09:11:24 +0000 (11:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 27 Sep 2022 09:27:06 +0000 (11:27 +0200)
rpmbuild is complaining it's not recommended to have unversioned
Obsoletes. On the other hand using dynamic version/release is a bit too
much as we know in which release a particular subpackage was removed.
Let's just use the corresponding version in both cases to be consistent
with all other Obsoletes in our spec file.

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

index 654057bf57bf652cf7f42b7e2da588066a1f31ba..f7d3931b6ef6916de8aa00cfa4e4badb277bf8ec 100644 (file)
@@ -574,9 +574,9 @@ Requires: util-linux
 Requires: /usr/bin/qemu-img
 %endif
 %if !%{with_storage_rbd}
-Obsoletes: libvirt-daemon-driver-storage-rbd < %{version}-%{release}
+Obsoletes: libvirt-daemon-driver-storage-rbd < 5.2.0
 %endif
-Obsoletes: libvirt-daemon-driver-storage-sheepdog
+Obsoletes: libvirt-daemon-driver-storage-sheepdog < 8.8.0
 
 %description daemon-driver-storage-core
 The storage driver plugin for the libvirtd daemon, providing