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
|
|
|
#
|
2017-02-11 01:35:29 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-12-19 10:59:54 +01:00
|
|
|
Name: libssh
|
2017-04-18 13:47:45 +02:00
|
|
|
Version: 0.7.5
|
2014-01-09 15:30:13 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: The SSH library
|
2012-02-10 17:17:24 +01:00
|
|
|
License: LGPL-2.1+
|
2016-12-11 13:24:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-19 10:59:54 +01:00
|
|
|
Url: https://www.libssh.org
|
2015-07-23 15:22:10 +02:00
|
|
|
# Dynamic number: https://red.libssh.org/projects/libssh/files
|
2017-08-02 11:30:45 +02:00
|
|
|
Source0: https://red.libssh.org/attachments/download/218/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://red.libssh.org/attachments/download/217/%{name}-%{version}.tar.asc
|
|
|
|
Source2: https://cryptomilk.org/0xCC014E3D-asn@cryptomilk.org-gpg_key.asc#/%{name}.keyring
|
2015-01-22 08:50:46 +01:00
|
|
|
Source99: baselibs.conf
|
2017-10-02 16:50:46 +02:00
|
|
|
# PATCH-FIX-UPSTREAM Upstream patches for OpenSSL 1.1 compatibility (will appear in 0.8 release)
|
|
|
|
Patch0: 0001-libcrypto-Remove-AES_ctr128_encrypt.patch
|
|
|
|
Patch1: 0001-libcrypto-Introduce-a-libcrypto-compat-file.patch
|
|
|
|
Patch2: 0001-libcrypto-Use-newer-API-for-HMAC.patch
|
|
|
|
Patch3: 0001-libcrypto-Use-a-pointer-for-EVP_MD_CTX.patch
|
|
|
|
Patch4: 0001-libcrypto-Use-a-pointer-for-EVP_CIPHER_CTX.patch
|
|
|
|
Patch5: 0001-pki_crypto-Use-getters-and-setters-for-opaque-keys-a.patch
|
|
|
|
Patch6: 0001-threads-Use-new-API-call-for-OpenSSL-CRYPTO-THREADID.patch
|
|
|
|
Patch7: 0001-cmake-Use-configure-check-for-CRYPTO_ctr128_encrypt.patch
|
|
|
|
# END of OpenSSL 1.1 support patches
|
2018-01-01 22:09:11 +01:00
|
|
|
# PATCH-FIX-UPSTREAM Fix parsing of config files (boo#1067782)
|
|
|
|
Patch10: 0001-config-Bugfix-Dont-skip-unseen-opcodes.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
|
2008-11-10 04:39:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-12-11 13:24:59 +01: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
|
|
|
|
2009-08-07 22:29:29 +02:00
|
|
|
This package provides libssh from http://www.libssh.org that should not
|
2008-11-10 04:39:06 +01:00
|
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
|
|
package)
|
|
|
|
|
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
|
2016-12-11 13:24:59 +01: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
|
|
|
|
2009-08-07 22:29:29 +02:00
|
|
|
This package provides libssh from http://www.libssh.org that should not
|
2008-11-10 04:39:06 +01:00
|
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
|
|
package)
|
|
|
|
|
|
|
|
%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
|
2015-07-23 15:22:10 +02:00
|
|
|
%setup -q
|
2017-10-02 16:50:46 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2018-01-01 22:09:11 +01:00
|
|
|
%patch10 -p1
|
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" \
|
|
|
|
-DWITH_CLIENT_TESTING="OFF" \
|
|
|
|
-DWITH_TESTING="ON" \
|
|
|
|
-DWITH_GSSAPI=ON \
|
|
|
|
-DWITH_BENCHMARKS="OFF" \
|
|
|
|
-DWITH_EXAMPLES="OFF"
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags} doc
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%install
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
# remove the static libs, we don't want them installed, needed by tests
|
|
|
|
rm -rf %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
|
|
|
make %{?_smp_mflags} test || {
|
|
|
|
cat Testing/Temporary/LastTest.log;
|
|
|
|
exit 1;
|
|
|
|
}
|
2009-05-28 04:22:38 +02:00
|
|
|
|
2012-02-10 17:17:24 +01:00
|
|
|
%post -n libssh4 -p /sbin/ldconfig
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2012-02-10 17:17:24 +01:00
|
|
|
%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
|
2008-11-10 04:39:06 +01:00
|
|
|
%defattr(-,root,root)
|
2009-05-28 04:22:38 +02:00
|
|
|
%doc AUTHORS README ChangeLog
|
2008-11-10 04:39:06 +01:00
|
|
|
%{_libdir}/libssh.so.*
|
2011-06-10 14:59:40 +02:00
|
|
|
%{_libdir}/libssh_threads.so.*
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
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}/libssh_threads.so
|
|
|
|
%{_libdir}/pkgconfig/libssh.pc
|
2011-09-06 15:35:33 +02:00
|
|
|
%{_libdir}/pkgconfig/libssh_threads.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
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
2009-05-28 04:22:38 +02:00
|
|
|
%doc build/doc/html
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%changelog
|