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
|
|
|
#
|
2011-03-15 10:49:14 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-15 01:20:58 +01:00
|
|
|
|
2007-01-16 00:15:33 +01:00
|
|
|
Name: gpg2
|
2011-08-08 00:04:43 +02:00
|
|
|
Version: 2.0.18
|
2011-09-01 14:51:04 +02:00
|
|
|
Release: 4
|
2010-01-29 15:57:14 +01:00
|
|
|
BuildRequires: expect
|
2010-01-28 15:14:26 +01:00
|
|
|
BuildRequires: fdupes
|
2010-07-20 08:41:39 +02:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.7
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.4.0
|
2010-07-20 08:41:39 +02:00
|
|
|
BuildRequires: libksba-devel >= 1.0.7
|
2010-07-19 23:58:25 +02:00
|
|
|
BuildRequires: libassuan-devel >= 2.0.0
|
2009-01-13 18:57:46 +01:00
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: libadns-devel
|
|
|
|
BuildRequires: openldap2-devel
|
2010-07-19 23:58:25 +02:00
|
|
|
BuildRequires: libcurl-devel >= 7.10
|
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/
|
2009-12-16 16:50:59 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:15:33 +01:00
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
PreReq: %install_info_prereq
|
2007-10-26 01:46:05 +02:00
|
|
|
AutoReqProv: on
|
2009-12-16 16:50:59 +01:00
|
|
|
Requires: pinentry dirmngr
|
|
|
|
Recommends: %name-lang = %{version}
|
2008-04-06 05:55:31 +02:00
|
|
|
Provides: newpg gpg = 1.4.9 gnupg = %{version}
|
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
|
2009-01-13 18:57:46 +01:00
|
|
|
Source: gnupg-%{version}.tar.bz2
|
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
|
|
|
|
Patch3: gnupg-2.0.9-RSA_ES.patch
|
|
|
|
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
|
2011-08-19 07:00:05 +02:00
|
|
|
Patch7: gnupg-broken-curl-test.patch
|
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
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4
|
2009-01-13 18:57:46 +01:00
|
|
|
%patch5 -p1
|
2010-07-30 14:51:31 +02:00
|
|
|
%patch6 -p1
|
2011-08-19 07:00:05 +02:00
|
|
|
%patch7
|
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 \
|
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}
|
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
|
|
|
|
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
|
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
|