File perl-ldap.spec of Package perl-ldap

#
# spec file for package perl-ldap (Version 0.4001)
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           perl-ldap
BuildRequires:  perl-Authen-SASL perl-Convert-ASN1 perl-IO-Socket-SSL perl-XML-Parser
BuildRequires:  perl-macros
Version:        0.4001
Release:        1
Provides:       perl_ldp perl-Net-LDAP = %{version}
Obsoletes:      perl_ldp perl-Net-LDAP < %{version}
Requires:       perl-URI perl-XML-Parser perl-Convert-ASN1
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
Url:            http://cpan.org/modules/by-module/Net/
Summary:        Client Interface for LDAP Servers
Source:         perl-ldap-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
A Client interface for LDAP servers.



Authors:
--------
    <gbarr@pobox.com> (Graham Barr)

%package ssl
License:        Artistic License ..
Summary:        SSL Extension to perl-ldap
Group:          Development/Libraries/Perl
Requires:       %{name} = %{version} perl-IO-Socket-SSL
%{perl_requires}
AutoReqProv:    on
Provides:       p_ldaps
Obsoletes:      p_ldaps

%description ssl
A Client interface for LDAP servers.



Authors:
--------
    Graham Barr <gbarr@pobox.com>

%prep
%setup -q -n perl-ldap-%{version}

%build
# Prevent rpmlint warning script-without-shebang
chmod -x lib/Net/LDAP/DSML.pm
find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@"
perl Makefile.PL
make %{?_smp_mflags}

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CREDITS Changes README SIGNATURE TODO contrib
%doc %{_mandir}/man3/Net::LDAP.3pm*
%doc %{_mandir}/man3/Net::LDAPI.3pm*
%doc %{_mandir}/man3/Net::LDAP::*
%doc %{_mandir}/man3/Bundle::Net::LDAP.3pm*
%dir %{perl_vendorlib}/Net
%{perl_vendorlib}/Net/LDAP
%{perl_vendorlib}/Net/LDAP.*
%{perl_vendorlib}/Net/LDAPI.pm
%{perl_vendorlib}/Bundle
%{perl_vendorlib}/LWP
%{perl_vendorarch}/auto/Net/LDAP

%files ssl
%defattr(-,root,root)
%doc %{_mandir}/man3/Net::LDAPS.3pm*
%dir %{perl_vendorlib}/Net
%{perl_vendorlib}/Net/LDAPS.pm

%changelog
openSUSE Build Service is sponsored by