From 00409f9b1cbb4487d05ff995a8f41fc0b339eda46626540165e716723cce01cb Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 3 Oct 2017 08:53:53 +0000 Subject: [PATCH] Accepting request 530749 from devel:languages:perl:tobefixed fix OBS-URL: https://build.opensuse.org/request/show/530749 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Encoding?expand=0&rev=3 --- cpanspec.yml | 3 +++ perl-Term-Encoding.changes | 5 +++++ perl-Term-Encoding.spec | 15 ++++++--------- 3 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..a09effb --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,3 @@ +--- +post_prep: + sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL diff --git a/perl-Term-Encoding.changes b/perl-Term-Encoding.changes index 63668f8..27631dc 100644 --- a/perl-Term-Encoding.changes +++ b/perl-Term-Encoding.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 3 08:21:08 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 + ------------------------------------------------------------------- Sat Sep 28 11:20:21 UTC 2013 - coolo@suse.com diff --git a/perl-Term-Encoding.spec b/perl-Term-Encoding.spec index f99f6ea..766efc8 100644 --- a/perl-Term-Encoding.spec +++ b/perl-Term-Encoding.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Term-Encoding # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,18 +24,12 @@ Summary: Detect encoding of the current terminal License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Term-Encoding/ -Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(inc::Module::Install) -#BuildRequires: perl(LWP::Simple) -#BuildRequires: perl(Module::Build) -#BuildRequires: perl(Module::Install::Base) -#BuildRequires: perl(Term::Encoding) -#BuildRequires: perl(Win32::Console) -#BuildRequires: perl(YAML) %{perl_requires} %description @@ -44,6 +38,9 @@ terminal expects, in various ways. %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL +# MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor