diff --git a/cpanspec.yml b/cpanspec.yml index d6bcdca..e350110 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,27 +1,6 @@ --- -#description_paragraphs: 3 -#description: |- -# override description from CPAN -#summary: override summary from CPAN -#no_testing: broken upstream -#sources: -# - source1 -# - source2 patches: fix-package.diff: -p1 -#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-IRI.changes b/perl-IRI.changes index fe01c4c..35a8de7 100644 --- a/perl-IRI.changes +++ b/perl-IRI.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 3 07:28:41 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 + ------------------------------------------------------------------- Thu Jul 21 05:28:55 UTC 2016 - coolo@suse.com diff --git a/perl-IRI.spec b/perl-IRI.spec index 0908c10..85daff6 100644 --- a/perl-IRI.spec +++ b/perl-IRI.spec @@ -1,7 +1,7 @@ # # spec file for package perl-IRI # -# Copyright (c) 2016 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,8 @@ Summary: Internationalized Resource Identifiers License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/IRI/ -Source0: http://www.cpan.org/authors/id/G/GW/GWILLIAMS/%{cpan_name}-%{version}.tar.gz +#Source0: https://cpan.metacpan.org/authors/id/G/GW/GWILLIAMS/%{cpan_name}-0.008.tar.gz +Source0: IRI-0.006.tar.gz Source1: cpanspec.yml Patch0: fix-package.diff BuildArch: noarch @@ -51,6 +52,9 @@ serializing, and base resolution. %prep %setup -q -n %{cpan_name}-%{version} %patch0 -p1 +# 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