From a4c80f73c9eef8f05630e6414695c143644ab7d104a98ed9528ae4cb0a03d2e2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 3 Oct 2017 07:55:29 +0000 Subject: [PATCH] Accepting request 530696 from devel:languages:perl:tobefixed - patch the Makefile to build with perl 5.26 OBS-URL: https://build.opensuse.org/request/show/530696 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-Log-Log4perl?expand=0&rev=12 --- cpanspec.yml | 29 ++--------------------------- perl-MooseX-Log-Log4perl.changes | 5 +++++ perl-MooseX-Log-Log4perl.spec | 7 +++++-- 3 files changed, 12 insertions(+), 29 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index 76ad4a4..74fdf9a 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,28 +1,3 @@ --- -#description_paragraphs: 3 -#description: |- -# override description from CPAN -#summary: override summary from CPAN -#no_testing: broken upstream -#sources: -# - source1 -# - source2 -#patches: -# foo.patch: -p1 -# bar.patch: -#preamble: |- -# BuildRequires: gcc-c++ -#post_prep: |- -# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` -# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL -#post_build: |- -# rm unused.files -#post_install: |- -# sed on %{name}.files -#license: SUSE-NonFree -#skip_noarch: 1 -#custom_build: |- -#./Build build flags=%{?_smp_mflags} --myflag -#custom_test: |- -#startserver && make test -#ignore_requires: Bizarre::Module +post_prep: + sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL diff --git a/perl-MooseX-Log-Log4perl.changes b/perl-MooseX-Log-Log4perl.changes index 6608d83..fa7d0ab 100644 --- a/perl-MooseX-Log-Log4perl.changes +++ b/perl-MooseX-Log-Log4perl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 3 07:48:41 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 + ------------------------------------------------------------------- Wed Dec 9 09:24:31 UTC 2015 - coolo@suse.com diff --git a/perl-MooseX-Log-Log4perl.spec b/perl-MooseX-Log-Log4perl.spec index 5935831..53d7fa7 100644 --- a/perl-MooseX-Log-Log4perl.spec +++ b/perl-MooseX-Log-Log4perl.spec @@ -1,7 +1,7 @@ # # spec file for package perl-MooseX-Log-Log4perl # -# Copyright (c) 2015 SUSE LINUX 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,7 +24,7 @@ Summary: Logging Role for Moose based on Log::Log4perl License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/MooseX-Log-Log4perl/ -Source0: http://www.cpan.org/authors/id/L/LA/LAMMEL/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/L/LA/LAMMEL/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -74,6 +74,9 @@ the main application: %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