File mingw64-libssh.spec of Package mingw64-libssh
#
# spec file for package mingw64-libssh
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: mingw64-libssh
Version: 0.11.1
Release: 0
Summary: The SSH library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://www.libssh.org
Source0: https://www.libssh.org/files/0.11/libssh-%{version}.tar.xz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cmocka-devel
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libopenssl-1_1-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: pkg-config
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
%description
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.
This package provides libssh from http://www.libssh.org that should not
be confused with libssh2 available from http://www.libssh2.org (libssh2
package)
%package -n mingw64-libssh4
Summary: SSH library
Group: System/Libraries
%description -n mingw64-libssh4
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.
This package provides libssh from http://www.libssh.org that should not
be confused with libssh2 available from http://www.libssh2.org (libssh2
package)
%package devel
Summary: SSH library development headers
Group: Development/Libraries/C and C++
%description devel
Development headers for the SSH library.
%_mingw64_debug_package
%prep
%autosetup -p1 -n libssh-%version
%build
MINGW64_CFLAGS="%{_mingw64_cflags} -DOPENSSL_LOAD_CONF -fcommon"
%_mingw64_cmake \
-DWITH_CLIENT_TESTING="OFF" \
-DWITH_TESTING="OFF" \
-DWITH_GSSAPI=OFF \
-DWITH_BENCHMARKS="OFF" \
-DWITH_EXAMPLES="OFF"
%_mingw64_cmake_build
%install
%_mingw64_cmake_install
rm -Rf "%buildroot/%_mingw64_libdir/../CMake"
%files -n mingw64-libssh4
%doc AUTHORS README
%_mingw64_bindir/libssh*.dll
%files devel
%_mingw64_includedir/libssh/
%_mingw64_libdir/libssh*.dll.a
%_mingw64_libdir/cmake
%_mingw64_libdir/pkgconfig
%changelog