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-Module-Install-ExtraTests.changes b/perl-Module-Install-ExtraTests.changes index d103fd9..08535a8 100644 --- a/perl-Module-Install-ExtraTests.changes +++ b/perl-Module-Install-ExtraTests.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 3 08:16:05 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 + ------------------------------------------------------------------- Wed Jun 5 18:42:45 UTC 2013 - coolo@suse.com diff --git a/perl-Module-Install-ExtraTests.spec b/perl-Module-Install-ExtraTests.spec index 2b67f75..07d4f0a 100644 --- a/perl-Module-Install-ExtraTests.spec +++ b/perl-Module-Install-ExtraTests.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Module-Install-ExtraTests # -# 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 @@ -20,22 +20,16 @@ Name: perl-Module-Install-ExtraTests Version: 0.008 Release: 0 %define cpan_name Module-Install-ExtraTests -Summary: Contextual tests that the harness can ignore +Summary: Contextual Tests That the Harness Can Ignore License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Module-Install-ExtraTests/ -Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{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(JSON) -#BuildRequires: perl(LWP::Simple) -#BuildRequires: perl(Module::Build) -#BuildRequires: perl(Module::Install::Base) -#BuildRequires: perl(Parse::CPAN::Meta) -#BuildRequires: perl(YAML::Tiny) %{perl_requires} %description @@ -43,6 +37,9 @@ contextual tests that the harness can ignore %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 @@ -58,6 +55,7 @@ contextual tests that the harness can ignore %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes LICENSE MYMETA.json MYMETA.yml README +%doc Changes README +%license LICENSE %changelog