File perl-ldap.spec of Package perl-ldap
#
# spec file for package perl-ldap
#
# Copyright (c) 2015 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: perl-ldap
%define cpan_name perl-ldap
Version: 0.64
Release: 0
Summary: Client Interface for LDAP Servers
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://cpan.org/modules/by-module/Net/
Source: perl-ldap-%{version}.tar.gz
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
%{perl_requires}
%description
A Client interface for LDAP servers.
%package ssl
Summary: SSL Extension to perl-ldap
License: Artistic-1.0
Group: Development/Libraries/Perl
Requires: %{name} = %{version}
Requires: perl-IO-Socket-SSL
Provides: p_ldaps
Obsoletes: p_ldaps
%{perl_requires}
%description ssl
A Client interface for LDAP servers.
%prep
%setup -q -n perl-ldap-%{version}
find . -type f -print0 | xargs -0 chmod 644
# MANUAL
find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@"
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CREDITS install-nomake README TODO
%changelog