OBS User unknown
2008-02-15 00:20:58 +00:00
committed by Git OBS Bridge
parent 659e3cbe2c
commit 7823c8db2e
3 changed files with 23 additions and 60 deletions

View File

@@ -10,9 +10,10 @@
# norootforbuild
Name: gpg2
Version: 2.0.8
Release: 11
Release: 14
#krb5
BuildRequires: expect fdupes libassuan-devel pth
BuildRequires: libgcrypt-devel libksba-devel opensc-devel
@@ -61,7 +62,16 @@ Authors:
%patch9
%build
CFLAGS="%{optflags}" \
# Required for patch7:
autoreconf -fi
# build PIEs (position independent executables) for address space randomisation:
# en.wikipedia.org/wiki/Position_independent_code#Position-independent_executables
%ifarch s390x
# s390x needs to use the large PIE model (at least for gpg.c):
CFLAGS="%{optflags} -fPIE" LDFLAGS=-pie \
%else
CFLAGS="%{optflags} -fpie" LDFLAGS=-pie \
%endif
./configure \
--prefix=%{_prefix} \
--sysconfdir=/etc \
@@ -96,12 +106,14 @@ ln -sf gpgv2.1 $RPM_BUILD_ROOT/usr/share/man/man1/gpgv.1
# fix rpmlint invalid-lc-messages-dir:
rm -rf $RPM_BUILD_ROOT/%_datadir/locale/en@{bold,}quot
%find_lang gnupg2
%if 0%suse_version > 1020
%if 0%{?suse_version} > 1020
%fdupes %buildroot
%endif
%check
make check
$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
%post
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
@@ -121,6 +133,8 @@ make check
/usr/share/gnupg
%changelog
* Tue Feb 12 2008 bk@suse.de
- install gpg-zip and gpgsplit again and use -pie for randomisation
* Wed Feb 06 2008 bk@suse.de
- add selected upstream fixes and fix gcc and rpmlint warnings
* Tue Jan 08 2008 sassmann@suse.de