File mingw32-libssh2.spec of Package mingw32-libssh2
#
# spec file for package mingw32-libssh2
#
# Copyright (c) 2014 SUSE LINUX Products 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: mingw32-libssh2
Version: 1.8.0
Release: 0
Summary: MinGW Windows library implementing the SSH2 protocol
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://www.libssh2.org/
Source0: http://downloads.sourceforge.net/libssh2/libssh2-%{version}.tar.gz
Patch0: libssh2-1.8.0-windows.patch
BuildRequires: -rpmlint-Factory
BuildRequires: -rpmlint-mini
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-libgcrypt-devel
BuildRequires: mingw32-zlib-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
libssh2 is a library implementing the SSH2 protocol as defined by
Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
SECSH-DHGEX(04), and SECSH-NUMBERS(10).
%package -n mingw32-libssh2-1
Summary: MinGW Windows library implementing the SSH2 protocol
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-libssh2-1
libssh2 is a library implementing the SSH2 protocol as defined by
Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
SECSH-DHGEX(04), and SECSH-NUMBERS(10).
%package devel
Summary: MinGW Windows library implementing the SSH2 protocol (devel)
Group: Development/Libraries/C and C++
%description devel
libssh2 is a library implementing the SSH2 protocol as defined by
Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
SECSH-DHGEX(04), and SECSH-NUMBERS(10).
%_mingw32_debug_package
%prep
%setup -q -n libssh2-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
--disable-static --enable-shared \
--with-libgcrypt=%{_mingw32_includedir} --with-libz
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-libssh2-1
%defattr(-,root,root)
%{_mingw32_bindir}/libssh2-1.dll
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libssh2.dll.a
%{_mingw32_libdir}/pkgconfig/libssh2.pc
%{_mingw32_includedir}/libssh2.h
%{_mingw32_includedir}/libssh2_publickey.h
%{_mingw32_includedir}/libssh2_sftp.h
%{_mingw32_mandir}/man3
%changelog