File dirmngr.spec of Package dirmngr

#
# spec file for package dirmngr
#
# Copyright (c) 2013 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
BuildRequires:  libpth-devel >= 1.3.7
BuildRequires:  automake
BuildRequires:  openldap2-devel
Url:            http://www.gnupg.org/aegypten/
Version:        1.1.1
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
Requires(pre):  %install_info_prereq
Recommends:     %{name}-lang
Patch0:         dirmngr-1.0.2-optflags.patch

%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 -n %{name}-%{version}
%patch0
cp %{S:1} .

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

%install
%makeinstall
%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

%changelog
openSUSE Build Service is sponsored by