8
0

- add Number-WithError-1.01-no-dot-inc.patch from gentoo

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-WithError?expand=0&rev=2
This commit is contained in:
Stephan Kulow
2018-09-16 18:20:48 +00:00
committed by Git OBS Bridge
parent a17c5b2c5d
commit cb098d347e
4 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
From 8c15ff58866e38cb8ce4f7b7ad3ecac941f5863d Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@gentoo.org>
Date: Fri, 7 Sep 2018 20:23:23 +1200
Subject: Fix Makefile.PL to work on perl 5.26+/no-dot-inc perls
Perl 5.26+ have @INC without '.' unless PERL_USE_UNSAFE_INC=1
Perl 5.30+ will have no hack to avoid this problem \o/
---
Makefile.PL | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.PL b/Makefile.PL
index 76b23e1..a3c10b1 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,3 +1,4 @@
+use lib '.';
use inc::Module::Install;
name 'Number-WithError';
--
2.17.1

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
patches:
Number-WithError-1.01-no-dot-inc.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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 16 18:20:19 UTC 2018 - Stephan Kulow <coolo@suse.com>
- add Number-WithError-1.01-no-dot-inc.patch from gentoo
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 12 10:32:23 UTC 2018 - Stephan Kulow <coolo@suse.com> Wed Sep 12 10:32:23 UTC 2018 - Stephan Kulow <coolo@suse.com>

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@@ -25,6 +25,7 @@ License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Number-WithError/ Url: http://search.cpan.org/dist/Number-WithError/
Source0: https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl