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
|
|
|
#
|
2018-03-13 10:22:03 +01:00
|
|
|
# Copyright (c) 2018 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-10-01 09:04:20 +02:00
|
|
|
%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 150000
|
|
|
|
%bcond_without docs
|
|
|
|
%else
|
|
|
|
# We need cmake >= 3.9 to build docs
|
|
|
|
%bcond_with docs
|
|
|
|
%endif
|
|
|
|
|
2014-12-19 10:59:54 +01:00
|
|
|
Name: libssh
|
2018-11-08 09:41:36 +01:00
|
|
|
Version: 0.8.5
|
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
|
|
|
|
Source0: https://www.libssh.org/files/0.8/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://www.libssh.org/files/0.8/%{name}-%{version}.tar.xz.asc
|
|
|
|
Source2: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/%{name}.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
|
2015-07-23 15:22:10 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2018-10-01 09:04:20 +02:00
|
|
|
BuildRequires: zlib-devel
|
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.
|
|
|
|
|
2018-10-01 09:04:20 +02:00
|
|
|
%if %{with docs}
|
2008-11-10 04:39:06 +01:00
|
|
|
%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.
|
2018-10-01 09:04:20 +02:00
|
|
|
%endif # with docs
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%prep
|
2018-10-01 09:04:20 +02:00
|
|
|
%autosetup -p1
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%build
|
2018-03-13 10:22:03 +01:00
|
|
|
|
|
|
|
%ifarch s390 s390x ppc64le
|
|
|
|
%define slow_test_system "ON"
|
|
|
|
%else
|
|
|
|
%define slow_test_system "OFF"
|
|
|
|
%endif
|
|
|
|
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \
|
2018-10-01 09:04:20 +02:00
|
|
|
-DUNIT_TESTING="ON" \
|
2015-07-23 15:22:10 +02:00
|
|
|
-DWITH_GSSAPI=ON \
|
2018-03-13 10:22:03 +01:00
|
|
|
-DWITH_EXAMPLES="OFF" \
|
|
|
|
-DSLOW_TEST_SYSTEM=%{slow_test_system}
|
2015-07-23 15:22:10 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2018-10-01 09:04:20 +02:00
|
|
|
%if %{with docs}
|
|
|
|
make %{?_smp_mflags} docs
|
|
|
|
%endif # with docs
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%install
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
2018-10-01 09:04:20 +02:00
|
|
|
ctest --output-on-failure
|
2009-05-28 04:22:38 +02:00
|
|
|
|
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
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2018-10-01 09:04:20 +02:00
|
|
|
%if %{with docs}
|
2008-11-10 04:39:06 +01:00
|
|
|
%files devel-doc
|
2009-05-28 04:22:38 +02:00
|
|
|
%doc build/doc/html
|
2018-10-01 09:04:20 +02:00
|
|
|
%endif # with docs
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%changelog
|