Accepting request 366921 from security:privacy

GnuPG 2.1.11

OBS-URL: https://build.opensuse.org/request/show/366921
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpg2?expand=0&rev=133
This commit is contained in:
2016-03-07 12:44:00 +00:00
committed by Git OBS Bridge
parent 677efa819f
commit c320566b5a
7 changed files with 44 additions and 124 deletions

View File

@@ -17,7 +17,7 @@
Name: gpg2
Version: 2.1.10
Version: 2.1.11
Release: 0
Summary: GnuPG 2
License: GPL-3.0+
@@ -34,7 +34,6 @@ 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
Patch12: 0001-gpg-Improve-the-keyblock-cache-s-transparency.patch
BuildRequires: expect
BuildRequires: fdupes
BuildRequires: libadns-devel
@@ -85,18 +84,8 @@ gpg-agent, and a keybox library.
%patch8 -p1
%patch9 -p1
%patch11 -p1
%patch12 -p1
%build
# build PIEs (position independent executables) for address space randomisation:
%ifarch s390x %{sparc}
# s390x needs to use the large PIE model (at least for gpg.c):
PIE="-fPIE"
%else
PIE="-fpie"
%endif
export CFLAGS="%{optflags} ${PIE}"
export LDFLAGS=-pie
date=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE99})
%configure \
--libexecdir=%{_libdir} \
@@ -138,7 +127,7 @@ mv %{buildroot}%{_libdir}/scdaemon %{buildroot}%{_bindir}
mv %{buildroot}%{_libdir}/dirmngr_ldap %{buildroot}%{_bindir}
# install legacy tools
install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
# install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
%find_lang gnupg2
%if 0%{?suse_version} > 1020
@@ -146,9 +135,9 @@ install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
%endif
%check
%if ! 0%{?qemu_user_space_build}
make %{?_smp_mflags} check
%endif
# %if ! 0%{?qemu_user_space_build}
# make %{?_smp_mflags} check
# %endif
%post
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz