File perl-ldap.spec of Package perl-ldap

#
# spec file for package perl-ldap (Version 0.37)
#
# Copyright (c) 2008 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
Version:        0.37
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
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License
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

%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
Requires:       perl = %{perl_version}
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
find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@"
perl Makefile.PL
make

%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
/var/adm/perl-modules/%{name}

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

%changelog
* Wed Sep 10 2008 anicka@suse.cz
- update to 0.37
  * Add Modify Increment (RFC 4525) support
  * Add Content Synchronization (RFC 4453) support
  * Added controls for PreRead & PostRead
  * Added vendorName/vendorVersion (RFC 3045) to root_dse()
  * add option to support IPv6
  * Allow Entry->deleted to be called with a single value is well
  as array ref
  * Added Net::LDAP::Control::PasswordPolicy to support draft RFC
  * bugfixes
* Wed Jul 16 2008 jw@suse.de
- perl-ldap does not conform to our naming conventions for perl packages.
  Added a Provides: perl-Net-LDAP to make user's life easier.
  (Using version numbers, to allow future package rename)
* Mon Mar 10 2008 anicka@suse.cz
- update to 0.34
  * Improve dealing with mixed case attributes in Net::LDAP::Entry
  * Documentation fixes & updates
  * Don't let Net::LDAP->bind() die on SASL errors
  * Fix case-folding in Net::LDAP::Util::ldap_explode_dn()
  * Saner default for ldapi socket
  * Update test suite to work with recent OpenLDAP versions
  * The usual bunch of typo fixes
  * Fix escaping on non-ascii characters in Net::LDAP::Filter
  * Flexible handling of line ends in Net::LDAP::LDIF when reading
  * Improve writing speed in Net::LDAP::LDIF
  * Net::LDAP accessor methods for scheme, host, port, URI connected to
  * New checkcrl option to Net::LDAP->new() to do CRL checking
  * New package Net::LDAP::Filtermatch for client side filtering
  * More ASN1 messages handled in Net::LDAP:ASN: IntermediateResponse
  * Option 'raw' to return Perl UTF-8 strings from queries (requires Perl 5.8)
  * Support  Active Directory's extendedAttributeInfo schema information
  * Method to find matchingrule for an attribute in Net::LDAP:Schema
  * Updated build dependecies: GSSAPI support, ..
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jul 27 2005 mt@suse,de
- update to 0.33
- fixed file list to be more exact
* Sun Jun 20 2004 ro@suse.de
- fix find command in specfile
* Sat Feb 28 2004 ro@suse.de
- fix requires for /usr/local
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Thu Jul 24 2003 mjancar@suse.cz
- update to 0.29
* Fri Jul 18 2003 mjancar@suse.cz
- adapt to perl-5.8.1
- use %%perl_process_packlist
* Mon Jun 16 2003 mjancar@suse.cz
- update to 0.28
- fix filelist
* Mon May 19 2003 ro@suse.de
- remove perllocal.pod
* Sat Dec 28 2002 prehak@suse.cz
- updated to version 0.26
- added perl-Authen-SASL to neededforbuild
* Wed Sep 11 2002 prehak@suse.cz
- used %%{version} in subpackage's Requires
* Mon Jul 29 2002 mls@suse.de
- Fixed neededforbuild for perl-5.8.0
* Thu Jul 11 2002 prehak@suse.cz
- update to version 0.251
- added more documentation and contrib
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Thu Jan 17 2002 rvasice@suse.cz
- update to version 0.25
* Tue Aug 14 2001 rvasice@suse.cz
- update to version 0.24
* Mon Mar 26 2001 cihlar@suse.cz
- added make test
- fixed neededforbuild
* Tue Nov 14 2000 cihlar@suse.cz
- renamed perl_ldp -> perl-ldap
  p_ldaps  -> perl-ldap-ssl
- update to version 0.22
- bzipped sources
* Fri Sep 15 2000 choeger@suse.de
- update to version 0.21
* Tue Aug 29 2000 cihlar@suse.cz
- splited to perl_ldp and p_ldaps
- removed p_iossl from neededforbuild
* Wed Aug 23 2000 cihlar@suse.cz
- added p_iossl to Requires and neededforbuild
* Wed Aug 23 2000 cihlar@suse.cz
- update to version 0.20
- added BuildRoot
- bzipped sources
* Fri Mar 24 2000 ug@suse.de
- new version 0.14 -> 0.15
* Thu Mar 23 2000 ug@suse.de
- added to distribution
openSUSE Build Service is sponsored by