+# NOTE: for dirmngr 2.x see gnupg2.spec
Summary: X509/LDAP certificate and revocation list client
Summary(pl.UTF-8): Klient certyfikatów i list anulujących X509/LDAP
Name: dirmngr
-Version: 1.0.3
-Release: 1
+Version: 1.1.1
+Release: 5
License: GPL v2+
Group: Applications
Source0: ftp://ftp.gnupg.org/gcrypt/dirmngr/%{name}-%{version}.tar.bz2
-# Source0-md5: c1f2028d708e4d4ecbd6d6d647bd938b
+# Source0-md5: f5a40e93bcf07a94522579bfd58a2c96
Patch0: %{name}-info.patch
+Patch1: %{name}-am.patch
+Patch2: %{name}-pth.patch
+Patch3: %{name}-pl.po.patch
URL: http://www.gnupg.org/documentation/manuals/dirmngr/
-BuildRequires: automake
-BuildRequires: libassuan-devel >= 1:1.0.4
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9.3
+BuildRequires: libassuan-devel >= 1:2.0.0
BuildRequires: libgcrypt-devel >= 1.4.0
BuildRequires: libgpg-error-devel >= 1.4
BuildRequires: libksba-devel >= 1.0.2
BuildRequires: openldap-devel >= 2.4.6
BuildRequires: pth-devel >= 1.3.7
BuildRequires: texinfo
-Requires: libassuan >= 1:1.0.4
+Requires: libassuan >= 1:2.0.0
Requires: libgcrypt >= 1.4.0
Requires: libgpg-error >= 1.4
Requires: libksba >= 1.0.2
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p0
+%patch3 -p1
+
+%{__rm} po/stamp-po
%build
-cp -f /usr/share/automake/config.* .
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
--with-ldap=/usr
%{__make}
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc ChangeLog NEWS README*
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
%attr(755,root,root) %{_bindir}/dirmngr
%attr(755,root,root) %{_bindir}/dirmngr-client
%attr(755,root,root) %{_libexecdir}/dirmngr_ldap