2007-01-15 23:32:24 +00:00
|
|
|
#
|
2011-09-14 08:52:33 +00:00
|
|
|
# spec file for package perl-ldap
|
2007-01-15 23:32:24 +00:00
|
|
|
#
|
2011-09-05 07:59:31 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:32:24 +00:00
|
|
|
#
|
2008-08-21 23:54:50 +00:00
|
|
|
# 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.
|
|
|
|
|
2008-03-10 17:33:48 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:32:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-10 17:33:48 +00:00
|
|
|
|
|
|
|
Name: perl-ldap
|
2011-09-05 07:59:31 +00:00
|
|
|
Version: 0.43
|
|
|
|
Release: 1
|
|
|
|
License: GPL-1.0+ or Artistic
|
2008-03-10 17:33:48 +00:00
|
|
|
Summary: Client Interface for LDAP Servers
|
2011-09-05 07:59:31 +00:00
|
|
|
Url: http://cpan.org/modules/by-module/Net/
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
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
|
2008-03-10 17:33:48 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:39:34 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:32:24 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A Client interface for LDAP servers.
|
|
|
|
|
|
|
|
%package ssl
|
2009-07-28 22:47:59 +00:00
|
|
|
License: Artistic License ..
|
2008-03-10 17:33:48 +00:00
|
|
|
Summary: SSL Extension to perl-ldap
|
|
|
|
Group: Development/Libraries/Perl
|
2011-09-05 07:59:31 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: perl-IO-Socket-SSL
|
2008-03-10 17:33:48 +00:00
|
|
|
Provides: p_ldaps
|
|
|
|
Obsoletes: p_ldaps
|
2011-09-05 07:59:31 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:32:24 +00:00
|
|
|
|
|
|
|
%description ssl
|
|
|
|
A Client interface for LDAP servers.
|
|
|
|
|
|
|
|
%prep
|
2011-01-10 08:10:44 +00:00
|
|
|
%setup -q -n perl-ldap-%{version}
|
2007-01-15 23:32:24 +00:00
|
|
|
|
|
|
|
%build
|
2009-07-28 22:47:59 +00:00
|
|
|
# Prevent rpmlint warning script-without-shebang
|
|
|
|
chmod -x lib/Net/LDAP/DSML.pm
|
2007-01-15 23:32:24 +00:00
|
|
|
find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@"
|
|
|
|
perl Makefile.PL
|
2010-01-11 17:07:26 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-03-10 17:33:48 +00:00
|
|
|
|
|
|
|
%check
|
2007-01-15 23:32:24 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
2011-09-05 07:59:31 +00:00
|
|
|
make DESTDIR=%{buildroot} install_vendor
|
2007-01-15 23:32:24 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
2011-09-05 07:59:31 +00:00
|
|
|
rm -rf %{buildroot}
|
2007-01-15 23:32:24 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2008-03-10 17:33:48 +00:00
|
|
|
%changelog
|