name: gnupg2 Summary: A GNU utility for secure communication and data storage. Version: 2.0.12 Release: 1 License: GPL Group: Productivity/Security Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig Patch0: %{name}-%{version}-aix.patch URL: http://www.gnupg.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libgcrypt-devel, libksba-devel, libassuan, libgpg-error-devel BuildRequires: pth-devel, gettext >= 0.17, bzip2-devel, zlib-devel BuildRequires: curl-devel >= 7.17.1, readline-devel >= 5.2 Requires: libassuan, libgcrypt, libksba, libgpg-error, pth, gettext >= 0.17 Requires: bzip2, zlib Requires: curl >= 7.17.1, readline >= 5.2 Requires: /sbin/install-info, info Provides: gpg, openpgp %description GnuPG is GNU's tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC2440 and the S/MIME standard as described by several RFCs. GnuPG 2.0 is the stable version of GnuPG integrating support for OpenPGP and S/MIME. It does not conflict with an installed 1.x OpenPGP-only version. GnuPG 2.0 is a newer version of GnuPG with additional support for S/MIME. It has a different design philosophy that splits functionality up into several modules. Both versions may be installed simultaneously without any conflict (gpg is called gpg2 in GnuPG 2). In fact, the gpg version from GnuPG 1.x is able to make use of the gpg-agent as included in GnuPG 2 and allows for seamless passphrase caching. The advantage of GnupG 1.x is its smaller size and no dependency on other modules at run and build time. %prep %setup -q -n gnupg-%{version} %patch0 %build export CC=xlc ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --disable-scdaemon \ --with-zlib \ --with-bzip2 \ --with-libcurl gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : sed 's^\.\./g[0-9\.]*/^^g' tools/lspgpot > lspgpot cp lspgpot ${RPM_BUILD_ROOT}%{_bindir}/lspgpot chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/lspgpot rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir gzip --best ${RPM_BUILD_ROOT}%{_infodir}/gnupg*.info* # gpgconf.conf mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/gnupg touch ${RPM_BUILD_ROOT}%{_sysconfdir}/gnupg/gpgconf.conf # files conflicting with gnupg-1.x rm -f ${RPM_BUILD_ROOT}%{_bindir}/gpgsplit rm -f ${RPM_BUILD_ROOT}%{_bindir}/gpg-zip rm -f ${RPM_BUILD_ROOT}%{_datadir}/gnupg/FAQ rm -f ${RPM_BUILD_ROOT}%{_datadir}/gnupg/faq.html ( cd ${RPM_BUILD_ROOT} for dir in bin sbin do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %post if test -s %{_infodir}/%{name}.info.gz ; then /sbin/install-info %{_infodir}/%{name}*.info.gz %{_infodir}/dir || : fi %preun if [ $1 = 0 ]; then if test -s %{_infodir}/%{name}.info.gz ; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi fi %files %defattr(-,root,system) %doc ABOUT-NLS AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README %doc README.SVN THANKS TODO %doc doc/DETAILS doc/HACKING doc/OpenPGP doc/KEYSERVER doc/samplekeys.asc %dir %{_sysconfdir}/gnupg %ghost %config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf %{_bindir}/* %{_sbindir}/* %{_libexecdir}/* %{_datadir}/gnupg/* %{_datadir}/locale/* %{_infodir}/* %{_mandir}/man?/* /usr/bin/* /usr/sbin/* %changelog * Wed Aug 26 2009 Michael Perzl - 2.0.12-1 - updated to version 2.0.12 * Tue Mar 10 2009 Michael Perzl - 2.0.11-1 - updated to version 2.0.11 * Mon Mar 31 2008 Michael Perzl - 2.0.9-1 - updated to version 2.0.9 * Mon Jan 07 2008 Michael Perzl - 2.0.8-1 - updated to version 2.0.8 * Mon Oct 08 2007 Michael Perzl - 2.0.7-1 - first version for AIX V5.1 and higher