File dirmngr.spec of Package dirmngr

#
# spec file for package dirmngr
#
# Copyright (c) 2014 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
Version:        1.1.1
Release:        0
Summary:        A Client for Managing and Downloading CRLs
License:        GPL-3.0+
Group:          Productivity/Networking/LDAP/Utilities
Url:            http://www.gnupg.org/aegypten/
Source:         ftp://ftp.gnupg.org/gcrypt/dirmngr/%{name}-%{version}.tar.bz2
Source1:        LICENSE.README
Patch0:         dirmngr-1.0.2-optflags.patch
Patch1:         dirmngr-initialize_pth.patch
BuildRequires:  automake
BuildRequires:  libassuan-devel >= 2.0.0
BuildRequires:  libgcrypt-devel >= 1.4.0
BuildRequires:  libgpg-error-devel >= 1.4
BuildRequires:  libksba-devel >= 1.0.2
BuildRequires:  libpth-devel >= 1.3.7
BuildRequires:  openldap2-devel
Requires:       openssl
Requires(pre):  %{install_info_prereq}
Recommends:     %{name}-lang

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

%lang_package

%prep
%setup -q
%patch0
%patch1
cp %{SOURCE1} .

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

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%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
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README LICENSE.README
%{_defaultdocdir}/%{name}
%{_bindir}/*
%{_infodir}/dirmngr*
%{_mandir}/man1/dirmngr*.1.gz
%{_libexecdir}/dirmngr

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by