8
0

Accepting request 530800 from devel:languages:perl:tobefixed

- patch the Makefile to build with perl 5.26

OBS-URL: https://build.opensuse.org/request/show/530800
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-SQL-Translator?expand=0&rev=22
This commit is contained in:
Stephan Kulow
2017-10-03 09:00:16 +00:00
committed by Git OBS Bridge
parent dc7ec2034d
commit acf3c95368
3 changed files with 21 additions and 9 deletions

4
cpanspec.yml Normal file
View File

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

View File

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

View File

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