- fix build on distributions with old Test::More module
( perl-Catalyst-Plugin-Authentication-use_lib.patch ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Catalyst-Plugin-Authentication?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
c6b0c123a1
commit
e7cb60f9ee
56
perl-Catalyst-Plugin-Authentication-use_lib.patch
Normal file
56
perl-Catalyst-Plugin-Authentication-use_lib.patch
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
Index: Catalyst-Plugin-Authentication-0.10017/t/06_user.t
|
||||||
|
===================================================================
|
||||||
|
--- Catalyst-Plugin-Authentication-0.10017.orig/t/06_user.t
|
||||||
|
+++ Catalyst-Plugin-Authentication-0.10017/t/06_user.t
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
-
|
||||||
|
+use lib '__vendorperl__';
|
||||||
|
use Test::More;
|
||||||
|
use Test::Exception;
|
||||||
|
|
||||||
|
Index: Catalyst-Plugin-Authentication-0.10017/t/live_app_realms_progressive.t
|
||||||
|
===================================================================
|
||||||
|
--- Catalyst-Plugin-Authentication-0.10017.orig/t/live_app_realms_progressive.t
|
||||||
|
+++ Catalyst-Plugin-Authentication-0.10017/t/live_app_realms_progressive.t
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
-
|
||||||
|
+use lib '__vendorperl__';
|
||||||
|
use Test::More;
|
||||||
|
|
||||||
|
use lib 't/lib';
|
||||||
|
Index: Catalyst-Plugin-Authentication-0.10017/t/live_app_remote1.t
|
||||||
|
===================================================================
|
||||||
|
--- Catalyst-Plugin-Authentication-0.10017.orig/t/live_app_remote1.t
|
||||||
|
+++ Catalyst-Plugin-Authentication-0.10017/t/live_app_remote1.t
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
+use lib '__vendorperl__';
|
||||||
|
use Test::More;
|
||||||
|
|
||||||
|
use lib 't/lib';
|
||||||
|
Index: Catalyst-Plugin-Authentication-0.10017/t/live_app_remote2.t
|
||||||
|
===================================================================
|
||||||
|
--- Catalyst-Plugin-Authentication-0.10017.orig/t/live_app_remote2.t
|
||||||
|
+++ Catalyst-Plugin-Authentication-0.10017/t/live_app_remote2.t
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
+use lib '__vendorperl__';
|
||||||
|
use Test::More;
|
||||||
|
|
||||||
|
use lib 't/lib';
|
||||||
|
Index: Catalyst-Plugin-Authentication-0.10017/Makefile.PL
|
||||||
|
===================================================================
|
||||||
|
--- Catalyst-Plugin-Authentication-0.10017.orig/Makefile.PL
|
||||||
|
+++ Catalyst-Plugin-Authentication-0.10017/Makefile.PL
|
||||||
|
@@ -1,4 +1,5 @@
|
||||||
|
use inc::Module::Install 0.87;
|
||||||
|
+use lib '__vendorperl__';
|
||||||
|
|
||||||
|
if ( $Module::Install::AUTHOR ) {
|
||||||
|
system( 'pod2text lib/Catalyst/Plugin/Authentication.pm > README' )
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 5 01:10:28 UTC 2011 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
- fix build on distributions with old Test::More module
|
||||||
|
( perl-Catalyst-Plugin-Authentication-use_lib.patch )
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 4 08:29:01 UTC 2011 - coolo@novell.com
|
Mon Apr 4 08:29:01 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Url: http://search.cpan.org/dist/Catalyst-Plugin-Authentication/
|
|||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
#Source: http://www.cpan.org/authors/id/B/BO/BOBTFISH/Catalyst-Plugin-Authentication-%{version}.tar.gz
|
#Source: http://www.cpan.org/authors/id/B/BO/BOBTFISH/Catalyst-Plugin-Authentication-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
Source: %{cpan_name}-%{version}.tar.gz
|
||||||
|
Patch1: perl-Catalyst-Plugin-Authentication-use_lib.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@@ -36,6 +37,7 @@ BuildRequires: perl(Class::MOP)
|
|||||||
BuildRequires: perl(Moose)
|
BuildRequires: perl(Moose)
|
||||||
BuildRequires: perl(MRO::Compat)
|
BuildRequires: perl(MRO::Compat)
|
||||||
BuildRequires: perl(Test::Exception)
|
BuildRequires: perl(Test::Exception)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
Requires: perl(Catalyst::Plugin::Session) >= 0.10
|
Requires: perl(Catalyst::Plugin::Session) >= 0.10
|
||||||
Requires: perl(Catalyst::Runtime)
|
Requires: perl(Catalyst::Runtime)
|
||||||
Requires: perl(Class::Inspector)
|
Requires: perl(Class::Inspector)
|
||||||
@@ -70,6 +72,10 @@ information.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
%if 0%{?suse_version} >= 1110
|
||||||
|
%patch1 -p1
|
||||||
|
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
|||||||
Reference in New Issue
Block a user