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
|
|
|
#
|
2014-02-15 11:10:41 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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
|
2014-06-04 09:49:19 +02:00
|
|
|
Version: 2.0.23
|
2012-03-27 22:59:37 +02:00
|
|
|
Release: 0
|
2013-05-12 18:46:27 +02:00
|
|
|
BuildRequires: automake >= 1.10
|
2010-01-29 15:57:14 +01:00
|
|
|
BuildRequires: expect
|
2010-01-28 15:14:26 +01:00
|
|
|
BuildRequires: fdupes
|
2012-03-27 22:59:37 +02:00
|
|
|
BuildRequires: libadns-devel
|
|
|
|
BuildRequires: libassuan-devel >= 2.0.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
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.4.0
|
2013-08-20 14:21:25 +02:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.11
|
2010-07-20 08:41:39 +02:00
|
|
|
BuildRequires: libksba-devel >= 1.0.7
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: libusb-devel
|
2014-05-01 12:48:32 +02:00
|
|
|
BuildRequires: makeinfo
|
2012-03-27 22:59:37 +02:00
|
|
|
BuildRequires: openldap2-devel
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: zlib-devel
|
2010-01-28 15:14:26 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-07-19 23:58:25 +02:00
|
|
|
BuildRequires: libpth-devel >= 1.3.7
|
2010-01-28 15:14:26 +01:00
|
|
|
%else
|
2010-07-19 23:58:25 +02:00
|
|
|
BuildRequires: pth >= 1.3.7
|
2010-01-28 15:14:26 +01:00
|
|
|
%endif
|
2007-10-26 01:46:05 +02:00
|
|
|
Url: http://www.gnupg.org/aegypten2/
|
2007-01-16 00:15:33 +01:00
|
|
|
PreReq: %install_info_prereq
|
2012-03-27 22:59:37 +02:00
|
|
|
Requires: dirmngr
|
|
|
|
Requires: pinentry
|
2009-12-16 16:50:59 +01:00
|
|
|
Recommends: %name-lang = %{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
|
|
|
Summary: GnuPG 2
|
2012-03-27 22:59:37 +02:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Networking/Security
|
2013-03-27 16:24:40 +01:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
|
2013-05-12 18:46:27 +02:00
|
|
|
Source2: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
2014-06-04 09:49:19 +02:00
|
|
|
Source3: https://www.gnupg.org/signature_key.html#/%{name}.keyring
|
2011-08-08 00:04:43 +02:00
|
|
|
Patch1: gnupg-2.0.18-tmpdir.diff
|
2010-07-30 14:51:31 +02:00
|
|
|
Patch2: gnupg-2.0.4-install_tools.diff
|
|
|
|
Patch4: gnupg-2.0.9-langinfo.patch
|
2011-08-08 00:04:43 +02:00
|
|
|
Patch5: gnupg-2.0.18-files-are-digests.patch
|
2010-07-30 14:51:31 +02:00
|
|
|
Patch6: gnupg-dont-fail-with-seahorse-agent.patch
|
2013-05-16 12:06:39 +02:00
|
|
|
Patch8: gnupg-set_umask_before_open_outfile.patch
|
|
|
|
Patch9: gnupg-detect_FIPS_mode.patch
|
2013-06-17 14:41:39 +02:00
|
|
|
# PATCH-FIX-OPENSUSE coolo@suse.de -- automake 1.13 already includes $SHELL
|
|
|
|
Patch10: gnupg-2.0.20-automake113.diff
|
2014-05-01 12:48:32 +02:00
|
|
|
Patch11: gnupg-add_legacy_FIPS_mode_option.patch
|
2013-05-16 12:06:39 +02:00
|
|
|
|
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
|
2007-01-16 00:15:33 +01:00
|
|
|
%prep
|
2007-10-26 01:46:05 +02:00
|
|
|
%setup -q -n gnupg-%version
|
2010-07-30 14:51:31 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2
|
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
|
2013-06-17 14:41:39 +02:00
|
|
|
%patch10 -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
|
|
|
autoreconf -fi
|
|
|
|
# build PIEs (position independent executables) for address space randomisation:
|
2009-12-16 16:50:59 +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):
|
2011-08-31 12:03:36 +02: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} \
|
2008-04-06 05:55:31 +02:00
|
|
|
--with-agent-pgm=%{_prefix}/bin/gpg-agent \
|
|
|
|
--with-pinentry-pgm=%{_prefix}/bin/pinentry \
|
|
|
|
--with-dirmngr-pgm=%{_prefix}/bin/dirmngr \
|
2009-01-13 18:57:46 +01:00
|
|
|
--with-scdaemon-pgm=%{_prefix}/bin/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 \
|
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
|
2009-01-13 18:57:46 +01:00
|
|
|
%makeinstall
|
2008-05-22 00:04:27 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/gnupg/
|
2009-01-13 18:57:46 +01:00
|
|
|
# bnc#391347
|
2008-05-22 00:04:27 +02:00
|
|
|
install -m 644 doc/examples/gpgconf.conf $RPM_BUILD_ROOT/etc/gnupg
|
2009-01-13 18:57:46 +01:00
|
|
|
# delete to prevent fdupes from creating cross-partition hardlink
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/gpg2/examples/gpgconf.conf
|
2007-01-16 00:15:33 +01:00
|
|
|
rm $RPM_BUILD_ROOT/usr/share/info/dir
|
2007-06-21 21:56:01 +02:00
|
|
|
# compat symlinks
|
|
|
|
ln -sf gpg2 $RPM_BUILD_ROOT/usr/bin/gpg
|
|
|
|
ln -sf gpgv2 $RPM_BUILD_ROOT/usr/bin/gpgv
|
|
|
|
ln -sf gpg2.1 $RPM_BUILD_ROOT/usr/share/man/man1/gpg.1
|
|
|
|
ln -sf gpgv2.1 $RPM_BUILD_ROOT/usr/share/man/man1/gpgv.1
|
2007-10-26 01:46:05 +02:00
|
|
|
# fix rpmlint invalid-lc-messages-dir:
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%_datadir/locale/en@{bold,}quot
|
2009-01-13 18:57:46 +01:00
|
|
|
# additional files to documentation directory
|
2011-03-15 10:49:14 +01:00
|
|
|
install -m 644 AUTHORS COPYING ChangeLog NEWS THANKS TODO doc/FAQ $RPM_BUILD_ROOT/%{_docdir}/%{name}
|
2014-02-15 11:10:41 +01:00
|
|
|
# install scdaemon to %{_bindir} (bnc#863645)
|
|
|
|
mv %{buildroot}%{_libdir}/scdaemon %{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
|
2008-02-08 18:45:44 +01:00
|
|
|
%fdupes %buildroot
|
|
|
|
%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
|
2008-02-15 01:20:58 +01:00
|
|
|
$RPM_BUILD_ROOT/usr/bin/gpgsplit -v -p pubsplit- --uncompress <tests/openpgp/pubring.gpg
|
|
|
|
$RPM_BUILD_ROOT/usr/bin/gpgsplit -v -p secsplit- --secret-to-public --uncompress <tests/openpgp/secring.gpg
|
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
|
|
|
|
|
|
|
|
%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
|