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
|
|
|
#
|
2018-02-25 13:21:00 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-16 00:15:33 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gpg2
|
2018-06-08 14:49:21 +02:00
|
|
|
Version: 2.2.8
|
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
|
2014-11-13 22:15:23 +01:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
|
|
|
|
Source2: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
|
|
|
# https://www.gnupg.org/signature_key.html
|
|
|
|
Source3: %{name}.keyring
|
2015-09-11 09:41:47 +02:00
|
|
|
Source99: %{name}.changes
|
2014-11-13 22:15:23 +01:00
|
|
|
Patch4: gnupg-2.0.9-langinfo.patch
|
|
|
|
Patch5: gnupg-2.0.18-files-are-digests.patch
|
|
|
|
Patch6: gnupg-dont-fail-with-seahorse-agent.patch
|
|
|
|
Patch8: gnupg-set_umask_before_open_outfile.patch
|
|
|
|
Patch9: gnupg-detect_FIPS_mode.patch
|
|
|
|
Patch11: gnupg-add_legacy_FIPS_mode_option.patch
|
2010-01-29 15:57:14 +01:00
|
|
|
BuildRequires: expect
|
2010-01-28 15:14:26 +01:00
|
|
|
BuildRequires: fdupes
|
2018-02-25 13:21:00 +01:00
|
|
|
BuildRequires: libassuan-devel >= 2.5.0
|
2016-08-22 11:24:09 +02:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.7.0
|
|
|
|
BuildRequires: libgpg-error-devel >= 1.24
|
|
|
|
BuildRequires: libksba-devel >= 1.3.4
|
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(libcurl) >= 7.10
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.7
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2015-12-04 16:26:14 +01:00
|
|
|
# Add an explicit runtime dependency to match boo#955982
|
2016-09-13 15:56:48 +02:00
|
|
|
Requires: libassuan0 >= 2.4.3
|
|
|
|
# Explicit runtime depencency - runtime version check
|
|
|
|
Requires: libgcrypt20 >= 1.7.0
|
2016-12-27 19:34:21 +01:00
|
|
|
Requires: libksba >= 1.3.4
|
2012-03-27 22:59:37 +02:00
|
|
|
Requires: pinentry
|
2017-01-09 10:33:05 +01:00
|
|
|
Requires(post): %{install_info_prereq}
|
2014-11-13 22:15:23 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
Obsoletes: dirmngr < 2.1.0
|
|
|
|
Provides: dirmngr = %{version}
|
2012-03-27 22:59:37 +02:00
|
|
|
Provides: gnupg = %{version}
|
|
|
|
Provides: gpg = 1.4.9
|
|
|
|
Provides: newpg
|
2010-07-19 23:58:25 +02:00
|
|
|
# special feature needed for OBS signd
|
|
|
|
Provides: gpg2_signd_support
|
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
|
|
|
|
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
|
2014-11-13 22:15:23 +01:00
|
|
|
%setup -q -n gnupg-%{version}
|
2013-08-20 14:21:25 +02:00
|
|
|
%patch4 -p1
|
2009-01-13 18:57:46 +01:00
|
|
|
%patch5 -p1
|
2010-07-30 14:51:31 +02:00
|
|
|
%patch6 -p1
|
2013-05-16 12:06:39 +02:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2014-05-01 12:48:32 +02:00
|
|
|
%patch11 -p1
|
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
|
|
|
--libexecdir=%{_libdir} \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
2014-11-13 22:15:23 +01:00
|
|
|
--with-agent-pgm=%{_bindir}/gpg-agent \
|
|
|
|
--with-pinentry-pgm=%{_bindir}/pinentry \
|
|
|
|
--with-dirmngr-pgm=%{_bindir}/dirmngr \
|
|
|
|
--with-scdaemon-pgm=%{_bindir}/scdaemon \
|
2008-04-06 05:55:31 +02:00
|
|
|
--enable-ldap \
|
|
|
|
--enable-gpgsm=yes \
|
|
|
|
--enable-gpg \
|
2014-06-04 09:49:19 +02:00
|
|
|
--enable-gpgtar \
|
2016-01-26 23:08:25 +01:00
|
|
|
--enable-g13 \
|
2014-12-25 18:08:58 +01:00
|
|
|
--enable-large-secmem \
|
2016-09-13 15:56:48 +02:00
|
|
|
--enable-wks-tools \
|
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 \
|
2017-03-07 15:31:11 +01:00
|
|
|
--enable-build-timestamp=$date \
|
2017-08-28 19:36:56 +02:00
|
|
|
--enable-gpg-is-gpg2 \
|
2017-11-07 21:16:25 +01:00
|
|
|
--enable-Werror
|
2011-08-19 07:00:05 +02:00
|
|
|
|
2010-11-01 16:53:14 +01:00
|
|
|
make %{?_smp_mflags}
|
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/
|
2009-01-13 18:57:46 +01:00
|
|
|
# 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
|
|
|
|
rm %{buildroot}%{_infodir}/dir
|
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
|
2007-10-26 01:46:05 +02:00
|
|
|
# fix rpmlint invalid-lc-messages-dir:
|
2014-11-13 22:15:23 +01:00
|
|
|
rm -rf %{buildroot}/%{_datadir}/locale/en@{bold,}quot
|
2014-02-15 11:10:41 +01:00
|
|
|
# install scdaemon to %{_bindir} (bnc#863645)
|
|
|
|
mv %{buildroot}%{_libdir}/scdaemon %{buildroot}%{_bindir}
|
2014-11-11 11:52:31 +01:00
|
|
|
mv %{buildroot}%{_libdir}/dirmngr_ldap %{buildroot}%{_bindir}
|
2015-03-19 17:30:03 +01:00
|
|
|
# install legacy tools
|
|
|
|
install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
|
2016-03-07 13:44:00 +01:00
|
|
|
# install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
|
2015-03-19 17:30:03 +01: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
|
|
|
|
|
|
|
%check
|
2017-01-09 10:54:30 +01:00
|
|
|
# Run only localy, fails in OBS
|
|
|
|
#%if ! 0%{?qemu_user_space_build}
|
|
|
|
#make %{?_smp_mflags} check
|
|
|
|
#%endif
|
2007-01-16 00:15:33 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
|
|
|
|
2015-05-17 13:50:57 +02:00
|
|
|
%preun
|
2007-01-16 00:15:33 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
|
|
|
|
2008-03-26 16:13:07 +01:00
|
|
|
%files lang -f gnupg2.lang
|
|
|
|
|
|
|
|
%files
|
2015-09-11 09:41:47 +02:00
|
|
|
%{_infodir}/gnupg*
|
2016-12-20 20:34:32 +01:00
|
|
|
%{_mandir}/*/*%{ext_man}
|
2018-02-26 10:33:35 +01:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS ChangeLog NEWS THANKS TODO doc/FAQ
|
2009-01-13 18:57:46 +01:00
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%{_bindir}/*
|
2007-01-30 00:52:49 +01:00
|
|
|
%{_libdir}/[^d]*
|
2009-01-13 18:57:46 +01:00
|
|
|
%{_sbindir}/addgnupghome
|
|
|
|
%{_sbindir}/applygnupgdefaults
|
2016-05-10 13:27:26 +02:00
|
|
|
%{_sbindir}/g13-syshelp
|
2009-01-13 18:57:46 +01:00
|
|
|
%{_datadir}/gnupg
|
|
|
|
%dir %{_sysconfdir}/gnupg
|
|
|
|
%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
|
2008-01-10 14:14:30 +01:00
|
|
|
|
2007-03-30 02:08:34 +02:00
|
|
|
%changelog
|