From e2e9d8fccc1dbba0e529087c99096be5855cae1e0a75f714c7bb0de1d5ccd44e Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Tue, 8 May 2018 05:01:36 +0000 Subject: [PATCH] Accepting request 605205 from home:jfehlig:branches:Virtualization - spec: enable libssh support for suse_version >= 1500 OBS-URL: https://build.opensuse.org/request/show/605205 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=687 --- libvirt.changes | 5 +++++ libvirt.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/libvirt.changes b/libvirt.changes index 7004a1b..701d060 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 7 17:06:10 UTC 2018 - jfehlig@suse.com + +- spec: enable libssh support for suse_version >= 1500 + ------------------------------------------------------------------- Wed May 2 21:42:09 UTC 2018 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index 18bd157..cd135d9 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -45,6 +45,7 @@ %define with_sanlock 0%{!?_without_sanlock:1} %define with_polkit_rules 1 %define with_wireshark 0%{!?_without_wireshark:1} +%define with_libssh2 0%{!?_without_libssh2:1} # A few optional bits off by default, we enable later %define with_cgconfig 0%{!?_without_cgconfig:0} @@ -105,6 +106,11 @@ %define with_firewalld 1 %endif +# Enable libssh support in newer code bases +%if 0%{?suse_version} >= 1500 + %define with_libssh 1 +%endif + # TODO: On what distros can we support bash-completion? # SLE12 builds seem fine, but configure fails to detect # completion support on openSUSE distros. @@ -282,7 +288,9 @@ BuildRequires: libnuma-devel BuildRequires: fuse-devel >= 2.8.6 BuildRequires: libcap-ng-devel >= 0.5.0 BuildRequires: libnetcontrol-devel >= 0.2.0 +%if %{with_libssh2} BuildRequires: libssh2-devel +%endif %if %{with_esx} BuildRequires: libcurl-devel %endif