forked from pool/libssh2_org
* build: enable '-pedantic-errors' * build: add 'LIBSSH2_NO_DEPRECATED' option * build: stop requiring libssl from openssl * disable DSA by default * hostkey: do not advertise ssh-rsa when SHA1 is disabled * kex: prevent possible double free of hostkey * kex: always check for null pointers before calling _libssh2_bn_set_word * kex: fix a memory leak in key exchange * kex: always add extension indicators to kex_algorithms * md5: allow disabling old-style encrypted private keys at build-time * openssl: free allocated resources when using openssl3 * openssl: fix memory leaks in '_libssh2_ecdsa_curve_name_with_octal_new' and '_libssh2_ecdsa_verify' * openssl: fix calculating DSA public key with OpenSSL 3 * openssl: initialize BIGNUMs to NULL in 'gen_publickey_from_dsa' for OpenSSL 3 * openssl: fix cppcheck found NULL dereferences * openssl: delete internal 'read_openssh_private_key_from_memory()' * openssl: use OpenSSL 3 HMAC API, add 'no-deprecated' CI job * openssl: make a function static, add '#ifdef' comments * openssl: fix DSA code to use OpenSSL 3 API * openssl: fix 'EC_KEY' reference with OpenSSL 3 'no-deprecated' build * openssl: use non-deprecated APIs with OpenSSL 3.x * openssl: silence '-Wunused-value' warnings * openssl: add missing check for 'LIBRESSL_VERSION_NUMBER' before use * packet: properly bounds check packet_authagent_open() * pem: fix private keys encrypted with AES-GCM methods * reuse: provide SPDX identifiers * scp: fix missing cast for targets without large file support * session: support server banners up to 8192 bytes OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libssh2_org?expand=0&rev=79
107 lines
3.2 KiB
RPMSpec
107 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package libssh2_org
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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.11.1
|
|
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.xz
|
|
Source1: https://www.libssh2.org/download/%{pkg_name}-%{version}.tar.xz.asc
|
|
Source2: baselibs.conf
|
|
Source3: libssh2_org.keyring
|
|
Patch0: libssh2-ocloexec.patch
|
|
BuildRequires: libtool
|
|
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
|
|
%autosetup -p1 -n %{pkg_name}-%{version}
|
|
|
|
%build
|
|
sed -i -e 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g' configure.ac
|
|
# 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 \
|
|
--enable-shared \
|
|
--disable-rpath \
|
|
--disable-docker-tests \
|
|
--with-libssl-prefix=%{_prefix} \
|
|
--with-libz=%{_prefix}
|
|
|
|
%make_build
|
|
|
|
%check
|
|
%make_build 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
|
|
%{_libdir}/libssh2.so.1*
|
|
|
|
%files -n libssh2-devel
|
|
%doc NEWS docs/BINDINGS.md docs/HACKING.md docs/TODO
|
|
%{_libdir}/libssh2.so
|
|
%{_includedir}/*.h
|
|
%{_mandir}/man3/*
|
|
%{_libdir}/pkgconfig/libssh2.pc
|
|
|
|
%changelog
|