2fef3c0
ee5e4c5
# pcsc-lite library major: 0 in 1.2.0, 1 in 1.2.9+ (dlopen()'d in pcsc-wrapper)
ee5e4c5
# Note: this is just the name of the default shared lib to load in scdaemon,
ee5e4c5
# it can use other implementations too (including non-pcsc ones).
ee5e4c5
%define pcsc_lib libpcsclite.so.0
ee5e4c5
377319f
Summary: GNU utility for secure communication and data storage
e84925d
Name:    gnupg2
2fef3c0
Version: 1.9.19
7f82b4c
Release: 4%{?dist}
377319f
License: GPL
e84925d
Group:   Applications/System
33b804f
Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2
33b804f
Source1: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2.sig
e84925d
URL:     http://www.gnupg.org/
4280ae4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
80f051d
# omit broken x86_64 build 
80f051d
# ExcludeArch: x86_64 
80f051d
80f051d
# enable auto-startup/shutdown of gpg-agent
80f051d
Source10: gpg-agent-startup.sh
80f051d
Source11: gpg-agent-shutdown.sh
4280ae4
2a9e10d
Patch1: gnupg-1.9.18-lvalue.patch
4280ae4
Patch2: gnupg-1.9.16-testverbose.patch
377319f
e84925d
Obsoletes: newpg < 0.9.5
377319f
377319f
Requires(post): /sbin/install-info
377319f
Requires(postun): /sbin/install-info
377319f
2a9e10d
BuildRequires: libassuan-devel >= 0.6.10
e84925d
BuildRequires: libgcrypt-devel => 1.2.0
33b804f
BuildRequires: libgpg-error-devel => 1.0
fd52594
#ifarch x86_64
7f82b4c
# Hard-code libksba-0.9.11 for now (x86_64 'make check' fails)
fd52594
#BuildRequires: libksba-devel = 0.9.11
fd52594
#else
7f82b4c
BuildRequires: libksba-devel >= 0.9.12
fd52594
#endif
2a9e10d
33b804f
BuildRequires: gettext
33b804f
BuildRequires: openldap-devel
377319f
BuildRequires: libusb-devel
377319f
BuildRequires: pth-devel
33b804f
BuildRequires: zlib-devel
33b804f
BuildRequires: bzip2-devel
377319f
Buildrequires: libusb-devel
377319f
BuildRequires: docbook-utils
377319f
e84925d
Requires: pinentry >= 0.7.1
377319f
e84925d
Provides: gpg
e84925d
Provides: openpgp
377319f
377319f
%description
2a9e10d
GnuPG 1.9 is the future version of GnuPG; it is based on some gnupg-1.3
2a9e10d
code and the previous newpg package.  It will eventually lead to a
2a9e10d
GnuPG 2.0 release.  Note that GnuPG 1.4 and 1.9 are not always in sync
2a9e10d
and thus features and bug fixes done in 1.4 are not necessarily
2a9e10d
available in 1.9.
2a9e10d
2a9e10d
You should use this GnuPG version if you want to use the gpg-agent or
2a9e10d
gpgsm (the S/MIME variant of gpg).  Note that the gpg-agent is also
2a9e10d
helpful when using the standard gpg versions (1.4.x as well as some of
2a9e10d
the old 1.2.x).  There are no problems installing 1.4 and 1.9
2a9e10d
alongside; in act we suggest to do this.
377319f
377319f
377319f
377319f
%prep
377319f
%setup -q -n gnupg-%{version}
377319f
2a9e10d
%patch1 -p1 -b .lvalue
fd52594
%patch2 -p1 -b .testverbose
deac49e
80f051d
%ifarch x86_64
80f051d
sed -i -e 's|^NEED_KSBA_VERSION=.*|NEED_KSBA_VERSION=0.9.11|' configure.ac configure
80f051d
%endif
deac49e
ee5e4c5
sed -i -e 's/"libpcsclite\.so"/"%{pcsc_lib}"/' scd/{scdaemon,pcsc-wrapper}.c
ee5e4c5
377319f
377319f
%build
377319f
377319f
%configure \
2a9e10d
  --disable-dependency-tracking \
4280ae4
  --disable-rpath \
4280ae4
  --enable-gpg
377319f
377319f
make %{?_smp_mflags}
33b804f
377319f
7f82b4c
%check ||:
80f051d
# Allows for better debugability
80f051d
echo "--debug-allow-core-dumps" >> tests/gpgsm.conf
7f82b4c
%ifarch x86_64
7f82b4c
# Expect one failure (reported upstream)
7f82b4c
make check ||:
7f82b4c
%else
b6e9603
make check
7f82b4c
%endif
377319f
377319f
377319f
%install
377319f
rm -rf $RPM_BUILD_ROOT
377319f
377319f
make install DESTDIR=$RPM_BUILD_ROOT
377319f
80f051d
# enable auto-startup/shutdown of gpg-agent 
80f051d
mkdir -p $RPM_BUILD_ROOT%{_prefix}/{env,shutdown}
80f051d
install -p -m0755 %{SOURCE10} $RPM_BUILD_ROOT%{_prefix}/env/
80f051d
install -p -m0755 %{SOURCE11} $RPM_BUILD_ROOT%{_prefix}/shutdown/
80f051d
377319f
%find_lang %{name}
377319f
b6e9603
## Unpackaged files
377319f
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
377319f
377319f
377319f
%post
b6e9603
/sbin/install-info %{_infodir}/gnupg.info %{_infodir}/dir ||:
377319f
377319f
%preun
377319f
if [ $1 -eq 0 ]; then
b6e9603
  /sbin/install-info --delete %{_infodir}/gnupg.info %{_infodir}/dir ||:
377319f
fi
377319f
377319f
377319f
%files -f %{name}.lang
377319f
%defattr(-,root,root)
377319f
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
4280ae4
#docs say to install suid root, but we won't, for now.
377319f
#attr(4755,root,root) %{_bindir}/gpg2
377319f
%{_bindir}/gpg2
2a9e10d
%{_bindir}/gpgv2
4280ae4
%{_bindir}/gpg-connect-agent
377319f
%{_bindir}/gpg-agent
377319f
%{_bindir}/gpgconf
ee5e4c5
%{_bindir}/gpgkey2ssh
377319f
%{_bindir}/gpgsm*
377319f
%{_bindir}/kbxutil
377319f
%{_bindir}/scdaemon
377319f
%{_bindir}/watchgnupg
377319f
%{_sbindir}/*
7f82b4c
%{_datadir}/gnupg/
7f82b4c
%{_libdir}/gnupg/
377319f
%{_libexecdir}/*
377319f
%{_infodir}/*
80f051d
# Own dirs until someone else does (filesystem,kdebase?)
80f051d
%{_prefix}/env/
80f051d
%{_prefix}/shutdown/
377319f
377319f
4280ae4
%clean
4280ae4
rm -rf $RPM_BUILD_ROOT
4280ae4
4280ae4
377319f
%changelog
fd52594
* Thu Dec 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-5
80f051d
- include gpg-agent-(startup|shutdown) scripts (#136533)
80f051d
- BR: libksba-devel >= 1.9.12 
7f82b4c
7f82b4c
* Wed Nov 30 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-3
31f5b35
- BR: libksba-devel >= 1.9.13
31f5b35
7f82b4c
* Tue Oct 11 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-2
88f6837
- back to BR: libksba-devel = 1.9.11
88f6837
7f82b4c
* Tue Oct 11 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.19-1
2fef3c0
- 1.9.19
2fef3c0
7f82b4c
* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-9
deac49e
- configure: NEED_KSBA_VERSION=0.9.12 -> 0.9.11
deac49e
7f82b4c
* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-7
b6e9603
- re-enable 'make check', rebuild against (older) libksba-0.9.11
b6e9603
7f82b4c
* Tue Aug  9 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-6
374a51b
- don't 'make check' by default (regular builds pass, but FC4/5+plague fails)
374a51b
7f82b4c
* Mon Aug  8 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.18-5
2a9e10d
- 1.9.18
2a9e10d
- drop pth patch (--enable-gpg build fixed)
2a9e10d
- update description (from README)
2a9e10d
ee5e4c5
* Fri Jul  1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.9.17-1
ee5e4c5
- 1.9.17, signal info patch applied upstream (#162264).
ee5e4c5
- Patch to fix lvalue build error with gcc4 (upstream #485).
ee5e4c5
- Patch scdaemon and pcsc-wrapper to load the versioned (non-devel)
ee5e4c5
  pcsc-lite lib by default.
ee5e4c5
b848962
* Fri May 13 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.16-3
b848962
- Include upstream's patch for signal.c.
b848962
4280ae4
* Tue May 10 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.16-1
4280ae4
- Merge changes from Rex's 1.9.16-1 (Thu Apr 21):
4280ae4
-   opensc support unconditional
4280ae4
-   remove hard-coded .gz from %%post/%%postun
4280ae4
-   add %%check section
4280ae4
-   add pth patch
4280ae4
- Put back patch modified from 1.9.15-4 to make tests verbose
4280ae4
  and change signal.c to describe received signals better.
4280ae4
5da4626
* Sun May  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
5da4626
- Drop patch0 again.
5da4626
0b24d30
* Sun May  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.15-4
0b24d30
- Add patch0 temporarily to get some output from failing test.
0b24d30
bebe91c
* Sat May  7 2005 David Woodhouse <dwmw2@infradead.org> 1.9.15-3
bebe91c
- Rebuild.
bebe91c
6d0c8d6
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
6d0c8d6
- rebuilt
6d0c8d6
33b804f
* Tue Feb  1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:1.9.15-1
377319f
- Make install-info in scriptlets less noisy.
377319f
33b804f
* Tue Jan 18 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.15-0.fdr.1
33b804f
- 1.9.15
33b804f
33b804f
* Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.14-0.fdr.2
33b804f
- note patch/hack to build against older ( <1.0) libgpg-error-devel
33b804f
377319f
* Thu Jan 06 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.14-0.fdr.1
377319f
- 1.9.14
377319f
- enable opensc support
377319f
- BR: libassuan-devel >= 0.6.9
377319f
377319f
* Thu Oct 21 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.4
e84925d
- remove suid.
377319f
377319f
* Thu Oct 21 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.3
377319f
- remove Provides: newpg
377319f
377319f
* Wed Oct 20 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.2
377319f
- Requires: pinentry
377319f
- gpg2 suid
377319f
- update description
377319f
377319f
* Tue Oct 19 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.1
e84925d
- first try
377319f
- leave out opensc support (for now), enable --with-opensc
377319f