diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..077d009 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,4 @@ +--- +post_prep: + sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL +license: (Artistic-1.0 or GPL-1.0+) and GPL-2.0 diff --git a/perl-SQL-Translator.changes b/perl-SQL-Translator.changes index 3b8baf4..8dde1d1 100644 --- a/perl-SQL-Translator.changes +++ b/perl-SQL-Translator.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 3 08:20:30 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 + ------------------------------------------------------------------- Sat Feb 7 16:23:26 UTC 2015 - coolo@suse.com diff --git a/perl-SQL-Translator.spec b/perl-SQL-Translator.spec index 015f752..3ec3cd6 100644 --- a/perl-SQL-Translator.spec +++ b/perl-SQL-Translator.spec @@ -1,7 +1,7 @@ # # spec file for package perl-SQL-Translator # -# 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 @@ -19,12 +19,14 @@ Name: perl-SQL-Translator Version: 0.11021 Release: 0 +#Upstream: Artistic-1.0 or GPL-1.0+ %define cpan_name SQL-Translator -Summary: Manipulate structured data definitions (SQL and more) +Summary: Manipulate Structured Data Definitions (Sql and More) License: (Artistic-1.0 or GPL-1.0+) and GPL-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/SQL-Translator/ -Source: http://www.cpan.org/authors/id/I/IL/ILMARI/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/I/IL/ILMARI/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -40,7 +42,7 @@ BuildRequires: perl(Package::Variant) >= 1.001001 BuildRequires: perl(Parse::RecDescent) >= 1.967009 BuildRequires: perl(Sub::Quote) BuildRequires: perl(Test::Differences) -BuildRequires: perl(Test::Exception) >= 0.31 +BuildRequires: perl(Test::Exception) >= 0.310000 BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Try::Tiny) >= 0.04 BuildRequires: perl(XML::Writer) >= 0.500 @@ -63,13 +65,11 @@ Recommends: perl(Template) >= 2.20 Recommends: perl(Text::RecordParser) >= 0.02 Recommends: perl(XML::LibXML) >= 1.69 %{perl_requires} -# MANUAL -Requires: perl(YAML) >= 0.66 %description This documentation covers the API for SQL::Translator. For a more general -discussion of how to use the modules and scripts, please see the -SQL::Translator::Manual manpage. +discussion of how to use the modules and scripts, please see +SQL::Translator::Manual. SQL::Translator is a group of Perl modules that converts vendor-specific SQL table definitions into other formats, such as other vendor-specific @@ -85,7 +85,10 @@ manipulation of data (INSERT, UPDATE, DELETE). %prep %setup -q -n %{cpan_name}-%{version} -find . -type f -print0 | xargs -0 chmod 644 +find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 +# 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