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
|
|
|
#
|
2015-02-25 11:39:14 +01:00
|
|
|
# Copyright (c) 2015 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
|
2015-05-12 20:59:59 +02:00
|
|
|
Version: 2.1.4
|
2012-03-27 22:59:37 +02:00
|
|
|
Release: 0
|
2014-11-13 22:15:23 +01: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
|
|
|
|
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
|
2014-12-03 23:40:59 +01:00
|
|
|
BuildRequires: gnutls-devel >= 3.0
|
2012-03-27 22:59:37 +02:00
|
|
|
BuildRequires: libadns-devel
|
2014-12-03 23:40:59 +01:00
|
|
|
BuildRequires: libassuan-devel >= 2.1.0
|
2013-01-16 09:24:58 +01:00
|
|
|
BuildRequires: libbz2-devel
|
2012-03-27 22:59:37 +02:00
|
|
|
BuildRequires: libcurl-devel >= 7.10
|
2014-07-01 23:33:00 +02: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 07:05:14 +01:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.16
|
2014-12-03 23:40:59 +01:00
|
|
|
BuildRequires: libksba-devel >= 1.2.0
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: libusb-devel
|
2014-05-01 12:48:32 +02:00
|
|
|
BuildRequires: makeinfo
|
2014-12-03 23:40:59 +01:00
|
|
|
BuildRequires: npth-devel >= 0.91
|
2012-03-27 22:59:37 +02:00
|
|
|
BuildRequires: openldap2-devel
|
2014-11-13 22:15:23 +01:00
|
|
|
BuildRequires: pkg-config
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: zlib-devel
|
2012-03-27 22:59:37 +02:00
|
|
|
Requires: pinentry
|
2014-11-13 22:15:23 +01: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 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
|
|
|
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 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
|
2008-02-15 01:20:58 +01:00
|
|
|
# build PIEs (position independent executables) for address space randomisation:
|
2014-11-13 22:15:23 +01:00
|
|
|
%ifarch s390x %{sparc}
|
2008-02-15 01:20:58 +01:00
|
|
|
# s390x needs to use the large PIE model (at least for gpg.c):
|
2014-11-13 22:15:23 +01:00
|
|
|
PIE="-fPIE"
|
2008-02-15 01:20:58 +01:00
|
|
|
%else
|
2011-08-31 12:03:36 +02:00
|
|
|
PIE="-fpie"
|
2008-02-15 01:20:58 +01:00
|
|
|
%endif
|
2011-08-31 12:03:36 +02:00
|
|
|
export CFLAGS="%{optflags} ${PIE}"
|
|
|
|
export LDFLAGS=-pie
|
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 \
|
2014-12-25 18:08:58 +01:00
|
|
|
--enable-large-rsa \
|
|
|
|
--enable-large-secmem \
|
2009-01-13 18:57:46 +01:00
|
|
|
--with-gnu-ld
|
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
|
2014-11-13 22:15:23 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
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
|
2009-01-13 18:57:46 +01:00
|
|
|
# additional files to documentation directory
|
2014-11-13 22:15:23 +01:00
|
|
|
install -m 644 AUTHORS COPYING ChangeLog NEWS THANKS TODO doc/FAQ %{buildroot}/%{_docdir}/%{name}
|
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}
|
|
|
|
install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
|
|
|
|
|
2007-10-26 01:46:05 +02:00
|
|
|
%find_lang gnupg2
|
2008-02-15 01:20:58 +01:00
|
|
|
%if 0%{?suse_version} > 1020
|
2014-11-13 22:15:23 +01:00
|
|
|
%fdupes %{buildroot}
|
2008-02-08 18:45:44 +01:00
|
|
|
%endif
|
2007-10-26 01:46:05 +02:00
|
|
|
|
|
|
|
%check
|
2011-10-01 21:41:38 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2007-10-26 01:46:05 +02:00
|
|
|
make check
|
2011-10-01 21:41:38 +02:00
|
|
|
%endif
|
2007-01-16 00:15:33 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
|
|
|
|
2008-03-26 16:13:07 +01:00
|
|
|
%files lang -f gnupg2.lang
|
2014-11-13 22:15:23 +01:00
|
|
|
%defattr(-,root,root)
|
2008-03-26 16:13:07 +01:00
|
|
|
|
|
|
|
%files
|
2007-01-16 00:15:33 +01:00
|
|
|
%defattr(-,root,root)
|
2009-01-13 18:57:46 +01:00
|
|
|
%doc %{_infodir}/gnupg*
|
2007-01-29 16:59:51 +01:00
|
|
|
%doc %{_mandir}/*/*.gz
|
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
|
|
|
|
%{_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
|