Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37476526
en ru br
ALT Linux repos
S:2.4.3-alt1
5.0: 2.0.11-alt2.M50.1
4.1: 2.0.14-alt1.M41.1
4.0: 2.0.9-alt2.M40.1
3.0: 1.9.17-alt2

Other repositories
Upstream:2.0.8

Group :: Text tools
RPM: gnupg2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define gpg_program 1
%define glibc_code_ver %{get_version glibc-core}
%add_findreq_skiplist %_sysconfdir/X11/xinit.d/*
%define req_assuan_ver 1.0.4

Name: gnupg2
Version: 2.0.14
Release: alt1.M41.1

Group: Text tools
Summary: The GNU Privacy Guard suite
License: GPL
Url: http://www.gnupg.org/

PreReq(post,preun): info-install

Provides: newpg = %version-%release
Obsoletes: newpg < %version-%release

%if %gpg_program
%else
Requires: gnupg
%endif
#Requires: libassuan >= %req_assuan_ver
Requires: %name-agent = %version-%release
Requires: %name-common = %version-%release

Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%version.tar.bz2
Source1: gnupg-agent.sh
Patch1: gnupg-1.6.9-xloadimage.patch
Patch2: gnupg-1.9.15-gnupg2-info.patch
Patch3: gnupg-1.9.20-alt-libpcsclite.patch
Patch4: gnupg-2.0.9-alt-dont-req-new-tools.patch
Patch5: gnupg-2.0.10-alt-agent-fix-password-requiest.patch
Patch6: gnupg-2.0.16-realloc-bug.patch

# Automatically added by buildreq on Tue Apr 06 2004 (-bi)

#BuildRequires: OpenSP alternatives docbook-dtds docbook-style-dsssl docbook-utils libassuan-devel libcap-devel libgcrypt-devel libgpg-error-devel libksba-devel libopensc-devel libpcsclite-devel libpth-devel libusb-devel sgml-common zlib-devel
BuildRequires: OpenSP alternatives docbook-dtds docbook-style-dsssl
BuildRequires: docbook-utils libcap-devel libgcrypt-devel >= 1.4
BuildRequires: libassuan-devel >= %req_assuan_ver
BuildRequires: libgpg-error-devel libksba-devel >= 0.9.13
#BuildRequires: libopensc-devel libpcsclite-devel
BuildRequires: libusb-devel
BuildRequires: libpth-devel
BuildRequires: sgml-common zlib-devel
BuildRequires: libldap-devel

%description
GnuPG is a set of programs for public key encryption and digital signa-
tures.  The program most users will want to use is the OpenPGP  command
line  tool, named gpg2.  gpgvis a stripped down version of gpg2 with no
encryption functionality, used only  to  verify  signatures  against  a
trusted  keyring.   gpgsm  is the X.509/CMS (for S/MIME) counterpart of
gpg2.

%package agent
Group: Text tools
Summary: Secret key manager for GnuPG
Requires: %name-common = %version-%release
Provides: gnupg-agent = %version-%release
Provides: gpg-agent = %version-%release
Conflicts: gnupg2 <= 2.0.11-alt1
%description agent
gpg-agent is a daemon to manage  secret  (private)  keys  independently
from  any  protocol.  It is used as a backend for gpg and gpgsm as well
as for a couple of other utilities. It may also emulate the ssh-agent.

%package common
Group: Text tools
Summary: he GNU Privacy Guard suite common programs
Provides: %name-gpg = %version-%release
Conflicts: gnupg2 <= 2.0.11-alt1
%description common
GnuPG is a set of programs for public key encryption and digital signa-
tures.  The program most users will want to use is the OpenPGP  command
line  tool, named gpg2.  gpgvis a stripped down version of gpg2 with no
encryption functionality, used only  to  verify  signatures  against  a
trusted  keyring.   gpgsm  is the X.509/CMS (for S/MIME) counterpart of
gpg2.



%prep
%setup -q -n gnupg-%version
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
#mv -f doc/gnupg.texi doc/gnupg2.texi
#./autogen.sh

%build
%add_optflags -fno-strict-aliasing
%configure \
--disable-rpath \
--with-capabilities \
%if %gpg_program
--enable-gpg \
%else
--disable-gpg \
%endif
--enable-m-guard \
--disable-m-debug \
--enable-symcryptrun \
--without-included-gettext \
--enable-threads=posix \
--with-mailprog=%_sbindir/sendmail \
--with-pinentry-pgm=%_bindir/pinentry \
--libexecdir=%_libdir/gnupg \
--with-pkits-tests
%make MAKEINFOFLAGS="--no-split"

%install
%make install DESTDIR=%buildroot

mkdir -p %buildroot/%_sysconfdir/profile.d/ %buildroot/%_sysconfdir/X11/xinit.d/
install -m 0755 %SOURCE1 %buildroot/%_sysconfdir/profile.d/gnupg-agent.sh
ln -s ../../profile.d/gnupg-agent.sh %buildroot/%_sysconfdir/X11/xinit.d/gnupg-agent.sh

pushd %buildroot/%_infodir
for f in gnupg.*
do
   mv $f `echo "$f" | sed "s|^gnupg\.|gnupg2.|"`
done
popd

%if %gpg_program
%else
   ln -s gpg %buildroot/%_bindir/gpg2
%endif

%find_lang %name


%files
%files agent
%doc agent/ChangeLog
%doc %_man1dir/*agent.1*
%config %_sysconfdir/profile.d/gnupg-agent.sh
%_bindir/gpg-agent
%_libdir/gnupg/gpg-preset-passphrase
%_libdir/gnupg/gpg-protect-tool

%files common -f %name.lang
%doc README TODO ChangeLog NEWS AUTHORS THANKS
%doc %_man1dir/*.1*
%exclude %_man1dir/gpg-zip.*
%exclude %_man1dir/*agent.1*
%doc %_man8dir/*.8*
%_bindir/*
%exclude %_bindir/gpg-agent
%_sbindir/*
%_libdir/gnupg/
%exclude %_libdir/gnupg/gpg-preset-passphrase
%exclude %_libdir/gnupg/gpg-protect-tool
%_datadir/gnupg/
%_infodir/*.info*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin