2007-01-16 00:15:33 +01:00
|
|
|
#
|
2011-03-16 10:37:25 +01:00
|
|
|
# spec file for package gpg2
|
2007-01-16 00:15:33 +01:00
|
|
|
#
|
2023-09-25 12:24:20 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-16 00:15:33 +01:00
|
|
|
#
|
2009-01-13 18:57:46 +01:00
|
|
|
# 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.
|
|
|
|
|
2019-02-13 07:56:04 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:15:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gpg2
|
2023-10-10 17:00:55 +02:00
|
|
|
Version: 2.4.3
|
2012-03-27 22:59:37 +02:00
|
|
|
Release: 0
|
2017-03-02 13:53:32 +01:00
|
|
|
Summary: File encryption, decryption, signature creation and verification utility
|
2018-06-08 14:49:21 +02:00
|
|
|
License: GPL-3.0-or-later
|
2014-11-13 22:15:23 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2018-06-08 15:05:19 +02:00
|
|
|
URL: https://www.gnupg.org
|
2021-06-21 16:51:47 +02:00
|
|
|
Source: https://gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2
|
|
|
|
Source2: https://gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
2014-11-13 22:15:23 +01:00
|
|
|
# https://www.gnupg.org/signature_key.html
|
2022-05-06 09:34:40 +02:00
|
|
|
Source3: https://gnupg.org/signature_key.asc#/%{name}.keyring
|
2018-07-25 08:15:59 +02:00
|
|
|
Source4: scdaemon.udev
|
2023-10-10 17:00:55 +02:00
|
|
|
Source5: gpg2-systemd-user.tar.xz
|
2015-09-11 09:41:47 +02:00
|
|
|
Source99: %{name}.changes
|
2021-08-27 13:48:41 +02:00
|
|
|
Patch1: gnupg-gpg-agent-ulimit.patch
|
|
|
|
Patch2: gnupg-2.0.9-langinfo.patch
|
|
|
|
Patch3: gnupg-dont-fail-with-seahorse-agent.patch
|
|
|
|
Patch4: gnupg-set_umask_before_open_outfile.patch
|
|
|
|
Patch5: gnupg-detect_FIPS_mode.patch
|
|
|
|
Patch6: gnupg-add_legacy_FIPS_mode_option.patch
|
|
|
|
Patch7: gnupg-2.2.16-secmem.patch
|
|
|
|
Patch8: gnupg-accept_subkeys_with_a_good_revocation_but_no_self-sig_during_import.patch
|
|
|
|
Patch9: gnupg-add-test-cases-for-import-without-uid.patch
|
|
|
|
Patch10: gnupg-allow-import-of-previously-known-keys-even-without-UIDs.patch
|
2023-09-25 12:24:20 +02:00
|
|
|
#PATCH-FIX-SUSE Allow 8192 bit RSA keys in keygen UI when large_rsa is set
|
|
|
|
Patch11: gnupg-allow-large-rsa.patch
|
|
|
|
#PATCH-FIX-SUSE Revert the rfc4880bis features default of key generation
|
|
|
|
Patch12: gnupg-revert-rfc4880bis.patch
|
2023-10-17 04:51:08 +02:00
|
|
|
#PATCH-FIX-UPSTREAM Fix emacs gpg2 output parsing
|
|
|
|
Patch13: gnupg-Report-BEGIN_-status-before-examining-the-input.patch
|
2023-10-19 10:12:17 +02:00
|
|
|
#PATCH-FIX-OPENSUSE Do not pull revision info from GIT when autoconf is run
|
|
|
|
Patch14: gnupg-nobetasuffix.patch
|
2010-01-29 15:57:14 +01:00
|
|
|
BuildRequires: expect
|
2010-01-28 15:14:26 +01:00
|
|
|
BuildRequires: fdupes
|
2023-06-07 23:06:41 +02:00
|
|
|
BuildRequires: ibmswtpm2
|
|
|
|
BuildRequires: ibmtss-devel
|
2018-02-25 13:21:00 +01:00
|
|
|
BuildRequires: libassuan-devel >= 2.5.0
|
2021-06-21 16:51:47 +02:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.9.1
|
2023-09-25 12:24:20 +02:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.46
|
|
|
|
BuildRequires: libksba-devel >= 1.6.3
|
2014-05-01 12:48:32 +02:00
|
|
|
BuildRequires: makeinfo
|
2016-08-22 11:24:09 +02:00
|
|
|
BuildRequires: npth-devel >= 1.2
|
2012-03-27 22:59:37 +02:00
|
|
|
BuildRequires: openldap2-devel
|
2016-12-20 20:34:32 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-12-14 10:24:02 +01:00
|
|
|
BuildRequires: readline-devel
|
2015-12-08 15:36:53 +01:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(gnutls) >= 3.0
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2021-06-21 16:51:47 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.27
|
2015-12-08 15:36:53 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-11-18 10:45:38 +01:00
|
|
|
# runtime dependency to support devel repository users - boo#955982
|
|
|
|
Requires: libassuan0 >= 2.5.0
|
2021-06-21 16:51:47 +02:00
|
|
|
Requires: libgcrypt20 >= 1.9.1
|
2023-10-10 17:00:55 +02:00
|
|
|
Requires: libgpg-error >= 1.46
|
2021-06-21 16:51:47 +02:00
|
|
|
Requires: libksba >= 1.3.4
|
2012-03-27 22:59:37 +02:00
|
|
|
Requires: pinentry
|
2020-03-13 13:49:16 +01:00
|
|
|
Recommends: dirmngr = %{version}
|
2012-03-27 22:59:37 +02:00
|
|
|
Provides: gnupg = %{version}
|
|
|
|
Provides: gpg = 1.4.9
|
|
|
|
Provides: newpg
|
2009-11-16 18:35:33 +01:00
|
|
|
Obsoletes: gpg < 1.4.9
|
2007-01-16 00:15:33 +01:00
|
|
|
|
|
|
|
%description
|
2017-03-02 13:53:32 +01:00
|
|
|
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.
|
2007-01-16 00:15:33 +01:00
|
|
|
|
2020-03-13 13:49:16 +01:00
|
|
|
%package -n dirmngr
|
|
|
|
Summary: Keyserver, CRL, and OCSP access for GnuPG
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
|
|
|
|
%description -n 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.
|
|
|
|
|
2022-05-16 10:30:58 +02:00
|
|
|
%package tpm
|
|
|
|
Summary: TPM2 support for GnuPG
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
|
|
|
|
%description tpm
|
|
|
|
Version 2.3 of GnuPG introduced support for converting GPG private
|
|
|
|
keys to TPM2 wrapped form. This package enables that support. The
|
|
|
|
keytotpm command will not function unless this package is installed.
|
|
|
|
|
2008-03-26 16:13:07 +01:00
|
|
|
%lang_package
|
2014-11-13 22:15:23 +01:00
|
|
|
|
2007-01-16 00:15:33 +01:00
|
|
|
%prep
|
2023-10-10 17:00:55 +02:00
|
|
|
%autosetup -p1 -a5 -n gnupg-%{version}
|
2021-08-27 13:48:41 +02:00
|
|
|
|
|
|
|
# In order to compensate for gnupg-add_legacy_FIPS_mode_option.patch
|
|
|
|
# to not have man pages and info files have the build date (boo#1047218)
|
|
|
|
touch -d 2018-05-04 doc/gpg.texi
|
2007-01-16 00:15:33 +01:00
|
|
|
|
|
|
|
%build
|
2016-08-04 17:57:29 +02:00
|
|
|
date=$(date -u +%%Y-%%m-%%dT%%H:%%M+0000 -r %{SOURCE99})
|
2011-08-19 07:00:05 +02:00
|
|
|
%configure \
|
2009-01-13 18:57:46 +01:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
2023-10-10 17:00:55 +02:00
|
|
|
--disable-rpath \
|
2016-01-26 23:08:25 +01:00
|
|
|
--enable-g13 \
|
2014-12-25 18:08:58 +01:00
|
|
|
--enable-large-secmem \
|
2015-09-11 09:41:47 +02:00
|
|
|
--with-gnu-ld \
|
2017-08-28 19:36:56 +02:00
|
|
|
--with-default-trust-store-file=%{_sysconfdir}/ssl/ca-bundle.pem \
|
2023-05-17 10:52:48 +02:00
|
|
|
--enable-build-timestamp=$date \
|
2021-06-21 16:51:47 +02:00
|
|
|
--enable-gpg-is-gpg2
|
2011-08-19 07:00:05 +02:00
|
|
|
|
2020-03-21 09:06:35 +01:00
|
|
|
%make_build
|
2007-01-16 00:15:33 +01:00
|
|
|
|
|
|
|
%install
|
2017-07-28 21:33:18 +02:00
|
|
|
%make_install
|
2014-11-13 22:15:23 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/gnupg/
|
2023-10-10 17:00:55 +02:00
|
|
|
|
2023-09-25 12:24:20 +02:00
|
|
|
# install gpgconf.conf bnc#391347
|
2014-11-13 22:15:23 +01:00
|
|
|
install -m 644 doc/examples/gpgconf.conf %{buildroot}%{_sysconfdir}/gnupg
|
2009-01-13 18:57:46 +01:00
|
|
|
# delete to prevent fdupes from creating cross-partition hardlink
|
2014-11-13 22:15:23 +01:00
|
|
|
rm -rf %{buildroot}%{_docdir}/gpg2/examples/gpgconf.conf
|
2023-09-25 12:24:20 +02:00
|
|
|
|
|
|
|
# remove info dir
|
2014-11-13 22:15:23 +01:00
|
|
|
rm %{buildroot}%{_infodir}/dir
|
2023-09-25 12:24:20 +02:00
|
|
|
|
2007-06-21 21:56:01 +02:00
|
|
|
# compat symlinks
|
2014-11-13 22:15:23 +01:00
|
|
|
ln -sf gpg2 %{buildroot}%{_bindir}/gpg
|
|
|
|
ln -sf gpgv2 %{buildroot}%{_bindir}/gpgv
|
|
|
|
ln -sf gpg2.1 %{buildroot}%{_mandir}/man1/gpg.1
|
|
|
|
ln -sf gpgv2.1 %{buildroot}%{_mandir}/man1/gpgv.1
|
2023-09-25 12:24:20 +02:00
|
|
|
|
2018-07-25 08:15:59 +02:00
|
|
|
# install udev rules for scdaemon
|
|
|
|
install -Dm 0644 %{SOURCE4} %{buildroot}%{_udevrulesdir}/60-scdaemon.rules
|
2015-03-19 17:30:03 +01:00
|
|
|
|
2023-10-10 17:00:55 +02:00
|
|
|
# Move the systemd user units to the appropriate directory
|
2023-09-25 12:24:20 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_userunitdir}
|
2023-10-10 17:00:55 +02:00
|
|
|
cp systemd-user/gpg-agent*.s* %{buildroot}%{_userunitdir}
|
|
|
|
cp systemd-user/dirmngr.s* %{buildroot}%{_userunitdir}
|
|
|
|
cp systemd-user/README.systemd %{buildroot}%{_docdir}/gpg2/
|
2023-09-25 12:24:20 +02:00
|
|
|
|
2007-10-26 01:46:05 +02:00
|
|
|
%find_lang gnupg2
|
2017-01-09 10:33:05 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2007-10-26 01:46:05 +02:00
|
|
|
|
2023-06-07 23:06:41 +02:00
|
|
|
%check
|
2023-10-10 17:00:55 +02:00
|
|
|
%make_build check || :
|
2023-06-07 23:06:41 +02:00
|
|
|
|
2007-01-16 00:15:33 +01:00
|
|
|
%post
|
2018-07-25 08:15:59 +02:00
|
|
|
%udev_rules_update
|
2007-01-16 00:15:33 +01:00
|
|
|
|
2008-03-26 16:13:07 +01:00
|
|
|
%files lang -f gnupg2.lang
|
|
|
|
|
|
|
|
%files
|
2023-09-25 12:24:20 +02:00
|
|
|
%license COPYING*
|
2023-10-10 17:00:55 +02:00
|
|
|
%doc AUTHORS NEWS THANKS TODO ChangeLog
|
2015-09-11 09:41:47 +02:00
|
|
|
%{_infodir}/gnupg*
|
2023-09-26 12:55:09 +02:00
|
|
|
%{_mandir}/*/[agsw]*%{ext_man}
|
2009-01-13 18:57:46 +01:00
|
|
|
%doc %{_docdir}/%{name}
|
2023-10-10 17:00:55 +02:00
|
|
|
%{_bindir}/[gkw]*
|
|
|
|
%{_libexecdir}/[gks]*
|
2009-01-13 18:57:46 +01:00
|
|
|
%{_sbindir}/addgnupghome
|
|
|
|
%{_sbindir}/applygnupgdefaults
|
2016-05-10 13:27:26 +02:00
|
|
|
%{_sbindir}/g13-syshelp
|
2018-07-25 08:15:59 +02:00
|
|
|
%{_udevrulesdir}/60-scdaemon.rules
|
2009-01-13 18:57:46 +01:00
|
|
|
%{_datadir}/gnupg
|
|
|
|
%dir %{_sysconfdir}/gnupg
|
|
|
|
%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
|
2023-09-25 12:24:20 +02:00
|
|
|
%{_userunitdir}/gpg-agent*
|
2023-10-31 13:55:15 +01:00
|
|
|
%if 0%{?sle_version} >= 150500
|
|
|
|
%exclude %{_userunitdir}/dirmngr.*
|
|
|
|
%endif
|
2008-01-10 14:14:30 +01:00
|
|
|
|
2020-03-13 13:49:16 +01:00
|
|
|
%files -n dirmngr
|
|
|
|
%license COPYING*
|
|
|
|
%{_mandir}/*/dirmngr*%{ext_man}
|
|
|
|
%{_bindir}/dirmngr*
|
2023-10-10 17:00:55 +02:00
|
|
|
%{_libexecdir}/dirmngr_ldap
|
2023-09-25 12:24:20 +02:00
|
|
|
%{_userunitdir}/dirmngr.*
|
2020-03-13 13:49:16 +01:00
|
|
|
|
2022-05-16 10:30:58 +02:00
|
|
|
%files tpm
|
2023-09-26 12:55:09 +02:00
|
|
|
%license COPYING*
|
2023-10-10 17:00:55 +02:00
|
|
|
%{_libexecdir}/tpm2daemon*
|
2022-05-16 10:30:58 +02:00
|
|
|
|
2007-03-30 02:08:34 +02:00
|
|
|
%changelog
|