--- /dev/null
+--- gnutls-2.4.1.orig/src/Makefile.am 2008-06-19 11:00:10.000000000 +0100
++++ gnutls-2.4.1/src/Makefile.am 2008-09-05 09:11:59.000000000 +0100
+@@ -65,7 +65,7 @@
+ certtool_SOURCES = certtool.gaa certtool-gaa.h certtool-cfg.h \
+ certtool-gaa.c certtool.c prime.c certtool-cfg.c
+ certtool_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) \
+- $(LIBTASN1_LIBS) ../gl/libgnu.la @LTLIBREADLINE@
++ $(LIBTASN1_LIBS) ../gl/libgnu.la @LTLIBREADLINE@ -lintl
+ if HAVE_LIBCFG
+ certtool_LDADD += -lcfg+
+ else
Source0: ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: gnutls-certtool-build.patch
+
BuildRequires: mingw-filesystem >= 19
BuildRequires: mingw-gcc
BuildRequires: mingw-binutils
BuildRequires: mingw-iconv
BuildRequires: mingw-gettext
+BuildConflicts: mingw-zlib
+
%description
MinGW Windows GnuTLS TLS/SSL encryption library.
%prep
%setup -q -n gnutls-%{version}
+%patch0 -p1
%build
%{_mingw_mandir}/man1/psktool.1*
%{_mingw_mandir}/man1/srptool.1*
%{_mingw_mandir}/man3/gnutls_*.3*
+%{_mingw_datadir}/locale/*/LC_MESSAGES/gnutls.mo
%changelog
+* Fri Sep 5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-4
+- Build conflicts with mingw-zlib.
+- Add patch to build certtool.exe because of missing dep of gnulib on intl.
+
* Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-3
- Use mingw-filesystem RPM macros.
- Depends on mingw-iconv, mingw-gettext.