Sisyphus repository
Last update: 16 october 2019 | SRPMs: 17499 | Visits: 15281843
en ru br
ALT Linux repos
5.0: 1.4.9-alt1
4.1: 1.4.9-alt1
4.0: 1.4.9-alt1.M40.1
3.0: 1.4.1-alt1

Group :: File tools
RPM: gnupg

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gnupg
Version: 1.4.23
Release: alt1

Summary: The GNU Privacy Guard
# see e.e. keyserver subdirectory
License: GPLv3+ with exceptions
Group: File tools


Source: gnupg-%version.tar

Source1: pgp2gnupg.html
Source2: gpg-convert-from-106.1
Source3: gpgsplit.1
Source4: lspgpot.1

Patch: gnupg-%version-%release.patch

Provides: gpg, openpgp

# due to gpg-zip(1) manpage (ALT#21411)

Conflicts: gnupg2-common < 2.0.13

%define _sysconfdir /etc/%name
%define _libexecdir %_prefix/libexec
%def_enable ldap

BuildPreReq: bzlib-devel libreadline-devel makeinfo zlib-devel
%if_enabled ldap
BuildPreReq: libldap-devel
%endif #enabled ldap

%package ldap
Group: File tools
Summary: The LDAP keyserver interface for the GNU Privacy Guard
Requires: %name = %version-%release

GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data
and creating digital signatures.  GnuPG has advanced key management
capabilities and is compliant with the proposed OpenPGP Internet standard
described in RFC2440.  Because GnuPG doesn't use any patented algorithms,
it is not compatible with some versions of PGP 2 which use only the
patented IDEA algorithm.  See
for information on using IDEA if the patent does not apply to you and
you need to be compatible with these versions of PGP 2.

%description ldap
This package contains the LDAP keyserver interface
for the GNU Privacy Guard.

%patch -p1
rm po/
install -pm644 %_sourcedir/ doc/FAQ

iconv -f iso-8859-15 -t utf8 < THANKS > THANKS.utf8

sed -i s/pkgdata/sysconf/ g10/
install -p -m644 %_sourcedir/pgp2gnupg.html doc/
%__subst -p 's,/usr\[/local\]/share/gnupg,%_sysconfdir,g' doc/gpg.*
find -type f -print0 |
xargs -r0 grep -FlZ xloadimage -- |
xargs -r0 %__subst -p s/xloadimage/xli/g --
find -type f -print0 |
xargs -r0 grep -FlZ docbook-to-man -- |
xargs -r0 %__subst -p s/docbook-to-man/docbook2man/g --
xz -9k NEWS doc/{DETAILS,FAQ,samplekeys.asc}

rm aclocal.m4
%add_optflags -fno-strict-aliasing
export CC='%__cc -std=gnu99'
autoreconf -fisv
rm -r zlib bzlib
%__subst -p 's/^mkinstalldirs = .*/mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS)/' po/
%configure \
--enable-static-rnd=linux \
--with-mailprog=%_sbindir/sendmail \
--program-prefix= \
--enable-noexecstack \
%{subst_enable ldap} \
make -C po update-gmo

%make_build -k check

install -pm755 tools/lspgpot %buildroot%_bindir/lspgpot
install -pm755 tools/convert-from-106 %buildroot%_bindir/gpg-convert-from-106
install -pm644 %_sourcedir/{gpg-convert-from-106,gpgsplit,lspgpot}.1 \

# Remove from %_datadir/%name what we install into %_docdir/%name-%version

rm -rv %buildroot%_datadir/%name

%find_lang %name

/usr/sbin/groupadd -r -f _gnupg

%files -f %name.lang
%attr(2711,root,_gnupg) %_bindir/gpg
%if_enabled ldap
%exclude %_libexecdir/%name/*ldap*
%endif #enabled ldap
%config(noreplace) %_sysconfdir/
%doc doc/{HACKING,OpenPGP,highlights-1.4.txt,*.xz,*.html}
%doc tools/ring-a-party

%if_enabled ldap
%files ldap
%dir %_libexecdir/%name
%endif #enabled ldap


Full changelog you can see here

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