#
# Conditional build:
-%bcond_with tests # perform "make test" (requires working ldap server and gnupg configured with key retrieval with hkp)
+%bcond_with tests # perform "make test" (requires working ldap server and gnupg configured with key retrieval with hkp)
#
%include /usr/lib/rpm/macros.perl
Summary: perl-ldap module - a client interface to LDAP servers
Source0: http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
# Source0-md5: 398689b0a7b1615075a6b5035f6e3e91
URL: http://ldap.perl.org/
+BuildRequires: perl-Authen-SASL >= 2.00
+BuildRequires: perl-Convert-ASN1 >= 0.07
+BuildRequires: perl-Digest-MD5
+BuildRequires: perl-IO-Socket-SSL >= 0.81
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
-BuildRequires: perl-IO-Socket-SSL
BuildRequires: perl-MIME-Base64
BuildRequires: perl-Module-Signature
BuildRequires: perl-URI >= 1.08
BuildRequires: perl-XML-SAX
BuildRequires: perl-libwww
%endif
-BuildRequires: perl-Authen-SASL >= 2.00
-BuildRequires: perl-Convert-ASN1 >= 0.07
-BuildRequires: perl-Digest-MD5
-BuildRequires: perl-ExtUtils-AutoInstall
-BuildRequires: perl-IO-Socket-SSL
-BuildRequires: perl-devel >= 1:5.8.0
-BuildRequires: rpm-perlprov >= 4.1-13
Obsoletes: perl-LDAP
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)