From 9642d1a969e614f89de4a897d2b554b0ed055098 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 19 Jan 2021 08:09:52 +0100 Subject: [PATCH] make the run-time dependency on libssh2 optional --- libgit2.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/libgit2.spec b/libgit2.spec index c588570..b216af8 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -1,6 +1,13 @@ +# libssh2 is not available on RHEL +%if 0%{?rhel} +%bcond_with libssh2 +%else +%bcond_without libssh2 +%endif + Name: libgit2 Version: 1.1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C implementation of the Git core methods as a library with a solid API License: GPLv2 with exceptions URL: https://libgit2.org/ @@ -11,7 +18,9 @@ BuildRequires: cmake >= 3.5.1 BuildRequires: ninja-build BuildRequires: http-parser-devel BuildRequires: libcurl-devel +%if %{with libssh2} BuildRequires: libssh2-devel +%endif BuildRequires: openssl-devel BuildRequires: pcre2-devel BuildRequires: python3 @@ -53,6 +62,9 @@ rm -vr deps -DUSE_SHA1=HTTPS \ -DUSE_HTTPS=OpenSSL \ -DUSE_NTLMCLIENT=OFF \ +%if %{without libssh2} + -DUSE_SSH=OFF \ +%endif %{nil} %ninja_build -C %{_target_platform} @@ -74,6 +86,9 @@ rm -vr deps %{_includedir}/git2/ %changelog +* Thu Mar 18 2021 Kamil Dudka - 1.1.0-4 +- make the run-time dependency on libssh2 optional + * Tue Jan 26 2021 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild