- add perl526.patch to build with perl 5.26

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ldap?expand=0&rev=38
This commit is contained in:
Stephan Kulow 2017-09-29 10:36:44 +00:00 committed by Git OBS Bridge
parent 9654eeebb5
commit 4e60d28b2e
3 changed files with 20 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 29 10:36:07 UTC 2017 - coolo@suse.com
- add perl526.patch to build with perl 5.26
-------------------------------------------------------------------
Fri Sep 29 10:30:22 UTC 2017 - coolo@suse.com

View File

@ -23,8 +23,9 @@ 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/
Url: http://search.cpan.org/~marschap/perl-ldap/
Source: perl-ldap-%{version}.tar.gz
Patch0: perl526.patch
BuildRequires: perl-Authen-SASL
BuildRequires: perl-Convert-ASN1
BuildRequires: perl-IO-Socket-SSL
@ -43,21 +44,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}
%patch0 -p1
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@"
@ -76,6 +65,6 @@ find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@"
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CREDITS install-nomake README TODO
%doc Changes CREDITS README TODO
%changelog

11
perl526.patch Normal file
View File

@ -0,0 +1,11 @@
Index: perl-ldap-0.65/Makefile.PL
===================================================================
--- perl-ldap-0.65.orig/Makefile.PL
+++ perl-ldap-0.65/Makefile.PL
@@ -1,5 +1,6 @@
# -*- perl -*-
+use lib '.';
use inc::Module::Install;
perl_version 5.008001;