File perl-ldap.spec of Package perl-ldap.13682

# spec file for package perl-ldap
# Copyright (c) 2017 SUSE LINUX 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

Name:           perl-ldap
%define cpan_name perl-ldap
Version:        0.65
Release:        0
Summary:        Client Interface for LDAP Servers
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Source:         perl-ldap-%{version}.tar.gz
Patch0:         perl526.patch
BuildRequires:  perl-Authen-SASL
BuildRequires:  perl-Convert-ASN1
BuildRequires:  perl-IO-Socket-SSL
BuildRequires:  perl-XML-Parser
BuildRequires:  perl-macros
Requires:       perl-Convert-ASN1
Requires:       perl-URI
Requires:       perl-XML-Parser
Provides:       perl-Net-LDAP = %{version}
Provides:       perl_ldp
Obsoletes:      perl-Net-LDAP < %{version}
Obsoletes:      perl_ldp
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A Client interface for LDAP servers.

%setup -q -n perl-ldap-%{version}
%patch0 -p1
find . -type f -print0 | xargs -0 chmod 644
find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@"

%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%{__make} test


%files -f %{name}.files

openSUSE Build Service is sponsored by