1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
10 Summary: MinGW Windows library implementing the SSH2 protocol
13 Group: Development/Libraries
14 URL: http://www.libssh2.org/
15 Source0: http://downloads.sourceforge.net/libssh2/libssh2-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 BuildRequires: mingw32-filesystem >= 33
21 BuildRequires: mingw32-gcc
22 BuildRequires: mingw32-binutils
23 BuildRequires: mingw32-openssl
24 BuildRequires: mingw32-zlib
25 BuildRequires: autoconf, automake, libtool
26 BuildRequires: pkgconfig
28 # MinGW-specific patches.
29 # Sent upstream 2008-11-10.
30 Patch1001: libssh2-01-build-win-library.patch
31 Patch1002: libssh2-02-libssh_priv-headers.patch
32 Patch1003: libssh2-03-remove-extra-config.patch
33 Patch1004: libssh2-04-non-blocking-examples.patch
34 Patch1005: libssh2-05-remove-WINSOCK-VERSION.patch
38 libssh2 is a library implementing the SSH2 protocol as defined by
39 Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
40 SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
41 SECSH-DHGEX(04), and SECSH-NUMBERS(10).
45 %setup -q -n libssh2-%{version}
53 libtoolize --force --copy
58 %{_mingw32_configure} --disable-static --enable-shared
63 rm -rf $RPM_BUILD_ROOT
64 make DESTDIR=$RPM_BUILD_ROOT install
66 # Remove man pages which duplicate native Fedora.
67 rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}/man3
71 rm -rf $RPM_BUILD_ROOT
76 %{_mingw32_bindir}/libssh2-1.dll
77 %{_mingw32_libdir}/libssh2.dll.a
78 %{_mingw32_libdir}/libssh2.la
79 %{_mingw32_includedir}/libssh2.h
80 %{_mingw32_includedir}/libssh2_publickey.h
81 %{_mingw32_includedir}/libssh2_sftp.h
85 * Sat Jan 24 2009 Richard W.M. Jones <rjones@redhat.com> - 0.18-2
86 - Update libtool installation.
88 * Mon Nov 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.18-1
89 - Initial RPM release.