File mingw64-gpg2.spec of Package mingw64-gpg2

#
# spec file for package mingw64-gpg2
#
# 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/
#

Name:           mingw64-gpg2
Version:        2.2.36
Release:        0
Summary:        File encryption, decryption, signature creation and verification utility
License:        GPL-3.0-or-later
Group:          Development/Libraries/C and C++
Url:            http://www.gnupg.org/aegypten2/
Source0:        ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
Source1:        ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
# PATCH-MINGW
Patch4:         gnupg-2.0.9-langinfo.patch
Patch6:         gnupg-dont-fail-with-seahorse-agent.patch
Patch8:         gnupg-set_umask_before_open_outfile.patch
Patch9:         gnupg-detect_FIPS_mode.patch
Patch12:        gnupg-2.2.16-secmem.patch
Patch13:        gnupg-accept_subkeys_with_a_good_revocation_but_no_self-sig_during_import.patch
Patch14:        gnupg-add-test-cases-for-import-without-uid.patch
Patch15:        gnupg-allow-import-of-previously-known-keys-even-without-UIDs.patch
Patch1124847:   gnupg-gpg-agent-ulimit.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gettext-tools
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  makeinfo
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-libassuan-devel >= 2.0.0
BuildRequires:  mingw64-libcurl-devel
BuildRequires:  mingw64-libgcrypt-devel
BuildRequires:  mingw64-libgnurx-devel
BuildRequires:  mingw64-libksba-devel
BuildRequires:  mingw64-npth-devel
BuildRequires:  mingw64-win_iconv-devel
BuildRequires:  mingw64-zlib-devel
Requires:       mingw64-pinentry
%_mingw64_package_header_debug
BuildArch:      noarch

%description
GnuPG is a hybrid-encryption software program; it uses a combination
of symmetric-key and public-key cryptography to encrypt/decrypt
messages and/or to sign and verify them.

gpg2 provides GPGSM, gpg-agent, and a keybox library.

%package -n mingw64-dirmngr
Summary:        Keyserver, CRL, and OCSP access for GnuPG
Group:          Productivity/Networking/Security

%description -n mingw64-dirmngr
Since version  2.1 of GnuPG, dirmngr takes care of accessing the OpenPGP
keyservers. As with previous versions it is also used as a server for managing
and downloading certificate
revocation lists (CRLs) for X.509 certificates, downloading X.509 certificates,
and providing access to OCSP providers.  Dirmngr is invoked internally by gpg,
gpgsm, or via the gpg-connect-agent tool.

%_mingw64_debug_package

%lang_package

%prep
%autosetup -p1 -n gnupg-%{version}

%build
PATH="%{_mingw64_bindir}:$PATH" %{_mingw64_configure} --enable-gpg-is-gpg2
make %{?_smp_mflags} || make

%install

make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_mingw64_docdir}/gnupg/examples/systemd-user
rm %{buildroot}%{_mingw64_sbindir}/*
rm -rf %{buildroot}%{_mingw64_infodir}

%_mingw64_find_lang gnupg2

%files
%exclude %{_mingw64_mandir}/*/dirmngr*%{ext_man}
%{_mingw64_mandir}/*/*%{ext_man}
%license COPYING*
%doc AUTHORS ChangeLog NEWS THANKS TODO doc/FAQ
%doc %{_mingw64_docdir}/gnupg
%exclude %{_mingw64_bindir}/dirmngr*
%{_mingw64_bindir}/*.exe
%dir %{_mingw64_libexecdir}
%{_mingw64_libexecdir}/*.exe
%{_mingw64_datadir}/gnupg

%files -n mingw64-dirmngr
%license COPYING*
%{_mingw64_mandir}/*/dirmngr*%{ext_man}
%{_mingw64_bindir}/dirmngr*.exe

%files lang -f gnupg2.lang

%changelog
openSUSE Build Service is sponsored by