5b324f
Name:           perl-LDAP
5b324f
Version:        0.56
5b324f
Release:        6%{?dist}
5b324f
Epoch:          1
5b324f
Summary:        LDAP Perl module
5b324f
Group:          Development/Libraries
5b324f
License:        GPL+ or Artistic
5b324f
URL:            http://search.cpan.org/dist/perl-ldap/
5b324f
Source0:        http://www.cpan.org/authors/id/M/MA/MARSCHAP/perl-ldap-%{version}.tar.gz
5b324f
# Do not set SSL ciphers at all by default, bug #1091316, CPAN RT#95001,
5b324f
# in upstream 0.63
5b324f
Patch0:         perl-ldap-0.56-Do-not-set-SSL_ciphers-to-ALL-by-default.patch
5b324f
# Correct Do-not-set-SSL_ciphers-to-ALL-by-default patch, bug #1091316,
5b324f
# in upstream 0.64
5b324f
Patch1:         perl-ldap-0.56-LDAP.pm-set-SSL_cipher_list-to-correct-value.patch
5b324f
# Pass actual length to syswrite() instead of default 1500 B, bug #1104243,
5b324f
# CPAN RT#96203, in upstream 0.64
5b324f
Patch2:         perl-ldap-0.56-RT-96203-LDAP.pm-use-correct-length-for-syswrite.patch
5b324f
# Make LDAPS work after LDAP+start_tls, bug #1210032
5b324f
Patch3:         perl-ldap-0.56-Make-LDAP-work-after-LDAP-start_tls.patch
5b324f
# Fix typo in man pages, bug #1286921
5b324f
Patch4:         perl-ldap-0.56-Fix-typos-in-man-pages.patch
5b324f
# 1/2 Do not set default SSL version, bug #1520364, fixed in 0.65
5b324f
Patch5:         perl-ldap-0.56-LDAP.pm-do-not-set-default-sslversion-for-LDAPS.patch
5b324f
# 2/2 Do not set default SSL version, bug #1520364, fixed in 0.65
5b324f
Patch6:         perl-ldap-0.56-LDAP.pm-do-not-set-default-sslversion-for-start_tls.patch
5b324f
BuildArch:      noarch
5b324f
BuildRequires:  perl
5b324f
BuildRequires:  perl(inc::Module::Install)
5b324f
# Run-time:
5b324f
# Not needed for tests perl(Authen::SASL) >= 2.00
5b324f
BuildRequires:  perl(base)
5b324f
BuildRequires:  perl(Carp)
5b324f
BuildRequires:  perl(constant)
5b324f
BuildRequires:  perl(Convert::ASN1) >= 0.2
5b324f
BuildRequires:  perl(Encode)
5b324f
BuildRequires:  perl(Exporter)
5b324f
BuildRequires:  perl(File::Basename)
5b324f
# Not needed for tests perl(HTTP::Negotiate)
5b324f
# Not needed for tests perl(HTTP::Response)
5b324f
# Not needed for tests perl(HTTP::Status)
5b324f
BuildRequires:  perl(integer)
5b324f
BuildRequires:  perl(IO::Select)
5b324f
BuildRequires:  perl(IO::Socket)
5b324f
# Not needed for tests perl(IO::Socket::SSL) >= 1.26
5b324f
# Not needed for tests perl(JSON)
5b324f
# Not needed for tests perl(LWP::MediaTypes)
5b324f
# Not needed for tests perl(LWP::Protocol)
5b324f
# Not needed for tests perl(MIME::Base64)
5b324f
BuildRequires:  perl(Socket)
5b324f
BuildRequires:  perl(strict)
5b324f
# Prefer core Text::Soundex
5b324f
BuildRequires:  perl(Text::Soundex)
5b324f
BuildRequires:  perl(Tie::Hash)
5b324f
BuildRequires:  perl(Time::Local)
5b324f
BuildRequires:  perl(XML::SAX::Base)
5b324f
BuildRequires:  perl(XML::SAX::Writer)
5b324f
# Optional:
5b324f
# Not needed for tests perl(IO::Socket::INET6)
5b324f
# Tests:
5b324f
BuildRequires:  perl(File::Compare)
5b324f
BuildRequires:  perl(File::Path)
5b324f
BuildRequires:  perl(File::Spec)
5b324f
BuildRequires:  perl(IO::File)
5b324f
BuildRequires:  perl(Test::More)
5b324f
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
5b324f
Requires:       perl(Authen::SASL) >= 2.00
5b324f
Requires:       perl(Convert::ASN1) >= 0.2
5b324f
Requires:       perl(IO::Socket::SSL) >= 1.26
5b324f
Requires:       perl(JSON)
5b324f
Requires:       perl(MIME::Base64)
5b324f
# Prefer core Text::Soundex
5b324f
Requires:       perl(Text::Soundex)
5b324f
Requires:       perl(Time::Local)
5b324f
Requires:       perl(XML::SAX::Writer)
5b324f
5b324f
# Remove under-specified dependencies
5b324f
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Net::LDAP::Filter\\)$
5b324f
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Convert::ASN1\\)$
5b324f
5b324f
%description
5b324f
Net::LDAP is a collection of modules that implements an LDAP services API
5b324f
for Perl programs. The module may be used to search directories or perform
5b324f
maintenance functions such as adding, deleting or modifying entries.
5b324f
5b324f
%prep
5b324f
%setup -q -n perl-ldap-%{version}
5b324f
%patch0 -p1
5b324f
%patch1 -p1
5b324f
%patch2 -p1
5b324f
%patch3 -p1
5b324f
%patch4 -p1
5b324f
%patch5 -p1
5b324f
%patch6 -p1
5b324f
chmod -c 644 bin/* contrib/* lib/Net/LDAP/DSML.pm
5b324f
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' contrib/*
5b324f
# Remove bundled libraries
5b324f
rm -rf inc
5b324f
sed -i -e '/^inc\// d' MANIFEST
5b324f
find -type f -exec chmod -x {} +
5b324f
5b324f
%build
5b324f
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
5b324f
make %{?_smp_mflags}
5b324f
5b324f
%install
5b324f
make pure_install DESTDIR=%{buildroot}
5b324f
find %{buildroot} -type f -name .packlist -exec rm -f {} +
5b324f
chmod -R u+w %{buildroot}/*
5b324f
5b324f
%check
5b324f
make test
5b324f
 
5b324f
%files
5b324f
%doc Changes CREDITS
5b324f
%doc contrib/ bin/
5b324f
%{perl_vendorlib}/Bundle/
5b324f
%{perl_vendorlib}/LWP/
5b324f
%{perl_vendorlib}/Net/
5b324f
%{_mandir}/man3/*.3pm*
5b324f
5b324f
%changelog
5b324f
* Mon Dec 04 2017 Petr Pisar <ppisar@redhat.com> - 1:0.56-6
5b324f
- Do not set default SSL version (bug #1520364)
5b324f
5b324f
* Mon Mar 07 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.56-5
5b324f
- Update patch to cleanup patch leftover
5b324f
5b324f
* Fri Mar 04 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.56-4
5b324f
- Make LDAPS work after LDAP+start_tls (bug #1210032)
5b324f
- Fix typo in man pages (bug #1286921)
5b324f
5b324f
* Wed Aug 06 2014 Petr Pisar <ppisar@redhat.com> - 1:0.56-3
5b324f
- Do not set SSL ciphers at all by default (bug #1091316)
5b324f
- Pass actual length to syswrite() instead of default 1500 B (bug #1104243)
5b324f
5b324f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:0.56-2
5b324f
- Mass rebuild 2013-12-27
5b324f
5b324f
* Wed Aug 07 2013 Petr Šabata <contyk@redhat.com> - 1:0.56-1.1
5b324f
- Add a few missing BRs
5b324f
5b324f
* Mon Jun 10 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.56-1
5b324f
- 0.56 bump
5b324f
5b324f
* Wed Apr 24 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.55-1
5b324f
- 0.55 bump
5b324f
5b324f
* Wed Apr 03 2013 Petr Pisar <ppisar@redhat.com> - 1:0.54-1
5b324f
- 0.54 bump
5b324f
5b324f
* Mon Jan 28 2013 Petr Šabata <contyk@redhat.com> - 1:0.53-1
5b324f
- 0.53 enhancement update
5b324f
5b324f
* Thu Jan 03 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.52-1
5b324f
- 0.52 bump
5b324f
5b324f
* Mon Dec 03 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.51-1
5b324f
- 0.51 bump
5b324f
5b324f
* Mon Nov 26 2012 Petr Pisar <ppisar@redhat.com> - 1:0.50-1
5b324f
- 0.50 bump
5b324f
5b324f
* Tue Nov 20 2012 Petr Šabata <contyk@redhat.com> - 1:0.49-2
5b324f
- Add a few missing deps
5b324f
- Drop command macros
5b324f
- Modernize the spec
5b324f
5b324f
* Mon Oct 08 2012 Petr Pisar <ppisar@redhat.com> - 1:0.49-1
5b324f
- 0.49 bump
5b324f
5b324f
* Mon Sep 17 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.47-1
5b324f
- 0.47 bump
5b324f
5b324f
* Fri Sep 14 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.46-1
5b324f
- 0.46 bump
5b324f
- Should fix: RT#72108, RT#74572, RT#74759, RT#77180
5b324f
- Removed bundled libraries. Use perl(inc::Module::Install).
5b324f
5b324f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.44-3
5b324f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5b324f
5b324f
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 1:0.44-2
5b324f
- Perl 5.16 rebuild
5b324f
- Specify all dependencies
5b324f
5b324f
* Mon Feb  6 2012  Marcela Maslanova <mmaslano@redhat.com> - 1:0.44-1
5b324f
- update which should fix RT#66753
5b324f
- clean specfile according to new guidelines
5b324f
5b324f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.40-6
5b324f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5b324f
5b324f
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1:0.40-5
5b324f
- Perl mass rebuild
5b324f
5b324f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.40-4
5b324f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5b324f
5b324f
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.40-3
5b324f
- 661697 rebuild for fixing problems with vendorach/lib
5b324f
5b324f
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.40-2
5b324f
- Mass rebuild with perl-5.12.0
5b324f
5b324f
* Mon Apr 12 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.40-1
5b324f
- update
5b324f
5b324f
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1:0.34-7
5b324f
- rebuild against perl 5.10.1
5b324f
5b324f
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.34-6
5b324f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5b324f
5b324f
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.34-5
5b324f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5b324f
5b324f
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.34-4
5b324f
- rebuild for new perl
5b324f
5b324f
* Mon Apr 09 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-3
5b324f
- Resolves: bz#226267
5b324f
- Only filter out the unversioned Provides: perl(Net::LDAP::Filter) to
5b324f
  avoid breaking dependencies.
5b324f
5b324f
* Thu Apr 05 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-2
5b324f
- Resolves: bz#226267
5b324f
- Filter out provides perl(Net::LDAP::Filter) per package review.
5b324f
5b324f
* Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-1
5b324f
- New version: 0.34
5b324f
5b324f
* Wed Sep 27 2006 Robin Norwood <rnorwood@redhat.com> - 1:0.33-3
5b324f
- Bugzilla: 207430
5b324f
- Incorporate fixes from Jose Oliveira's patch
5b324f
- Add perl(IO::Socket::SSL) as a BuildRequires as well
5b324f
- Other cleanups from Jose
5b324f
5b324f
* Wed Sep 27 2006 Robin Norwood <rnorwood@redhat.com> - 0.33-1.3
5b324f
- Add a requirement for IO::Socket::SSL, per bug #122066
5b324f
5b324f
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
5b324f
- rebuild
5b324f
5b324f
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.33-1.2
5b324f
- rebuild for new perl-5.8.8
5b324f
5b324f
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
5b324f
- rebuilt for new gcc
5b324f
5b324f
* Tue Apr 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.33-1
5b324f
- Update to 0.33.
5b324f
5b324f
* Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.3202-1
5b324f
- Update to 0.3202.
5b324f
- Specfile cleanup. (#153766)
5b324f
5b324f
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 0.31-5
5b324f
- rebuild
5b324f
5b324f
* Wed Mar 10 2004 Chip Turner <cturner@redhat.com> - 0.31-1
5b324f
- Specfile autogenerated.
5b324f