File mingw32-gnutls.spec of Package mingw32-gnutls
#
# spec file for package mingw32-gnutls
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _with_doc 0
Name: mingw32-gnutls
Version: 3.7.7
Release: 0
Summary: GnuTLS TLS/SSL encryption library
License: LGPL-3.0-or-later and GPL-3.0-or-later
Group: Development/Libraries/C and C++
Url: http://www.gnu.org/software/gnutls/
Source: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.7/gnutls-%version.tar.xz
Source2: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.7/gnutls-%version.tar.xz.sig
Source3: %name.keyring
#!BuildIgnore: post-build-checks
Patch1: gnutls-3.5.11-skip-trust-store-tests.patch
Patch2: gnutls-3.6.14-compile-fix.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gmp-devel
BuildRequires: mingw32-libgcrypt-devel
BuildRequires: mingw32-libgpg-error-devel
BuildRequires: mingw32-libintl-devel
BuildRequires: mingw32-libnettle-devel >= 2.5
BuildRequires: mingw32-libtasn1-devel >= 3.1
BuildRequires: mingw32-p11-kit-devel
BuildRequires: mingw32-win_iconv-devel
BuildRequires: mingw32-zlib-devel
BuildRequires: xz
Requires: %{name}-lang = %{version}
%_mingw32_package_header_debug
BuildArch: noarch
%if %{?suse_version} > 1200
BuildRequires: makeinfo
%endif
%description
GnuTLS is a secure communications library implementing the SSL and TLS protocols and technologies around them.
It provides a simple C language application programming interface (API) to access the secure communications
protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures.
%package -n mingw32-libgnutls30
Summary: GnuTLS TLS/SSL encryption library
Group: System/Libraries
Obsoletes: mingw32-libgnutls < %{version}
Provides: mingw32-libgnutls = %{version}
%description -n mingw32-libgnutls30
GnuTLS is a secure communications library implementing the SSL and TLS protocols and technologies around them.
It provides a simple C language application programming interface (API) to access the secure communications
protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures.
%package -n mingw32-libgnutlsxx30
Summary: GnuTLS TLS/SSL encryption library
Group: System/Libraries
Obsoletes: mingw32-libgnutlsxx < %{version}
Provides: mingw32-libgnutlsxx = %{version}
%description -n mingw32-libgnutlsxx30
GnuTLS is a secure communications library implementing the SSL and TLS protocols and technologies around them.
It provides a simple C language application programming interface (API) to access the secure communications
protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures.
%package -n mingw32-libgnutls-openssl27
Summary: GnuTLS TLS/SSL encryption library
Group: System/Libraries
Obsoletes: mingw32-libgnutls-openssl < %{version}
Provides: mingw32-libgnutls-openssl = %{version}
%description -n mingw32-libgnutls-openssl27
GnuTLS is a secure communications library implementing the SSL and TLS protocols and technologies around them.
It provides a simple C language application programming interface (API) to access the secure communications
protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures.
%package -n mingw32-libgnutls-devel
Summary: GnuTLS TLS/SSL encryption library
Group: Development/Libraries/C and C++
Requires: mingw32(pkg:libtasn1)
%description -n mingw32-libgnutls-devel
MinGW Windows GnuTLS TLS/SSL encryption library development files.
%package -n mingw32-libgnutlsxx-devel
Summary: GnuTLS TLS/SSL encryption library
Group: Development/Libraries/C and C++
Requires: mingw32(pkg:gnutls)
%description -n mingw32-libgnutlsxx-devel
MinGW Windows GnuTLS TLS/SSL encryption library development files.
%package -n mingw32-libgnutls-openssl-devel
Summary: GnuTLS TLS/SSL encryption library
Group: Development/Libraries/C and C++
Requires: mingw32(pkg:gnutls)
%description -n mingw32-libgnutls-openssl-devel
MinGW Windows GnuTLS TLS/SSL encryption library development files.
%_mingw32_debug_package
%lang_package
%prep
%setup -q -n gnutls-%{version}
%autopatch -p1
%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
--enable-shared \
--disable-static \
--enable-cxx \
%if !%{?_with_doc}
--disable-doc \
%endif
--enable-nls \
--enable-openssl-compatibility \
--disable-guile \
--with-included-libtasn1 \
--with-included-unistring \
--with-default-trust-store-file
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_mingw32_bindir}/*.def
rm -f %{buildroot}%{_mingw32_libdir}/*.def
%find_lang gnutls
# cleanup debug package
find . -type f -name '*.bak' -exec rm {} \;
%files
%defattr(-,root,root)
%{_mingw32_bindir}/certtool.exe
%{_mingw32_bindir}/gnutls-cli.exe
%{_mingw32_bindir}/gnutls-cli-debug.exe
%{_mingw32_bindir}/gnutls-serv.exe
%{_mingw32_bindir}/ocsptool.exe
%{_mingw32_bindir}/p11tool.exe
%{_mingw32_bindir}/psktool.exe
%{_mingw32_bindir}/srptool.exe
%if %{?_with_doc}
%{_mingw32_mandir}/man1
%endif
%files lang -f gnutls.lang
%defattr(-,root,root)
%files -n mingw32-libgnutls30
%defattr(-,root,root)
%{_mingw32_bindir}/libgnutls-30.dll
%files -n mingw32-libgnutlsxx30
%defattr(-,root,root)
%{_mingw32_bindir}/libgnutlsxx-30.dll
%files -n mingw32-libgnutls-openssl27
%defattr(-,root,root)
%{_mingw32_bindir}/libgnutls-openssl-27.dll
%files -n mingw32-libgnutls-devel
%defattr(-,root,root)
%{_mingw32_includedir}/gnutls
%exclude %{_mingw32_includedir}/gnutls/openssl.h
%exclude %{_mingw32_includedir}/gnutls/gnutlsxx.h
%{_mingw32_libdir}/libgnutls.dll.a
%{_mingw32_libdir}/pkgconfig/gnutls.pc
%if %{?_with_doc}
%{_mingw32_infodir}
%exclude %{_mingw32_infodir}/dir*
%{_mingw32_mandir}/man3
%doc %{_mingw32_docdir}/gnutls
%endif
%files -n mingw32-libgnutlsxx-devel
%defattr(-,root,root)
%{_mingw32_includedir}/gnutls/gnutlsxx.h
%{_mingw32_libdir}/libgnutlsxx.dll.a
%files -n mingw32-libgnutls-openssl-devel
%defattr(-,root,root)
%{_mingw32_includedir}/gnutls/openssl.h
%{_mingw32_libdir}/libgnutls-openssl.dll.a
%changelog