- update to 1.5.0 * fixes CVE-2015-1782 (bnc#921070) - tarball verification * added libssh2_org.keyring * added libssh2-1.5.0.tar.gz.asc Changes in 1.5.0: Added Windows Cryptography API: Next Generation based backend Bug fixes: Security Advisory: Using `SSH_MSG_KEXINIT` data unbounded, CVE-2015-1782 missing _libssh2_error in _libssh2_channel_write knownhost: Fix DSS keys being detected as unknown. knownhost: Restore behaviour of `libssh2_knownhost_writeline` with short buffer. libssh2.h: on Windows, a socket is of type SOCKET, not int libssh2_priv.h: a 1 bit bit-field should be unsigned windows build: do not export externals from static library Fixed two potential use-after-frees of the payload buffer Fixed a few memory leaks in error paths userauth: Fixed an attempt to free from stack on error agent_list_identities: Fixed memory leak on OOM knownhosts: Abort if the hosts buffer is too small sftp_close_handle: ensure the handle is always closed channel_close: Close the channel even in the case of errors docs: added missing libssh2_session_handshake.3 file docs: fixed a bunch of typos userauth_password: pass on the underlying error code _libssh2_channel_forward_cancel: accessed struct after free _libssh2_packet_add: avoid using uninitialized memory _libssh2_channel_forward_cancel: avoid memory leaks on error _libssh2_channel_write: client spins on write when window full windows build: fix build errors OBS-URL: https://build.opensuse.org/request/show/290303 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libssh2_org?expand=0&rev=49
124 lines
3.6 KiB
RPMSpec
124 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package libssh2_org
|
|
#
|
|
# Copyright (c) 2015 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Name: libssh2_org
|
|
Version: 1.5.0
|
|
Release: 0
|
|
Url: http://www.libssh2.org/
|
|
%define pkg_name libssh2
|
|
Source0: http://www.libssh2.org/download/%{pkg_name}-%{version}.tar.gz
|
|
Source1: http://www.libssh2.org/download/%{pkg_name}-%{version}.tar.gz.asc
|
|
Source2: baselibs.conf
|
|
Source3: libssh2_org.keyring
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: zlib-devel
|
|
#for the test suite
|
|
BuildRequires: groff
|
|
BuildRequires: libtool
|
|
BuildRequires: man
|
|
BuildRequires: openssh
|
|
# drops build cycle in Factory
|
|
#!BuildIgnore: groff-full
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch0: libssh2-ocloexec.patch
|
|
|
|
%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}
|
|
# problem with sle 11 sp1 target as it has older kernel and as such fail this
|
|
%if 0%{?suse_version} > 1110
|
|
%patch0 -p1
|
|
%endif
|
|
|
|
%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
|
|
# autoreconf
|
|
rm -v m4/libtool.m4 m4/lt*
|
|
autoreconf -fiv
|
|
export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
|
%configure \
|
|
--disable-static --with-pic \
|
|
--disable-rpath --with-libz=%{_prefix} \
|
|
--with-openssl=%{_prefix}
|
|
make %{?_smp_mflags}
|
|
|
|
%if !0%{?sles_version}
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
%check
|
|
make check
|
|
|
|
%endif
|
|
%endif
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
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
|