- fix build on distributions with old Test::More module
( perl-Data-DPath-use_lib.patch ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-DPath?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
768957937d
commit
9a5c841b05
78
perl-Data-DPath-use_lib.patch
Normal file
78
perl-Data-DPath-use_lib.patch
Normal file
@@ -0,0 +1,78 @@
|
||||
Index: Data-DPath-0.43/t/basics_without_overload.t
|
||||
===================================================================
|
||||
--- Data-DPath-0.43.orig/t/basics_without_overload.t
|
||||
+++ Data-DPath-0.43/t/basics_without_overload.t
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use Test::Deep;
|
||||
use Data::DPath 'dpath', 'dpathr';
|
||||
Index: Data-DPath-0.43/t/data_dpath.t
|
||||
===================================================================
|
||||
--- Data-DPath-0.43.orig/t/data_dpath.t
|
||||
+++ Data-DPath-0.43/t/data_dpath.t
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use Test::Deep;
|
||||
use Data::DPath 'dpath', 'dpathr';
|
||||
Index: Data-DPath-0.43/t/iterator.t
|
||||
===================================================================
|
||||
--- Data-DPath-0.43.orig/t/iterator.t
|
||||
+++ Data-DPath-0.43/t/iterator.t
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use Test::Deep;
|
||||
use Data::DPath 'dpathi';
|
||||
Index: Data-DPath-0.43/t/parallel.t
|
||||
===================================================================
|
||||
--- Data-DPath-0.43.orig/t/parallel.t
|
||||
+++ Data-DPath-0.43/t/parallel.t
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use Data::DPath::Context;
|
||||
use List::Util 'min';
|
||||
Index: Data-DPath-0.43/t/references.t
|
||||
===================================================================
|
||||
--- Data-DPath-0.43.orig/t/references.t
|
||||
+++ Data-DPath-0.43/t/references.t
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use Test::Deep;
|
||||
use Data::DPath qw'dpathr dpath';
|
||||
Index: Data-DPath-0.43/t/zeros.t
|
||||
===================================================================
|
||||
--- Data-DPath-0.43.orig/t/zeros.t
|
||||
+++ Data-DPath-0.43/t/zeros.t
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use Test::Deep;
|
||||
use Data::DPath 'dpath';
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 4 23:45:49 UTC 2011 - lars@linux-schulserver.de
|
||||
|
||||
- fix build on distributions with old Test::More module
|
||||
( perl-Data-DPath-use_lib.patch )
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 3 06:16:15 UTC 2011 - coolo@opensuse.org
|
||||
|
||||
|
@@ -20,10 +20,11 @@ Version: 0.43
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
%define cpan_name Data-DPath
|
||||
Summary: DPath is not XPath!
|
||||
Summary: DPath is not XPath
|
||||
Url: http://search.cpan.org/dist/Data-DPath/
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/S/SC/SCHWIGON/%{cpan_name}-%{version}.tar.gz
|
||||
Patch1: perl-Data-DPath-use_lib.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
@@ -53,10 +54,16 @@ Requires: perl(Text::Balanced) >= 2.02
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
DPath is not XPath!
|
||||
With this module you can address points in a datastructure by describing a
|
||||
"path" to it using hash keys, array indexes or some wildcard-like steps. It is
|
||||
inspired by XPath but differs from it.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%if 0%{?suse_version} <= 1120
|
||||
%patch1 -p1
|
||||
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" t/*.t
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
|
Reference in New Issue
Block a user