1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
10 Summary: MinGW Windows GnuTLS TLS/SSL encryption library
13 Group: Development/Libraries
14 URL: http://www.gnu.org/software/gnutls/
15 Source0: ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 Patch0: gnutls-certtool-build.patch
22 BuildRequires: mingw-filesystem >= 25
23 BuildRequires: mingw-gcc
24 BuildRequires: mingw-binutils
25 BuildRequires: mingw-libgpg-error
26 BuildRequires: mingw-libgcrypt
27 BuildRequires: mingw-iconv
28 BuildRequires: mingw-gettext
29 BuildRequires: mingw-zlib
30 BuildRequires: autoconf automake libtool
33 MinGW Windows GnuTLS TLS/SSL encryption library.
37 %setup -q -n gnutls-%{version}
43 PATH="%{_mingw_bindir}:$PATH" \
44 %{_mingw_configure} --with-included-libtasn1 --disable-cxx
49 rm -rf $RPM_BUILD_ROOT
51 make DESTDIR=$RPM_BUILD_ROOT install
52 rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/info/dir
54 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgnutls-extra.a
55 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgnutls-openssl.a
56 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgnutls.a
58 # Remove info and man pages which duplicate stuff in Fedora already.
59 rm -rf $RPM_BUILD_ROOT%{_mingw_infodir}
60 rm -rf $RPM_BUILD_ROOT%{_mingw_mandir}
64 rm -rf $RPM_BUILD_ROOT
69 %{_mingw_bindir}/certtool.exe
70 %{_mingw_bindir}/gnutls-cli-debug.exe
71 %{_mingw_bindir}/gnutls-cli.exe
72 %{_mingw_bindir}/gnutls-serv.exe
73 %{_mingw_bindir}/libgnutls-26.def
74 %{_mingw_bindir}/libgnutls-26.dll
75 %{_mingw_bindir}/libgnutls-config
76 %{_mingw_bindir}/libgnutls-extra-26.def
77 %{_mingw_bindir}/libgnutls-extra-26.dll
78 %{_mingw_bindir}/libgnutls-extra-config
79 %{_mingw_bindir}/libgnutls-openssl-26.def
80 %{_mingw_bindir}/libgnutls-openssl-26.dll
81 %{_mingw_bindir}/psktool.exe
82 %{_mingw_bindir}/srptool.exe
83 %{_mingw_libdir}/libgnutls-extra.dll.a
84 %{_mingw_libdir}/libgnutls-extra.la
85 %{_mingw_libdir}/libgnutls-openssl.dll.a
86 %{_mingw_libdir}/libgnutls-openssl.la
87 %{_mingw_libdir}/libgnutls.dll.a
88 %{_mingw_libdir}/libgnutls.la
89 %{_mingw_libdir}/pkgconfig/gnutls-extra.pc
90 %{_mingw_libdir}/pkgconfig/gnutls.pc
91 %{_mingw_includedir}/gnutls/
92 %{_mingw_datadir}/aclocal/libgnutls-extra.m4
93 %{_mingw_datadir}/aclocal/libgnutls.m4
94 %{_mingw_datadir}/locale/*/LC_MESSAGES/gnutls.mo
98 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-8
99 - Remove duplicate manpages and info files.
101 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-7
102 - Add BR on autoconf, automake and libtool
104 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-6
105 - Need to run autoreconf after patching src/Makefile.am.
106 - Remove static libs.
108 * Fri Sep 5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-5
109 - Add patch to build certtool.exe because of missing dep of gnulib on intl.
110 - BuildArch is noarch.
112 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-3
113 - Use mingw-filesystem RPM macros.
114 - Depends on mingw-iconv, mingw-gettext.
116 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-2
117 - List files explicitly and use custom CFLAGS
119 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-1
120 - Initial RPM release, largely based on earlier work from several sources.