[libvirt] [PATCHv2] spec: Add runtime requirement for libssh2

Peter Krempa pkrempa at redhat.com
Tue Oct 16 12:37:14 UTC 2012


libssh2 unfortunately doesn't support symbol versioning so RPM can't
figure out what version is needed for the currently installed libvirt
package. This patch adds a runtime requirement, so that the correct
version of libssh2 can be installed along with libvirt.
---
Diff to v1:
- be more specific with the requirement

 libvirt.spec.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 75623eb..a651394 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -1002,6 +1002,9 @@ Requires: cyrus-sasl
 # work correctly & doesn't have onerous dependencies
 Requires: cyrus-sasl-md5
 %endif
+%if %{with_libssh2_transport}
+Requires: libssh2 >= 1.3.0
+%endif

 %description client
 Shared libraries and client binaries needed to access to the
-- 
1.7.12.3




More information about the libvir-list mailing list