- Enable C++ library.
- Use _smp_mflags.
- Use find_lang macro.
- Don't build static library.
glibmm24/glibmm-2.18.1.tar.bz2
gnutls/gnutls-2.4.1.tar.bz2
gnutls/gnutls-2.4.2-nosrp.tar.bz2
+gnutls/gnutls-2.6.3-nosrp.tar.bz2
gsl/gsl-1.11.tar.gz
gtk2/gtk+-2.14.0.tar.bz2
gtk2/gtk+-2.14.2.tar.bz2
+++ /dev/null
-diff -up gnutls-1.4.1/lib/x509/verify.c.chain-verify gnutls-1.4.1/lib/x509/verify.c
---- gnutls-1.4.1/lib/x509/verify.c.chain-verify 2008-11-11 10:55:19.000000000 +0100
-+++ gnutls-1.4.1/lib/x509/verify.c 2008-11-11 10:58:54.000000000 +0100
-@@ -379,6 +379,17 @@ _gnutls_x509_verify_certificate (const g
- int i = 0, ret;
- unsigned int status = 0, output;
-
-+ /* Check if the last certificate in the path is self signed.
-+ * In that case ignore it (a certificate is trusted only if it
-+ * leads to a trusted party by us, not the server's).
-+ */
-+ if (clist_size > 1 &&
-+ gnutls_x509_crt_check_issuer (certificate_list[clist_size - 1],
-+ certificate_list[clist_size - 1]) > 0)
-+ {
-+ clist_size--;
-+ }
-+
- /* Verify the last certificate in the certificate path
- * against the trusted CA certificate list.
- *
-@@ -417,17 +428,6 @@ _gnutls_x509_verify_certificate (const g
- }
- #endif
-
-- /* Check if the last certificate in the path is self signed.
-- * In that case ignore it (a certificate is trusted only if it
-- * leads to a trusted party by us, not the server's).
-- */
-- if (gnutls_x509_crt_check_issuer (certificate_list[clist_size - 1],
-- certificate_list[clist_size - 1]) > 0
-- && clist_size > 0)
-- {
-- clist_size--;
-- }
--
- /* Verify the certificate path (chain)
- */
- for (i = clist_size - 1; i > 0; i--)
+++ /dev/null
-diff -up gnutls-2.4.0/lib/gnutlsxx.cpp.nosrp gnutls-2.4.0/lib/gnutlsxx.cpp
---- gnutls-2.4.0/lib/gnutlsxx.cpp.nosrp 2008-05-19 10:01:43.000000000 +0200
-+++ gnutls-2.4.0/lib/gnutlsxx.cpp 2008-06-23 20:11:26.000000000 +0200
-@@ -398,7 +398,11 @@ void session::set_credentials( credentia
-
- const char* server_session::get_srp_username() const
- {
-+#ifdef ENABLE_SRP
- return gnutls_srp_server_get_username( s);
-+#else
-+ return NULL;
-+#endif
- }
-
- const char* server_session::get_psk_username() const
-@@ -677,7 +681,7 @@ void certificate_client_credentials::set
- }
-
- // SRP
--
-+#ifdef ENABLE_SRP
- srp_server_credentials::srp_server_credentials() : credentials(GNUTLS_CRD_SRP)
- {
- RETWRAP(gnutls_srp_allocate_server_credentials( &cred));
-@@ -721,7 +725,7 @@ void srp_client_credentials::set_credent
- {
- gnutls_srp_set_client_credentials_function( cred, func);
- }
--
-+#endif
- // PSK
-
- psk_server_credentials::psk_server_credentials() : credentials(GNUTLS_CRD_PSK)
--- /dev/null
+diff -up gnutls-2.6.2/lib/gnutlsxx.cpp.nosrp gnutls-2.6.2/lib/gnutlsxx.cpp
+--- gnutls-2.6.2/lib/gnutlsxx.cpp.nosrp 2008-11-12 10:56:28.000000000 +0100
++++ gnutls-2.6.2/lib/gnutlsxx.cpp 2008-12-04 14:34:10.000000000 +0100
+@@ -396,12 +396,14 @@ void session::set_credentials( credentia
+ RETWRAP(gnutls_credentials_set( s, cred.get_type(), cred.ptr()));
+ }
+
+-#ifdef ENABLE_SRP
+ const char* server_session::get_srp_username() const
+ {
++#ifdef ENABLE_SRP
+ return gnutls_srp_server_get_username( s);
+-}
++#else
++ return NULL;
+ #endif
++}
+
+ const char* server_session::get_psk_username() const
+ {
%define __find_provides %{_mingw32_findprovides}
Name: mingw32-gnutls
-Version: 2.4.2
-Release: 4%{?dist}
+Version: 2.6.3
+Release: 1%{?dist}
Summary: MinGW Windows GnuTLS TLS/SSL encryption library
License: GPLv3+ and LGPLv2+
#Source0: ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
# XXX patent tainted SRP code removed.
Source0: gnutls-%{version}-nosrp.tar.bz2
+Source1: libgnutls-config
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-Patch1: gnutls-2.4.0-nosrp.patch
-Patch5: gnutls-1.4.1-cve-2008-4989.patch
+Patch1: gnutls-2.6.2-nosrp.patch
# MinGW-specific patches.
Patch1000: gnutls-certtool-build.patch
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-libgpg-error
-BuildRequires: mingw32-libgcrypt
+BuildRequires: mingw32-libgcrypt >= 1.2.2
BuildRequires: mingw32-iconv
BuildRequires: mingw32-gettext
BuildRequires: mingw32-zlib
%setup -q -n gnutls-%{version}
%patch1 -p1 -b .nosrp
-%patch5 -p1 -b .chain-verify
%patch1000 -p1 -b .mingw32
%build
autoreconf
PATH="%{_mingw32_bindir}:$PATH" \
-%{_mingw32_configure} --with-included-libtasn1 --disable-cxx \
- --disable-srp-authentication
-make
+%{_mingw32_configure} \
+ --with-included-libtasn1 \
+ --disable-srp-authentication \
+ --disable-static
+make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/info/dir
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgnutls-extra.a
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgnutls-openssl.a
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgnutls.a
-
# Remove info and man pages which duplicate stuff in Fedora already.
rm -rf $RPM_BUILD_ROOT%{_mingw32_infodir}
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
+%find_lang gnutls
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f gnutls.lang
%defattr(-,root,root)
%{_mingw32_bindir}/certtool.exe
%{_mingw32_bindir}/gnutls-cli-debug.exe
%{_mingw32_includedir}/gnutls/
%{_mingw32_datadir}/aclocal/libgnutls-extra.m4
%{_mingw32_datadir}/aclocal/libgnutls.m4
-%{_mingw32_datadir}/locale/*/LC_MESSAGES/gnutls.mo
%changelog
+* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.3-1
+- Rebase to native Fedora version 2.6.3.
+- Enable C++ library.
+- Use _smp_mflags.
+- Use find_lang macro.
+- Don't build static library.
+
* Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-4
- Requires pkgconfig.