File dirmngr.spec of Package dirmngr

#
# spec file for package dirmngr (Version 1.0.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           dirmngr
BuildRequires:  db-devel libassuan-devel libgcrypt-devel libksba-devel openldap2-devel pth
Url:            http://www.gnupg.org/aegypten/
Version:        1.0.2
Release:        1
Requires:       openssl
Summary:        A Client for Managing and Downloading CRLs
License:        GPL v2 or later
Group:          Productivity/Networking/LDAP/Utilities
Source:         ftp://ftp.gnupg.org/gcrypt/dirmngr/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq
Patch0:         %{name}-%{version}-optflags.patch

%description
Dirmngr is a client for managing and downloading certificate revocation
lists (CRLs) for X509 certificates and for downloading the certificates
themselves.



Authors:
--------
    Marcus Brinkmann  <marcus@g10code.com>
    Steffen Hansen    <steffen@klaralvdalens-datakonsult.se>
    Werner Koch       <wk@gnupg.org>
    Bernhard Reiter   <bernhard@intevation.de>

%prep
%setup -q
%patch0

%build
./autogen.sh
export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED"
%configure \
		--docdir=%{_defaultdocdir}/dirmngr \
		--libexecdir=%{_prefix}/lib/dirmngr 
make 

%install
%makeinstall
install -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README %{buildroot}/%{_defaultdocdir}/dirmngr/
%find_lang %{name}

%clean
rm -rf %{buildroot}

%post
%install_info --info-dir=%_infodir %_infodir/%name.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_defaultdocdir}/dirmngr
%{_infodir}/dirmngr*
%{_mandir}/man1/dirmngr*.1.gz
%{_bindir}/*
%{_prefix}/lib/dirmngr

%changelog
* Mon Aug 04 2008 puzel@suse.cz
- update to 1.0.2
  * new option --url for the LOOKUP command and dirmngr-client
  * the LOOKUP command does now also consults the local cache
    - new option --cache-only for it and --local for dirmngr-client
  * port to Windows completed
  * improved certificate chain construction
  * support loading of PEM encoded CRLs via HTTP.
- install some certificates to %%docdir/dirmngr/examples
- removed unnecessary krb5 dependency
- use %%makeinstall macro
* Sun Mar 16 2008 crrodriguez@suse.de
- fix file-not-in-lang errors
- fix info-files-without-install-info-* errors
- update to version 1.0.1
  * The option --ocsp-signer may now take a filename to allow several
  certificates to be valid signers for the default responder.
  * New option --ocsp-max-period and improved the OCSP time checks.
  * New option --force-default-signer for dirmngr-client.
* Mon Jul 30 2007 ltinkl@suse.cz
- updated to 1.0.0
  * Removed included gettext.  We now require the system to provide a
  suitable installation.
* Thu Jul 26 2007 sbrabec@suse.cz
- Build with libassuan-devel.
* Wed Mar 14 2007 ltinkl@suse.cz
- update to 0.9.7
- remove builtin pth copy
- package man pages
- fix build
* Fri Jun 30 2006 pnemec@suse.cz
- updated to version 0.9.5
  improved diagnostic
  better CRL handling
  see NEWS
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Sep 26 2005 ro@suse.de
- added LDAP_DEPRECATED to CFLAGS
* Mon Jul 11 2005 postadal@suse.cz
- updated to version 0.9.2
- removed obsoleted patch 64bit.diff
- link against libpth 2.0.4 staticaly, hopefully we can convert
  this to a native thread implementation later.
* Mon Jan 24 2005 ro@suse.de
- find ldap on lib64
* Wed Jan 12 2005 postadal@suse.cz
- updated to version 0.5.65.65.65.65.6
- removed obsoleted patch libldap.diff
* Sat Jul 24 2004 schwab@suse.de
- Fix neededforbuild.
- Fix 64-bit bugs.
* Tue Jul 13 2004 adrian@suse.de
- update to version 0.5.5
* Fri Feb 20 2004 mmj@suse.de
- Add libgpg-error to #nfb
- Adapt some functions to the new libgcrypt version
* Wed Feb 18 2004 kukuk@suse.de
- Remove package name requires, RPM can handle this better
- Don't build with libpth
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Mon Jun 02 2003 mc@suse.de
- switch to version 0.4.5. This release fixes these Bugs:
  *  --flushing cache does not work
  *  dirmngr chokes on *
  *  dirmngr lookup loop
  *  only searching first ldap entry
* Mon May 12 2003 ro@suse.de
- fix build with db-4.1
* Fri Feb 21 2003 mc@suse.de
- fixed lib64 ldap Problem
* Fri Feb 21 2003 mc@suse.de
- initial Version 0.4.4
- add patch to use db-4
openSUSE Build Service is sponsored by