2008-11-10 04:39:06 +01:00
|
|
|
#
|
2011-09-06 15:35:39 +02:00
|
|
|
# spec file for package libssh
|
2008-11-10 04:39:06 +01:00
|
|
|
#
|
2019-01-15 13:15:59 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-11-10 04:39:06 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-01 09:04:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-11-10 04:39:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-01-15 13:15:59 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
2019-02-24 16:59:14 +01:00
|
|
|
%define suffix -test
|
2019-01-15 13:15:59 +01:00
|
|
|
%bcond_without test
|
|
|
|
%else
|
2019-02-24 16:59:14 +01:00
|
|
|
%define suffix %{nil}
|
2019-01-15 13:15:59 +01:00
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2019-02-24 16:59:14 +01:00
|
|
|
Name: libssh%{suffix}
|
2019-03-01 20:29:59 +01:00
|
|
|
Version: 0.8.7
|
2014-01-09 15:30:13 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: The SSH library
|
2018-10-01 09:04:20 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2016-12-11 13:24:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-01 09:04:20 +02:00
|
|
|
URL: https://www.libssh.org
|
2019-01-15 13:15:59 +01:00
|
|
|
Source0: https://www.libssh.org/files/0.8/libssh-%{version}.tar.xz
|
|
|
|
Source1: https://www.libssh.org/files/0.8/libssh-%{version}.tar.xz.asc
|
|
|
|
Source2: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/libssh.keyring
|
2015-01-22 08:50:46 +01:00
|
|
|
Source99: baselibs.conf
|
2018-10-01 09:04:20 +02:00
|
|
|
Patch0: 0001-disable-timeout-test-on-slow-buildsystems.patch
|
2019-05-25 13:34:36 +02:00
|
|
|
Patch1: 0001-libcrypto-Implement-OpenSSH-compatible-AES-GCM-ciphe.patch
|
|
|
|
Patch2: 0001-libgcrypt-Implement-OpenSSH-compatible-AES-GCM-ciphe.patch
|
|
|
|
Patch3: 0001-tests-Add-aes-gcm-ciphers-tests.patch
|
2019-03-01 20:29:59 +01:00
|
|
|
# cmake pulls curl, but libssh is a dependency of it, so avoid cycles by using curl-mini
|
|
|
|
#!BuildRequires: libcurl4-mini
|
2015-07-23 15:22:10 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2018-10-01 09:04:20 +02:00
|
|
|
BuildRequires: zlib-devel
|
2019-02-24 16:59:14 +01:00
|
|
|
# doxygen generated documentation used to be in subpkg
|
|
|
|
Obsoletes: %{name}-devel-docs
|
2019-01-15 13:15:59 +01:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
%endif
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%description
|
2018-10-01 09:04:20 +02:00
|
|
|
An SSH implementation in the form of a library. With libssh, you can remotely
|
|
|
|
execute programs, transfer files, use a secure and transparent tunnel for your
|
|
|
|
remote programs. It supports SFTP as well.
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2018-10-01 09:04:20 +02:00
|
|
|
This package provides libssh from https://www.libssh.org that should not be
|
|
|
|
confused with libssh2 available from https://www.libssh2.org (libssh2 package)
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-12-20 20:40:00 +01:00
|
|
|
%package -n libssh4
|
2008-11-10 04:39:06 +01:00
|
|
|
Summary: SSH library
|
2012-02-10 17:17:24 +01:00
|
|
|
Group: System/Libraries
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-12-20 20:40:00 +01:00
|
|
|
%description -n libssh4
|
2018-10-01 09:04:20 +02:00
|
|
|
An SSH implementation in the form of a library. With libssh, you can remotely
|
|
|
|
execute programs, transfer files, use a secure and transparent tunnel for your
|
|
|
|
remote programs. It supports SFTP as well.
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2018-10-01 09:04:20 +02:00
|
|
|
This package provides libssh from https://www.libssh.org that should not be
|
|
|
|
confused with libssh2 available from https://www.libssh2.org (libssh2 package)
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: SSH library development headers
|
2012-02-10 17:17:24 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-19 10:59:54 +01:00
|
|
|
Requires: cmake
|
2009-12-20 20:40:00 +01:00
|
|
|
Requires: libssh4 = %{version}
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development headers for the SSH library.
|
|
|
|
|
|
|
|
%package devel-doc
|
2016-12-11 13:24:59 +01:00
|
|
|
Summary: SSH library API documentation
|
|
|
|
Group: Documentation/HTML
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
Documentation for libssh development.
|
|
|
|
|
|
|
|
%prep
|
2019-03-01 20:29:59 +01:00
|
|
|
%autosetup -p1 -n libssh-%{version}
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%build
|
2018-03-13 10:22:03 +01:00
|
|
|
|
2019-01-15 13:15:59 +01:00
|
|
|
%if %{with test}
|
|
|
|
%ifarch s390 s390x ppc64le
|
|
|
|
%define slow_test_system "ON"
|
|
|
|
%else
|
|
|
|
%define slow_test_system "OFF"
|
|
|
|
%endif
|
2018-03-13 10:22:03 +01:00
|
|
|
%endif
|
|
|
|
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \
|
2019-01-15 13:15:59 +01:00
|
|
|
%if %{with test}
|
2018-10-01 09:04:20 +02:00
|
|
|
-DUNIT_TESTING="ON" \
|
2019-01-15 13:15:59 +01:00
|
|
|
-DSLOW_TEST_SYSTEM=%{slow_test_system} \
|
|
|
|
%endif
|
2015-07-23 15:22:10 +02:00
|
|
|
-DWITH_GSSAPI=ON \
|
2019-01-15 13:15:59 +01:00
|
|
|
-DWITH_EXAMPLES="OFF"
|
2015-07-23 15:22:10 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%install
|
2019-01-15 13:15:59 +01:00
|
|
|
%if !%{with test}
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake_install
|
2019-01-15 13:15:59 +01:00
|
|
|
%endif
|
2015-07-23 15:22:10 +02:00
|
|
|
|
|
|
|
%check
|
2019-01-15 13:15:59 +01:00
|
|
|
%if %{with test}
|
2019-02-24 16:59:14 +01:00
|
|
|
%ctest
|
2019-01-15 13:15:59 +01:00
|
|
|
%endif
|
2009-05-28 04:22:38 +02:00
|
|
|
|
2019-01-15 13:15:59 +01:00
|
|
|
%if !%{with test}
|
2012-02-10 17:17:24 +01:00
|
|
|
%post -n libssh4 -p /sbin/ldconfig
|
|
|
|
%postun -n libssh4 -p /sbin/ldconfig
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-12-20 20:40:00 +01:00
|
|
|
%files -n libssh4
|
2009-05-28 04:22:38 +02:00
|
|
|
%doc AUTHORS README ChangeLog
|
2008-11-10 04:39:06 +01:00
|
|
|
%{_libdir}/libssh.so.*
|
|
|
|
|
|
|
|
%files devel
|
2009-05-28 04:22:38 +02:00
|
|
|
%{_includedir}/libssh
|
2008-11-10 04:39:06 +01:00
|
|
|
%{_libdir}/libssh.so
|
2011-06-10 14:59:40 +02:00
|
|
|
%{_libdir}/pkgconfig/libssh.pc
|
2014-12-19 10:59:54 +01:00
|
|
|
%dir %{_libdir}/cmake/libssh
|
|
|
|
%{_libdir}/cmake/libssh/libssh-config.cmake
|
|
|
|
%{_libdir}/cmake/libssh/libssh-config-version.cmake
|
2019-01-15 13:15:59 +01:00
|
|
|
%endif
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%changelog
|