2005-10-11 15:35:58 +00:00
|
|
|
|
2006-08-29 17:39:46 +00:00
|
|
|
# Keep an eye on http://bugzilla.redhat.com/175744, in case these dirs go away or change
|
2006-09-07 20:29:06 +00:00
|
|
|
%if "%{?fedora}" > "3" || "%{?rhel}" > "4"
|
2006-02-16 19:50:31 +00:00
|
|
|
%define kde_scriptdir %{_sysconfdir}/kde
|
2006-06-22 17:34:22 +00:00
|
|
|
%else
|
|
|
|
%define kde_scriptdir %{_prefix}
|
|
|
|
%endif
|
2006-02-16 19:50:31 +00:00
|
|
|
|
2006-06-22 15:55:47 +00:00
|
|
|
# define _enable_gpg to build/include gnupg2 binary, currently disabled because:
|
|
|
|
# * currently doesn't build
|
|
|
|
# * has security issue (CVE-2006-3082)
|
|
|
|
# * upstream devs say "You shall not build the gpg part. There is a reason why it is not
|
|
|
|
# enabled by default"
|
|
|
|
#define _enable_gpg --enable-gpg
|
|
|
|
|
2005-12-20 13:32:53 +00:00
|
|
|
Summary: Utility for secure communication and data storage
|
2005-03-03 21:26:03 +00:00
|
|
|
Name: gnupg2
|
2006-07-28 12:56:37 +00:00
|
|
|
Version: 1.9.22
|
2006-09-07 20:29:06 +00:00
|
|
|
Release: 3%{?dist}
|
2005-12-20 13:32:53 +00:00
|
|
|
|
2005-02-01 22:40:35 +00:00
|
|
|
License: GPL
|
2005-03-03 21:26:03 +00:00
|
|
|
Group: Applications/System
|
2006-07-28 12:56:37 +00:00
|
|
|
#Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2
|
|
|
|
#Source1: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2.sig
|
|
|
|
#use mirror(s), since the primary site hardly ever works anymore
|
|
|
|
Source0: http://mirrors.rootmode.com/ftp.gnupg.org/alpha/gnupg/gnupg-%{version}.tar.bz2
|
|
|
|
Source1: http://mirrors.rootmode.com/ftp.gnupg.org/alpha/gnupg/gnupg-%{version}.tar.bz2.sig
|
2005-03-03 21:26:03 +00:00
|
|
|
URL: http://www.gnupg.org/
|
2005-05-10 16:23:11 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2005-12-01 19:53:39 +00:00
|
|
|
# omit broken x86_64 build
|
|
|
|
# ExcludeArch: x86_64
|
|
|
|
|
|
|
|
# enable auto-startup/shutdown of gpg-agent
|
|
|
|
Source10: gpg-agent-startup.sh
|
|
|
|
Source11: gpg-agent-shutdown.sh
|
2005-05-10 16:23:11 +00:00
|
|
|
|
|
|
|
Patch2: gnupg-1.9.16-testverbose.patch
|
2005-02-01 22:40:35 +00:00
|
|
|
|
2005-03-03 21:26:03 +00:00
|
|
|
Obsoletes: newpg < 0.9.5
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(postun): /sbin/install-info
|
|
|
|
|
2005-08-08 19:19:59 +00:00
|
|
|
BuildRequires: libassuan-devel >= 0.6.10
|
2005-03-03 21:26:03 +00:00
|
|
|
BuildRequires: libgcrypt-devel => 1.2.0
|
2005-02-02 17:20:20 +00:00
|
|
|
BuildRequires: libgpg-error-devel => 1.0
|
2006-06-22 15:55:47 +00:00
|
|
|
BuildRequires: libksba-devel >= 0.9.15
|
2005-08-08 19:19:59 +00:00
|
|
|
|
2005-02-02 17:20:20 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: openldap-devel
|
2005-02-01 22:40:35 +00:00
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: pth-devel
|
2005-02-02 17:20:20 +00:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: bzip2-devel
|
2005-02-01 22:40:35 +00:00
|
|
|
Buildrequires: libusb-devel
|
|
|
|
BuildRequires: docbook-utils
|
2006-03-06 18:13:55 +00:00
|
|
|
%if "%{?fedora}" > "3"
|
|
|
|
BuildRequires: pcsc-lite-libs
|
|
|
|
%endif
|
2005-02-01 22:40:35 +00:00
|
|
|
|
2005-03-03 21:26:03 +00:00
|
|
|
Requires: pinentry >= 0.7.1
|
2005-02-01 22:40:35 +00:00
|
|
|
|
2006-06-22 15:55:47 +00:00
|
|
|
%if "%{?_enable_gpg:1}" == "1"
|
2005-03-03 21:26:03 +00:00
|
|
|
Provides: gpg
|
|
|
|
Provides: openpgp
|
2006-06-22 15:55:47 +00:00
|
|
|
%endif
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
%description
|
2005-08-08 19:19:59 +00:00
|
|
|
GnuPG 1.9 is the future version of GnuPG; it is based on some gnupg-1.3
|
|
|
|
code and the previous newpg package. It will eventually lead to a
|
|
|
|
GnuPG 2.0 release. Note that GnuPG 1.4 and 1.9 are not always in sync
|
|
|
|
and thus features and bug fixes done in 1.4 are not necessarily
|
|
|
|
available in 1.9.
|
|
|
|
|
|
|
|
You should use this GnuPG version if you want to use the gpg-agent or
|
|
|
|
gpgsm (the S/MIME variant of gpg). Note that the gpg-agent is also
|
|
|
|
helpful when using the standard gpg versions (1.4.x as well as some of
|
|
|
|
the old 1.2.x). There are no problems installing 1.4 and 1.9
|
|
|
|
alongside; in act we suggest to do this.
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gnupg-%{version}
|
|
|
|
|
2005-12-01 20:02:24 +00:00
|
|
|
%patch2 -p1 -b .testverbose
|
2005-08-26 19:25:52 +00:00
|
|
|
|
2006-03-06 18:13:55 +00:00
|
|
|
# pcsc-lite library major: 0 in 1.2.0, 1 in 1.2.9+ (dlopen()'d in pcsc-wrapper)
|
|
|
|
# Note: this is just the name of the default shared lib to load in scdaemon,
|
|
|
|
# it can use other implementations too (including non-pcsc ones).
|
|
|
|
%if "%{?fedora}" > "3"
|
2006-03-06 20:35:49 +00:00
|
|
|
%global pcsclib %(basename $(ls -1 %{_libdir}/libpcsclite.so.? 2>/dev/null ) 2>/dev/null )
|
2006-03-06 18:13:55 +00:00
|
|
|
%else
|
|
|
|
%define pcsclib libpcsclite.so.0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
sed -i -e 's/"libpcsclite\.so"/"%{pcsclib}"/' scd/{scdaemon,pcsc-wrapper}.c
|
2005-07-02 08:39:51 +00:00
|
|
|
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%configure \
|
2005-05-10 16:23:11 +00:00
|
|
|
--disable-rpath \
|
2005-12-20 13:32:53 +00:00
|
|
|
--disable-dependency-tracking \
|
2006-06-22 15:55:47 +00:00
|
|
|
%{?_enable_gpg}
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2005-02-02 17:20:20 +00:00
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
%check ||:
|
2005-12-01 20:59:12 +00:00
|
|
|
## Allows for better debugability (doesn't work, fixme)
|
2005-12-01 20:37:37 +00:00
|
|
|
# echo "debug-allow-core-dumps" >> tests/gpgsm.conf
|
2005-12-01 20:59:12 +00:00
|
|
|
# (sometimes?) expect one failure (reported upstream)
|
2005-12-20 13:32:53 +00:00
|
|
|
make check ||:
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2005-12-01 19:53:39 +00:00
|
|
|
# enable auto-startup/shutdown of gpg-agent
|
2006-02-16 19:50:31 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{kde_scriptdir}/{env,shutdown}
|
|
|
|
install -p -m0755 %{SOURCE10} $RPM_BUILD_ROOT%{kde_scriptdir}/env/
|
|
|
|
install -p -m0755 %{SOURCE11} $RPM_BUILD_ROOT%{kde_scriptdir}/shutdown/
|
2005-12-01 19:53:39 +00:00
|
|
|
|
2005-02-01 22:40:35 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2005-08-26 18:45:02 +00:00
|
|
|
## Unpackaged files
|
2005-02-01 22:40:35 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
2005-08-26 18:45:02 +00:00
|
|
|
/sbin/install-info %{_infodir}/gnupg.info %{_infodir}/dir ||:
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2005-08-26 18:45:02 +00:00
|
|
|
/sbin/install-info --delete %{_infodir}/gnupg.info %{_infodir}/dir ||:
|
2005-02-01 22:40:35 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2005-12-20 13:32:53 +00:00
|
|
|
%defattr(-,root,root,-)
|
2005-02-01 22:40:35 +00:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
2006-06-22 15:55:47 +00:00
|
|
|
%if "%{?_enable_gpg:1}" == "1"
|
2005-05-10 16:23:11 +00:00
|
|
|
#docs say to install suid root, but we won't, for now.
|
2005-02-01 22:40:35 +00:00
|
|
|
#attr(4755,root,root) %{_bindir}/gpg2
|
|
|
|
%{_bindir}/gpg2
|
2005-08-08 19:19:59 +00:00
|
|
|
%{_bindir}/gpgv2
|
2006-06-22 15:55:47 +00:00
|
|
|
%endif
|
2005-05-10 16:23:11 +00:00
|
|
|
%{_bindir}/gpg-connect-agent
|
2005-02-01 22:40:35 +00:00
|
|
|
%{_bindir}/gpg-agent
|
|
|
|
%{_bindir}/gpgconf
|
2005-07-02 08:39:51 +00:00
|
|
|
%{_bindir}/gpgkey2ssh
|
2005-12-20 13:32:53 +00:00
|
|
|
%{_bindir}/gpgparsemail
|
2005-02-01 22:40:35 +00:00
|
|
|
%{_bindir}/gpgsm*
|
|
|
|
%{_bindir}/kbxutil
|
|
|
|
%{_bindir}/scdaemon
|
|
|
|
%{_bindir}/watchgnupg
|
|
|
|
%{_sbindir}/*
|
2005-11-30 17:19:56 +00:00
|
|
|
%{_datadir}/gnupg/
|
|
|
|
%{_libdir}/gnupg/
|
2005-02-01 22:40:35 +00:00
|
|
|
%{_libexecdir}/*
|
|
|
|
%{_infodir}/*
|
2006-02-16 19:50:31 +00:00
|
|
|
%{kde_scriptdir}/env/*.sh
|
|
|
|
%{kde_scriptdir}/shutdown/*.sh
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
|
2005-05-10 16:23:11 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
2005-02-01 22:40:35 +00:00
|
|
|
%changelog
|
2006-09-07 20:29:06 +00:00
|
|
|
* Thu Sep 07 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-3
|
|
|
|
- fc6 respin (for libksba-1.0)
|
|
|
|
|
2006-08-29 17:39:46 +00:00
|
|
|
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-2
|
|
|
|
- fc6 respin
|
|
|
|
|
2006-07-28 12:56:37 +00:00
|
|
|
* Fri Jul 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-1
|
|
|
|
- 1.9.22
|
|
|
|
|
2006-06-22 16:38:21 +00:00
|
|
|
* Thu Jun 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.21-3
|
|
|
|
- fix "gpg-agent not restarted after kde session crash/killed (#196327)
|
|
|
|
|
2006-06-22 16:02:58 +00:00
|
|
|
* Thu Jun 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.21-2
|
2006-06-22 15:55:47 +00:00
|
|
|
- 1.9.21
|
|
|
|
- omit gpg2 binary to address CVS-2006-3082 (#196190)
|
|
|
|
|
2006-03-06 18:13:55 +00:00
|
|
|
* Mon Mar 6 2006 Ville Skyttä <ville.skytta at iki.fi>> 1.9.20-3
|
2006-06-22 15:55:47 +00:00
|
|
|
- Don't hardcode pcsc-lite lib name (#184123)
|
2006-03-06 18:13:55 +00:00
|
|
|
|
2006-02-16 19:50:31 +00:00
|
|
|
* Thu Feb 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.20-2
|
2006-06-22 17:34:22 +00:00
|
|
|
- fc4+: use /etc/kde/(env|shutdown) for scripts (#175744)
|
2006-02-16 19:50:31 +00:00
|
|
|
|
2006-02-10 14:00:42 +00:00
|
|
|
* Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net>
|
|
|
|
- fc5: gcc/glibc respin
|
|
|
|
|
2005-12-20 13:32:53 +00:00
|
|
|
* Tue Dec 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.20-1
|
|
|
|
- 1.9.20
|
|
|
|
|
2005-12-01 21:01:48 +00:00
|
|
|
* Thu Dec 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-8
|
2005-12-01 19:53:39 +00:00
|
|
|
- include gpg-agent-(startup|shutdown) scripts (#136533)
|
|
|
|
- BR: libksba-devel >= 1.9.12
|
2005-12-01 21:01:48 +00:00
|
|
|
- %%check: be permissive about failures (for now)
|
2005-11-30 17:19:56 +00:00
|
|
|
|
|
|
|
* Wed Nov 30 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-3
|
2005-11-30 14:37:11 +00:00
|
|
|
- BR: libksba-devel >= 1.9.13
|
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
* Tue Oct 11 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-2
|
2005-10-11 15:49:34 +00:00
|
|
|
- back to BR: libksba-devel = 1.9.11
|
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
* Tue Oct 11 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-1
|
2005-10-11 15:35:58 +00:00
|
|
|
- 1.9.19
|
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-9
|
2005-08-26 19:25:52 +00:00
|
|
|
- configure: NEED_KSBA_VERSION=0.9.12 -> 0.9.11
|
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-7
|
2005-08-26 18:45:02 +00:00
|
|
|
- re-enable 'make check', rebuild against (older) libksba-0.9.11
|
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
* Tue Aug 9 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-6
|
2005-08-09 16:06:27 +00:00
|
|
|
- don't 'make check' by default (regular builds pass, but FC4/5+plague fails)
|
|
|
|
|
2005-11-30 17:19:56 +00:00
|
|
|
* Mon Aug 8 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-5
|
2005-08-08 19:19:59 +00:00
|
|
|
- 1.9.18
|
|
|
|
- drop pth patch (--enable-gpg build fixed)
|
|
|
|
- update description (from README)
|
|
|
|
|
2005-07-02 08:39:51 +00:00
|
|
|
* Fri Jul 1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.9.17-1
|
|
|
|
- 1.9.17, signal info patch applied upstream (#162264).
|
|
|
|
- Patch to fix lvalue build error with gcc4 (upstream #485).
|
|
|
|
- Patch scdaemon and pcsc-wrapper to load the versioned (non-devel)
|
|
|
|
pcsc-lite lib by default.
|
|
|
|
|
2005-05-13 13:10:18 +00:00
|
|
|
* Fri May 13 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.16-3
|
|
|
|
- Include upstream's patch for signal.c.
|
|
|
|
|
2005-05-10 16:23:11 +00:00
|
|
|
* Tue May 10 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.16-1
|
|
|
|
- Merge changes from Rex's 1.9.16-1 (Thu Apr 21):
|
|
|
|
- opensc support unconditional
|
|
|
|
- remove hard-coded .gz from %%post/%%postun
|
|
|
|
- add %%check section
|
|
|
|
- add pth patch
|
|
|
|
- Put back patch modified from 1.9.15-4 to make tests verbose
|
|
|
|
and change signal.c to describe received signals better.
|
|
|
|
|
2005-05-08 19:41:17 +00:00
|
|
|
* Sun May 8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- Drop patch0 again.
|
|
|
|
|
2005-05-08 19:07:12 +00:00
|
|
|
* Sun May 8 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.15-4
|
|
|
|
- Add patch0 temporarily to get some output from failing test.
|
|
|
|
|
2005-05-07 15:58:59 +00:00
|
|
|
* Sat May 7 2005 David Woodhouse <dwmw2@infradead.org> 1.9.15-3
|
|
|
|
- Rebuild.
|
|
|
|
|
2005-04-06 22:11:38 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-02-02 17:20:20 +00:00
|
|
|
* Tue Feb 1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:1.9.15-1
|
2005-02-01 22:40:35 +00:00
|
|
|
- Make install-info in scriptlets less noisy.
|
|
|
|
|
2005-02-02 17:20:20 +00:00
|
|
|
* Tue Jan 18 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.15-0.fdr.1
|
|
|
|
- 1.9.15
|
|
|
|
|
|
|
|
* Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.14-0.fdr.2
|
|
|
|
- note patch/hack to build against older ( <1.0) libgpg-error-devel
|
|
|
|
|
2005-02-01 22:40:35 +00:00
|
|
|
* Thu Jan 06 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.14-0.fdr.1
|
|
|
|
- 1.9.14
|
|
|
|
- enable opensc support
|
|
|
|
- BR: libassuan-devel >= 0.6.9
|
|
|
|
|
|
|
|
* Thu Oct 21 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.4
|
2005-03-03 21:26:03 +00:00
|
|
|
- remove suid.
|
2005-02-01 22:40:35 +00:00
|
|
|
|
|
|
|
* Thu Oct 21 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.3
|
|
|
|
- remove Provides: newpg
|
|
|
|
|
|
|
|
* Wed Oct 20 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.2
|
|
|
|
- Requires: pinentry
|
|
|
|
- gpg2 suid
|
|
|
|
- update description
|
|
|
|
|
|
|
|
* Tue Oct 19 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.1
|
2005-03-03 21:26:03 +00:00
|
|
|
- first try
|
2005-02-01 22:40:35 +00:00
|
|
|
- leave out opensc support (for now), enable --with-opensc
|
|
|
|
|