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
|
|
|
#
|
2020-02-22 19:05:15 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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-12-23 22:35:26 +01:00
|
|
|
%define pkg_suffix -test
|
2019-07-13 13:35:52 +02:00
|
|
|
%ifarch s390 s390x ppc64le
|
|
|
|
%define slow_test_system "ON"
|
|
|
|
%else
|
|
|
|
%define slow_test_system "OFF"
|
|
|
|
%endif
|
2019-01-15 13:15:59 +01:00
|
|
|
%bcond_without test
|
|
|
|
%else
|
2019-12-23 22:35:26 +01:00
|
|
|
%define pkg_suffix %{nil}
|
2019-01-15 13:15:59 +01:00
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2019-12-23 22:35:26 +01:00
|
|
|
Name: libssh%{pkg_suffix}
|
|
|
|
Version: 0.9.3
|
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-07-13 13:35:52 +02:00
|
|
|
Source0: https://www.libssh.org/files/0.9/libssh-%{version}.tar.xz
|
|
|
|
Source1: https://www.libssh.org/files/0.9/libssh-%{version}.tar.xz.asc
|
2019-01-15 13:15:59 +01:00
|
|
|
Source2: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/libssh.keyring
|
2019-07-13 13:35:52 +02:00
|
|
|
Source3: libssh_client.config
|
|
|
|
Source4: libssh_server.config
|
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: 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
|
2019-06-12 13:04:50 +02:00
|
|
|
Obsoletes: %{name}-devel-doc <= 0.8.6
|
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
|
2019-07-13 13:35:52 +02:00
|
|
|
Requires: %{name}-config >= %{version}
|
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
|
|
|
|
2019-07-13 13:35:52 +02:00
|
|
|
%package config
|
|
|
|
Summary: SSH library configuration files
|
|
|
|
Group: Productivity/Networking/SSH
|
|
|
|
|
|
|
|
%description config
|
|
|
|
Configuration files for the SSH library.
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2019-03-01 20:29:59 +01:00
|
|
|
%autosetup -p1 -n libssh-%{version}
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%build
|
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-07-13 13:35:52 +02:00
|
|
|
-DWITH_EXAMPLES="OFF" \
|
|
|
|
-DGLOBAL_CLIENT_CONFIG="%{_sysconfdir}/libssh/libssh_client.config" \
|
|
|
|
-DGLOBAL_BIND_CONFIG="%{_sysconfdir}/libssh/libssh_server.config"
|
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-07-13 13:35:52 +02:00
|
|
|
|
|
|
|
install -d -m755 %{buildroot}%{_sysconfdir}/libssh
|
|
|
|
install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/libssh/libssh_client.config
|
|
|
|
install -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/libssh/libssh_server.config
|
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.*
|
|
|
|
|
2019-07-13 13:35:52 +02:00
|
|
|
%files config
|
|
|
|
%dir %{_sysconfdir}/libssh
|
|
|
|
%config(noreplace) %{_sysconfdir}/libssh/libssh_client.config
|
|
|
|
%config(noreplace) %{_sysconfdir}/libssh/libssh_server.config
|
|
|
|
|
2008-11-10 04:39:06 +01:00
|
|
|
%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
|
2019-11-18 20:03:14 +01:00
|
|
|
%{_libdir}/cmake/libssh/libssh-config-relwithdebinfo.cmake
|
2014-12-19 10:59:54 +01:00
|
|
|
%{_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
|