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 GnuTLS TLS/SSL encryption library
12 License: GPLv3+ and LGPLv2+
13 Group: Development/Libraries
14 URL: http://www.gnutls.org/
15 #Source0: ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
16 # XXX patent tainted SRP code removed.
17 Source0: gnutls-%{version}-nosrp.tar.bz2
18 Source1: libgnutls-config
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
23 Patch1: gnutls-2.6.2-nosrp.patch
25 # MinGW-specific patches.
26 Patch1000: gnutls-certtool-build.patch
28 BuildRequires: mingw32-filesystem >= 25
29 BuildRequires: mingw32-gcc
30 BuildRequires: mingw32-binutils
31 BuildRequires: mingw32-libgpg-error
32 BuildRequires: mingw32-libgcrypt >= 1.2.2
33 BuildRequires: mingw32-iconv
34 BuildRequires: mingw32-gettext
35 BuildRequires: mingw32-zlib
36 BuildRequires: autoconf automake libtool
42 MinGW Windows GnuTLS TLS/SSL encryption library.
46 %setup -q -n gnutls-%{version}
50 %patch1000 -p1 -b .mingw32
52 for i in auth_srp_rsa.c auth_srp_sb64.c auth_srp_passwd.c auth_srp.c gnutls_srp.c ext_srp.c; do
58 PATH="%{_mingw32_bindir}:$PATH" \
59 %{_mingw32_configure} \
60 --with-included-libtasn1 \
61 --disable-srp-authentication \
67 rm -rf $RPM_BUILD_ROOT
69 make DESTDIR=$RPM_BUILD_ROOT install
70 rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/info/dir
72 # Remove info and man pages which duplicate stuff in Fedora already.
73 rm -rf $RPM_BUILD_ROOT%{_mingw32_infodir}
74 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
80 rm -rf $RPM_BUILD_ROOT
85 %{_mingw32_bindir}/certtool.exe
86 %{_mingw32_bindir}/gnutls-cli-debug.exe
87 %{_mingw32_bindir}/gnutls-cli.exe
88 %{_mingw32_bindir}/gnutls-serv.exe
89 %{_mingw32_bindir}/libgnutls-26.def
90 %{_mingw32_bindir}/libgnutls-26.dll
91 %{_mingw32_bindir}/libgnutls-config
92 %{_mingw32_bindir}/libgnutls-extra-26.def
93 %{_mingw32_bindir}/libgnutls-extra-26.dll
94 %{_mingw32_bindir}/libgnutls-extra-config
95 %{_mingw32_bindir}/libgnutls-openssl-26.def
96 %{_mingw32_bindir}/libgnutls-openssl-26.dll
97 %{_mingw32_bindir}/psktool.exe
98 %{_mingw32_libdir}/libgnutls-extra.dll.a
99 %{_mingw32_libdir}/libgnutls-extra.la
100 %{_mingw32_libdir}/libgnutls-openssl.dll.a
101 %{_mingw32_libdir}/libgnutls-openssl.la
102 %{_mingw32_libdir}/libgnutls.dll.a
103 %{_mingw32_libdir}/libgnutls.la
104 %{_mingw32_libdir}/pkgconfig/gnutls-extra.pc
105 %{_mingw32_libdir}/pkgconfig/gnutls.pc
106 %{_mingw32_includedir}/gnutls/
107 %{_mingw32_datadir}/aclocal/libgnutls-extra.m4
108 %{_mingw32_datadir}/aclocal/libgnutls.m4
112 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.3-1
113 - Rebase to native Fedora version 2.6.3.
114 - Enable C++ library.
116 - Use find_lang macro.
117 - Don't build static library.
119 * Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-4
120 - Requires pkgconfig.
122 * Thu Nov 13 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-3
123 - fix chain verification issue CVE-2008-4989 (#470079)
124 - separate out the MinGW-specific patch from the others
126 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-2
127 - Rename mingw -> mingw32.
129 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-1
130 - New native version.
132 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-9
133 - Switch to source tar.bz2 with SRP stuff removed
135 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-8
136 - Remove duplicate manpages and info files.
138 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-7
139 - Add BR on autoconf, automake and libtool
141 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-6
142 - Need to run autoreconf after patching src/Makefile.am.
143 - Remove static libs.
145 * Fri Sep 5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-5
146 - Add patch to build certtool.exe because of missing dep of gnulib on intl.
147 - BuildArch is noarch.
149 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-3
150 - Use mingw-filesystem RPM macros.
151 - Depends on mingw-iconv, mingw-gettext.
153 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-2
154 - List files explicitly and use custom CFLAGS
156 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-1
157 - Initial RPM release, largely based on earlier work from several sources.