Accepting request 530787 from devel:languages:perl

1

OBS-URL: https://build.opensuse.org/request/show/530787
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Term-Encoding?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2017-10-03 21:19:49 +00:00 committed by Git OBS Bridge
commit 9686ffae82
3 changed files with 14 additions and 9 deletions

3
cpanspec.yml Normal file
View File

@ -0,0 +1,3 @@
---
post_prep:
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL

View File

@ -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

View File

@ -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