File dirmngr.spec of Package dirmngr

#
# spec file for package dirmngr
#
# Copyright (c) 2011 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/
#



Name:           dirmngr
BuildRequires:  libassuan-devel >= 2.0.0
BuildRequires:  libgpg-error-devel >= 1.4
BuildRequires:  libgcrypt-devel >= 1.4.0
BuildRequires:  libksba-devel >= 1.0.2
%if 0%{?suse_version} >= 1120
BuildRequires:  libpth-devel >= 1.3.7
%else
BuildRequires:  pth >= 1.3.7
%endif
BuildRequires:  automake
BuildRequires:  openldap2-devel
Url:            http://www.gnupg.org/aegypten/
Version:        1.1.0
Release:        0
Requires:       openssl
Summary:        A Client for Managing and Downloading CRLs
License:        GPL-3.0+
Group:          Productivity/Networking/LDAP/Utilities
Source:         ftp://ftp.gnupg.org/gcrypt/dirmngr/%{name}-%{version}.tar.bz2
Source1:        LICENSE.README
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq
Patch0:         dirmngr-1.0.2-optflags.patch
# From upstream:
Patch1:         dirmngr-GPLv3.patch	
Patch2:         dirmngr-linking.patch

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

%prep
%setup -q -n %{name}-%{version}
%patch0
%patch1
%patch2
cp %{S:1} .

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

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

%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}/*
%_libexecdir/dirmngr

%changelog
openSUSE Build Service is sponsored by