5cea16c
# pcsc-lite library major: 0 in 1.2.0, 1 in 1.2.9+ (dlopen()'d in pcsc-wrapper)
5cea16c
# Note: this is just the name of the default shared lib to load in scdaemon,
5cea16c
# it can use other implementations too (including non-pcsc ones).
5cea16c
%define pcsc_lib libpcsclite.so.0
5cea16c
70a94ea
Summary: GNU utility for secure communication and data storage
0db8db7
Name:    gnupg2
fb20eb6
Version: 1.9.18
a0e36c8
Release: 9%{?dist}
70a94ea
License: GPL
0db8db7
Group:   Applications/System
ca39d73
Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2
ca39d73
Source1: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2.sig
0db8db7
URL:     http://www.gnupg.org/
2415545
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2415545
fb20eb6
Patch1: gnupg-1.9.18-lvalue.patch
2415545
Patch2: gnupg-1.9.16-testverbose.patch
70a94ea
0db8db7
Obsoletes: newpg < 0.9.5
70a94ea
70a94ea
Requires(post): /sbin/install-info
70a94ea
Requires(postun): /sbin/install-info
70a94ea
fb20eb6
BuildRequires: libassuan-devel >= 0.6.10
0db8db7
BuildRequires: libgcrypt-devel => 1.2.0
ca39d73
BuildRequires: libgpg-error-devel => 1.0
7767389
# Hard-code libksba-0.9.11 for now
7767389
BuildRequires: libksba-devel = 0.9.11
7767389
#BuildRequires: libksba-devel >= 0.9.11
fb20eb6
# No longer used (?) -- Rex
fb20eb6
#BuildRequires: opensc-devel >= 0.9
fb20eb6
ca39d73
BuildRequires: gettext
ca39d73
BuildRequires: openldap-devel
70a94ea
BuildRequires: libusb-devel
70a94ea
BuildRequires: pth-devel
ca39d73
BuildRequires: zlib-devel
ca39d73
BuildRequires: bzip2-devel
70a94ea
Buildrequires: libusb-devel
70a94ea
BuildRequires: docbook-utils
70a94ea
0db8db7
Requires: pinentry >= 0.7.1
70a94ea
70a94ea
# Should these be versioned?  -- Rex
0db8db7
Provides: gpg
0db8db7
Provides: openpgp
70a94ea
70a94ea
%description
fb20eb6
GnuPG 1.9 is the future version of GnuPG; it is based on some gnupg-1.3
fb20eb6
code and the previous newpg package.  It will eventually lead to a
fb20eb6
GnuPG 2.0 release.  Note that GnuPG 1.4 and 1.9 are not always in sync
fb20eb6
and thus features and bug fixes done in 1.4 are not necessarily
fb20eb6
available in 1.9.
fb20eb6
fb20eb6
You should use this GnuPG version if you want to use the gpg-agent or
fb20eb6
gpgsm (the S/MIME variant of gpg).  Note that the gpg-agent is also
fb20eb6
helpful when using the standard gpg versions (1.4.x as well as some of
fb20eb6
the old 1.2.x).  There are no problems installing 1.4 and 1.9
fb20eb6
alongside; in act we suggest to do this.
70a94ea
70a94ea
70a94ea
70a94ea
%prep
70a94ea
%setup -q -n gnupg-%{version}
70a94ea
fb20eb6
%patch1 -p1 -b .lvalue
2415545
%patch2 -p1 -b .testverbose
2415545
1c71514
1c71514
sed -i -e 's|^NEED_KSBA_VERSION=.*|NEED_KSBA_VERSION=0.9.11|' configure.ac
1c71514
sed -i -e 's|^NEED_KSBA_VERSION=.*|NEED_KSBA_VERSION=0.9.11|' configure
1c71514
5cea16c
sed -i -e 's/"libpcsclite\.so"/"%{pcsc_lib}"/' scd/{scdaemon,pcsc-wrapper}.c
5cea16c
70a94ea
70a94ea
%build
70a94ea
c333b83
%{!?_without_pie:CFLAGS="$RPM_OPT_FLAGS -fPIE" ; export CFLAGS}
c333b83
%{!?_without_pie:LDFLAGS="$RPM_OPT_FLAGS -pie" ; export LDFLAG}
70a94ea
70a94ea
%configure \
fb20eb6
  --disable-dependency-tracking \
2415545
  --disable-rpath \
2415545
  --enable-gpg
70a94ea
70a94ea
make %{?_smp_mflags}
ca39d73
70a94ea
2415545
%check || :
7767389
make check
70a94ea
70a94ea
70a94ea
%install
70a94ea
rm -rf $RPM_BUILD_ROOT
70a94ea
70a94ea
make install DESTDIR=$RPM_BUILD_ROOT
70a94ea
70a94ea
%find_lang %{name}
70a94ea
7767389
## Unpackaged files
70a94ea
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
70a94ea
70a94ea
70a94ea
%post
7767389
/sbin/install-info %{_infodir}/gnupg.info %{_infodir}/dir ||:
70a94ea
70a94ea
%preun
70a94ea
if [ $1 -eq 0 ]; then
7767389
  /sbin/install-info --delete %{_infodir}/gnupg.info %{_infodir}/dir ||:
70a94ea
fi
70a94ea
70a94ea
70a94ea
%files -f %{name}.lang
70a94ea
%defattr(-,root,root)
70a94ea
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
2415545
#docs say to install suid root, but we won't, for now.
70a94ea
#attr(4755,root,root) %{_bindir}/gpg2
70a94ea
%{_bindir}/gpg2
fb20eb6
%{_bindir}/gpgv2
fb20eb6
%{_datadir}/gnupg
2415545
%{_bindir}/gpg-connect-agent
70a94ea
%{_bindir}/gpg-agent
70a94ea
%{_bindir}/gpgconf
5cea16c
%{_bindir}/gpgkey2ssh
70a94ea
%{_bindir}/gpgsm*
70a94ea
%{_bindir}/kbxutil
70a94ea
%{_bindir}/scdaemon
70a94ea
%{_bindir}/watchgnupg
70a94ea
%{_sbindir}/*
70a94ea
%{_libdir}/gnupg
70a94ea
%{_libexecdir}/*
70a94ea
%{_infodir}/*
70a94ea
70a94ea
2415545
%clean
2415545
rm -rf $RPM_BUILD_ROOT
2415545
2415545
70a94ea
%changelog
a0e36c8
* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 1.9.18-9
1c71514
- configure: NEED_KSBA_VERSION=0.9.12 -> 0.9.11
1c71514
7767389
* Fri Aug 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 1.9.18-7
7767389
- re-enable 'make check', rebuild against (older) libksba-0.9.11
7767389
c333b83
* Tue Aug  9 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 1.9.18-6
c333b83
- don't 'make check' by default (regular builds pass, but FC4/5+plague fails)
c333b83
2ba40d0
* Mon Aug  8 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 1.9.18-5
fb20eb6
- 1.9.18
fb20eb6
- drop pth patch (--enable-gpg build fixed)
fb20eb6
- update description (from README)
fb20eb6
5cea16c
* Fri Jul  1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.9.17-1
5cea16c
- 1.9.17, signal info patch applied upstream (#162264).
5cea16c
- Patch to fix lvalue build error with gcc4 (upstream #485).
5cea16c
- Patch scdaemon and pcsc-wrapper to load the versioned (non-devel)
5cea16c
  pcsc-lite lib by default.
5cea16c
43dda38
* Fri May 13 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.16-3
43dda38
- Include upstream's patch for signal.c.
43dda38
2415545
* Tue May 10 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.16-1
2415545
- Merge changes from Rex's 1.9.16-1 (Thu Apr 21):
2415545
-   opensc support unconditional
2415545
-   remove hard-coded .gz from %%post/%%postun
2415545
-   add %%check section
2415545
-   add pth patch
2415545
- Put back patch modified from 1.9.15-4 to make tests verbose
2415545
  and change signal.c to describe received signals better.
2415545
430e1b2
* Sun May  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
430e1b2
- Drop patch0 again.
430e1b2
4319a3e
* Sun May  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9.15-4
4319a3e
- Add patch0 temporarily to get some output from failing test.
4319a3e
b6b57ed
* Sat May  7 2005 David Woodhouse <dwmw2@infradead.org> 1.9.15-3
b6b57ed
- Rebuild.
b6b57ed
6368817
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
6368817
- rebuilt
6368817
ca39d73
* Tue Feb  1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:1.9.15-1
70a94ea
- Make install-info in scriptlets less noisy.
70a94ea
ca39d73
* Tue Jan 18 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.15-0.fdr.1
ca39d73
- 1.9.15
ca39d73
ca39d73
* Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.14-0.fdr.2
ca39d73
- note patch/hack to build against older ( <1.0) libgpg-error-devel
ca39d73
70a94ea
* Thu Jan 06 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.14-0.fdr.1
70a94ea
- 1.9.14
70a94ea
- enable opensc support
70a94ea
- BR: libassuan-devel >= 0.6.9
70a94ea
70a94ea
* Thu Oct 21 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.4
0db8db7
- remove suid.
70a94ea
70a94ea
* Thu Oct 21 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.3
70a94ea
- remove Provides: newpg
70a94ea
70a94ea
* Wed Oct 20 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.2
70a94ea
- Requires: pinentry
70a94ea
- gpg2 suid
70a94ea
- update description
70a94ea
70a94ea
* Tue Oct 19 2004 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.11-0.fdr.1
0db8db7
- first try
70a94ea
- leave out opensc support (for now), enable --with-opensc
70a94ea