2007-01-15 23:15:33 +00:00
|
|
|
#
|
2011-03-16 09:37:25 +00:00
|
|
|
# spec file for package gpg2
|
2007-01-15 23:15:33 +00:00
|
|
|
#
|
2015-02-25 10:39:14 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:15:33 +00:00
|
|
|
#
|
2009-01-13 17:57:46 +00: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-15 23:15:33 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gpg2
|
2015-12-04 15:26:14 +00:00
|
|
|
Version: 2.1.10
|
2012-03-27 20:59:37 +00:00
|
|
|
Release: 0
|
2014-11-13 21:15:23 +00:00
|
|
|
Summary: GnuPG 2
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
Url: http://www.gnupg.org/aegypten2/
|
|
|
|
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 07:41:47 +00:00
|
|
|
Source99: %{name}.changes
|
2014-11-13 21:15:23 +00: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 14:57:14 +00:00
|
|
|
BuildRequires: expect
|
2010-01-28 14:14:26 +00:00
|
|
|
BuildRequires: fdupes
|
2014-12-03 22:40:59 +00:00
|
|
|
BuildRequires: gnutls-devel >= 3.0
|
2012-03-27 20:59:37 +00:00
|
|
|
BuildRequires: libadns-devel
|
2015-12-04 15:26:14 +00:00
|
|
|
BuildRequires: libassuan-devel >= 2.4.1
|
2013-01-16 08:24:58 +00:00
|
|
|
BuildRequires: libbz2-devel
|
2012-03-27 20:59:37 +00:00
|
|
|
BuildRequires: libcurl-devel >= 7.10
|
2014-07-01 21:33:00 +00:00
|
|
|
# patch11 (gnupg-add_legacy_FIPS_mode_option.patch) mentions GCRYCTL_INACTIVATE_FIPS_FLAG
|
|
|
|
# raising gcrypt requirement from 1.4.0
|
|
|
|
BuildRequires: libgcrypt-devel >= 1.6.1
|
2014-12-29 06:05:14 +00:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.16
|
2014-12-03 22:40:59 +00:00
|
|
|
BuildRequires: libksba-devel >= 1.2.0
|
2009-01-13 17:57:46 +00:00
|
|
|
BuildRequires: libusb-devel
|
2014-05-01 10:48:32 +00:00
|
|
|
BuildRequires: makeinfo
|
2014-12-03 22:40:59 +00:00
|
|
|
BuildRequires: npth-devel >= 0.91
|
2012-03-27 20:59:37 +00:00
|
|
|
BuildRequires: openldap2-devel
|
2014-11-13 21:15:23 +00:00
|
|
|
BuildRequires: pkg-config
|
2009-01-13 17:57:46 +00:00
|
|
|
BuildRequires: readline-devel
|
2015-12-04 15:26:14 +00:00
|
|
|
BuildRequires: sqlite3-devel >= 3.7
|
2009-01-13 17:57:46 +00:00
|
|
|
BuildRequires: zlib-devel
|
2015-12-04 15:26:14 +00:00
|
|
|
# Add an explicit runtime dependency to match boo#955982
|
|
|
|
Requires: libassuan0 >= 2.4.1
|
2012-03-27 20:59:37 +00:00
|
|
|
Requires: pinentry
|
2014-11-13 21:15:23 +00:00
|
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
|
|
|
PreReq: %{install_info_prereq}
|
|
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
Obsoletes: dirmngr < 2.1.0
|
|
|
|
Provides: dirmngr = %{version}
|
2012-03-27 20:59:37 +00:00
|
|
|
Provides: gnupg = %{version}
|
|
|
|
Provides: gpg = 1.4.9
|
|
|
|
Provides: newpg
|
2010-07-19 21:58:25 +00:00
|
|
|
# special feature needed for OBS signd
|
|
|
|
Provides: gpg2_signd_support
|
2009-11-16 17:35:33 +00:00
|
|
|
Obsoletes: gpg < 1.4.9
|
2007-01-15 23:15:33 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
GnuPG 2 is the successor of "GnuPG" or GPG. It provides: GPGSM,
|
|
|
|
gpg-agent, and a keybox library.
|
|
|
|
|
2008-03-26 15:13:07 +00:00
|
|
|
%lang_package
|
2014-11-13 21:15:23 +00:00
|
|
|
|
2007-01-15 23:15:33 +00:00
|
|
|
%prep
|
2014-11-13 21:15:23 +00:00
|
|
|
%setup -q -n gnupg-%{version}
|
2013-08-20 12:21:25 +00:00
|
|
|
%patch4 -p1
|
2009-01-13 17:57:46 +00:00
|
|
|
%patch5 -p1
|
2010-07-30 12:51:31 +00:00
|
|
|
%patch6 -p1
|
2013-05-16 10:06:39 +00:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2014-05-01 10:48:32 +00:00
|
|
|
%patch11 -p1
|
2007-01-15 23:15:33 +00:00
|
|
|
|
|
|
|
%build
|
2008-02-15 00:20:58 +00:00
|
|
|
# build PIEs (position independent executables) for address space randomisation:
|
2014-11-13 21:15:23 +00:00
|
|
|
%ifarch s390x %{sparc}
|
2008-02-15 00:20:58 +00:00
|
|
|
# s390x needs to use the large PIE model (at least for gpg.c):
|
2014-11-13 21:15:23 +00:00
|
|
|
PIE="-fPIE"
|
2008-02-15 00:20:58 +00:00
|
|
|
%else
|
2011-08-31 10:03:36 +00:00
|
|
|
PIE="-fpie"
|
2008-02-15 00:20:58 +00:00
|
|
|
%endif
|
2011-08-31 10:03:36 +00:00
|
|
|
export CFLAGS="%{optflags} ${PIE}"
|
|
|
|
export LDFLAGS=-pie
|
2015-09-11 07:41:47 +00:00
|
|
|
date=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE99})
|
2011-08-19 05:00:05 +00:00
|
|
|
%configure \
|
2009-01-13 17:57:46 +00:00
|
|
|
--libexecdir=%{_libdir} \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
2014-11-13 21:15:23 +00: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 03:55:31 +00:00
|
|
|
--enable-ldap \
|
|
|
|
--enable-gpgsm=yes \
|
|
|
|
--enable-gpg \
|
2014-06-04 07:49:19 +00:00
|
|
|
--enable-gpgtar \
|
2014-12-25 17:08:58 +00:00
|
|
|
--enable-large-rsa \
|
|
|
|
--enable-large-secmem \
|
2015-09-11 07:41:47 +00:00
|
|
|
--with-gnu-ld \
|
|
|
|
--enable-build-timestamp=$date
|
2011-08-19 05:00:05 +00:00
|
|
|
|
2010-11-01 15:53:14 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:15:33 +00:00
|
|
|
|
|
|
|
%install
|
2014-11-13 21:15:23 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/gnupg/
|
2009-01-13 17:57:46 +00:00
|
|
|
# bnc#391347
|
2014-11-13 21:15:23 +00:00
|
|
|
install -m 644 doc/examples/gpgconf.conf %{buildroot}%{_sysconfdir}/gnupg
|
2009-01-13 17:57:46 +00:00
|
|
|
# delete to prevent fdupes from creating cross-partition hardlink
|
2014-11-13 21:15:23 +00:00
|
|
|
rm -rf %{buildroot}%{_docdir}/gpg2/examples/gpgconf.conf
|
|
|
|
rm %{buildroot}%{_infodir}/dir
|
2007-06-21 19:56:01 +00:00
|
|
|
# compat symlinks
|
2014-11-13 21:15:23 +00: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-25 23:46:05 +00:00
|
|
|
# fix rpmlint invalid-lc-messages-dir:
|
2014-11-13 21:15:23 +00:00
|
|
|
rm -rf %{buildroot}/%{_datadir}/locale/en@{bold,}quot
|
2009-01-13 17:57:46 +00:00
|
|
|
# additional files to documentation directory
|
2014-11-13 21:15:23 +00:00
|
|
|
install -m 644 AUTHORS COPYING ChangeLog NEWS THANKS TODO doc/FAQ %{buildroot}/%{_docdir}/%{name}
|
2014-02-15 10:10:41 +00:00
|
|
|
# install scdaemon to %{_bindir} (bnc#863645)
|
|
|
|
mv %{buildroot}%{_libdir}/scdaemon %{buildroot}%{_bindir}
|
2014-11-11 10:52:31 +00:00
|
|
|
mv %{buildroot}%{_libdir}/dirmngr_ldap %{buildroot}%{_bindir}
|
2015-03-19 16:30:03 +00:00
|
|
|
# install legacy tools
|
|
|
|
install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
|
|
|
|
install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
|
|
|
|
|
2007-10-25 23:46:05 +00:00
|
|
|
%find_lang gnupg2
|
2008-02-15 00:20:58 +00:00
|
|
|
%if 0%{?suse_version} > 1020
|
2014-11-13 21:15:23 +00:00
|
|
|
%fdupes %{buildroot}
|
2008-02-08 17:45:44 +00:00
|
|
|
%endif
|
2007-10-25 23:46:05 +00:00
|
|
|
|
|
|
|
%check
|
2011-10-01 19:41:38 +00:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2015-09-11 07:41:47 +00:00
|
|
|
make %{?_smp_mflags} check
|
2011-10-01 19:41:38 +00:00
|
|
|
%endif
|
2007-01-15 23:15:33 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
|
|
|
|
2015-05-17 11:50:57 +00:00
|
|
|
%preun
|
2007-01-15 23:15:33 +00:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
|
|
|
|
2008-03-26 15:13:07 +00:00
|
|
|
%files lang -f gnupg2.lang
|
2014-11-13 21:15:23 +00:00
|
|
|
%defattr(-,root,root)
|
2008-03-26 15:13:07 +00:00
|
|
|
|
|
|
|
%files
|
2007-01-15 23:15:33 +00:00
|
|
|
%defattr(-,root,root)
|
2015-09-11 07:41:47 +00:00
|
|
|
%{_infodir}/gnupg*
|
|
|
|
%{_mandir}/*/*.gz
|
2009-01-13 17:57:46 +00:00
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%{_bindir}/*
|
2007-01-29 23:52:49 +00:00
|
|
|
%{_libdir}/[^d]*
|
2009-01-13 17:57:46 +00:00
|
|
|
%{_sbindir}/addgnupghome
|
|
|
|
%{_sbindir}/applygnupgdefaults
|
|
|
|
%{_datadir}/gnupg
|
|
|
|
%dir %{_sysconfdir}/gnupg
|
|
|
|
%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
|
2008-01-10 13:14:30 +00:00
|
|
|
|
2007-03-30 00:08:34 +00:00
|
|
|
%changelog
|