forked from pool/libssh2_org
- Version update to 1.9.0: Enhancements and bugfixes: * adds ECDSA keys and host key support when using OpenSSL * adds ED25519 key and host key support when using OpenSSL 1.1.1 * adds OpenSSH style key file reading * adds AES CTR mode support when using WinCNG * adds PEM passphrase protected file support for Libgcrypt and WinCNG * adds SHA256 hostkey fingerprint * adds libssh2_agent_get_identity_path() and libssh2_agent_set_identity_path() * adds explicit zeroing of sensitive data in memory * adds additional bounds checks to network buffer reads * adds the ability to use the server default permissions when creating sftp directories * adds support for building with OpenSSL no engine flag * adds support for building with LibreSSL * increased sftp packet size to 256k * fixed oversized packet handling in sftp * fixed building with OpenSSL 1.1 * fixed a possible crash if sftp stat gets an unexpected response * fixed incorrect parsing of the KEX preference string value * fixed conditional RSA and AES-CTR support * fixed a small memory leak during the key exchange process * fixed a possible memory leak of the ssh banner string * fixed various small memory leaks in the backends * fixed possible out of bounds read when parsing public keys from the server * fixed possible out of bounds read when parsing invalid PEM files * no longer null terminates the scp remote exec command * now handle errors when diffie hellman key pair generation fails * improved building instructions * improved unit tests - Rebased patch libssh2-ocloexec.patch OBS-URL: https://build.opensuse.org/request/show/711121 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libssh2_org?expand=0&rev=65
111 lines
3.3 KiB
RPMSpec
111 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package libssh2_org
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define pkg_name libssh2
|
|
Name: libssh2_org
|
|
Version: 1.9.0
|
|
Release: 0
|
|
Summary: A library implementing the SSH2 protocol
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://www.libssh2.org/
|
|
Source0: https://www.libssh2.org/download/%{pkg_name}-%{version}.tar.gz
|
|
Source1: https://www.libssh2.org/download/%{pkg_name}-%{version}.tar.gz.asc
|
|
Source2: baselibs.conf
|
|
Source3: libssh2_org.keyring
|
|
Patch0: libssh2-ocloexec.patch
|
|
BuildRequires: groff
|
|
BuildRequires: libtool
|
|
BuildRequires: man
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(zlib)
|
|
# drops build cycle in Factory
|
|
#!BuildIgnore: groff-full
|
|
|
|
%description
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
|
|
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
|
|
SECSH-PUBLICKEY.
|
|
|
|
%package -n libssh2-1
|
|
Summary: A library implementing the SSH2 protocol
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libssh2-1
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
|
|
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
|
|
SECSH-PUBLICKEY.
|
|
|
|
%package -n libssh2-devel
|
|
Summary: A library implementing the SSH2 protocol
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libssh2-1 = %{version}
|
|
|
|
%description -n libssh2-devel
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
|
|
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
|
|
SECSH-PUBLICKEY.
|
|
|
|
%prep
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
sed -i -e 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g' configure.ac
|
|
cp src/libssh2_config.h.in example/libssh2_config.h
|
|
# remove m4 macro files for libtool as they should be picked up by
|
|
rm -v m4/libtool.m4 m4/lt*
|
|
autoreconf -fiv
|
|
export CFLAGS="%{optflags} -DOPENSSL_LOAD_CONF"
|
|
%configure \
|
|
--disable-silent_rules \
|
|
--disable-static \
|
|
--disable-rpath \
|
|
--with-libz=%{_prefix} \
|
|
--with-openssl=%{_prefix}
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make %{?_smp_mflags} check
|
|
|
|
%install
|
|
%make_install
|
|
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a
|
|
|
|
%post -n libssh2-1 -p /sbin/ldconfig
|
|
%postun -n libssh2-1 -p /sbin/ldconfig
|
|
|
|
%files -n libssh2-1
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libssh2.so.1*
|
|
|
|
%files -n libssh2-devel
|
|
%defattr(-,root,root)
|
|
%doc NEWS
|
|
%{_libdir}/libssh2.so
|
|
%{_includedir}/*.h
|
|
%{_mandir}/man3/*
|
|
%{_libdir}/pkgconfig/libssh2.pc
|
|
|
|
%changelog
|