fix provides
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Apache-Test?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
5cfa0f2ade
commit
939c3a6ea6
28
fix-provides.diff
Normal file
28
fix-provides.diff
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
Index: Apache-Test-1.36/lib/Apache/Test5005compat.pm
|
||||||
|
===================================================================
|
||||||
|
--- Apache-Test-1.36.orig/lib/Apache/Test5005compat.pm 2011-02-01 08:51:44.000000000 +0100
|
||||||
|
+++ Apache-Test-1.36/lib/Apache/Test5005compat.pm 2011-04-14 11:51:40.672730852 +0200
|
||||||
|
@@ -72,7 +72,8 @@ sub warnings_pm {
|
||||||
|
my $fh = open_file(shift);
|
||||||
|
|
||||||
|
print $fh <<'EOF';
|
||||||
|
-package warnings;
|
||||||
|
+package
|
||||||
|
+ warnings;
|
||||||
|
|
||||||
|
sub import {}
|
||||||
|
|
||||||
|
Index: Apache-Test-1.36/lib/Apache/TestRequest.pm
|
||||||
|
===================================================================
|
||||||
|
--- Apache-Test-1.36.orig/lib/Apache/TestRequest.pm 2011-02-01 08:51:44.000000000 +0100
|
||||||
|
+++ Apache-Test-1.36/lib/Apache/TestRequest.pm 2011-04-14 11:47:55.317641991 +0200
|
||||||
|
@@ -43,7 +43,8 @@ unless ($ENV{APACHE_TEST_PRETEND_NO_LWP}
|
||||||
|
require HTTP::Request::Common;
|
||||||
|
|
||||||
|
unless (defined &HTTP::Request::Common::OPTIONS) {
|
||||||
|
- package HTTP::Request::Common;
|
||||||
|
+ package
|
||||||
|
+ HTTP::Request::Common;
|
||||||
|
no strict 'vars';
|
||||||
|
*OPTIONS = sub { _simple_req(OPTIONS => @_) };
|
||||||
|
push @EXPORT, 'OPTIONS';
|
@@ -24,6 +24,8 @@ Summary: Test.pm wrapper with helpers for testing Apache
|
|||||||
Url: http://search.cpan.org/dist/Apache-Test/
|
Url: http://search.cpan.org/dist/Apache-Test/
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Source: http://www.cpan.org/authors/id/P/PH/PHRED/%{cpan_name}-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/P/PH/PHRED/%{cpan_name}-%{version}.tar.gz
|
||||||
|
# MANAUAL
|
||||||
|
Patch0: fix-provides.diff
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@@ -41,6 +43,8 @@ testing an Apache server.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
# MANUAL
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
Reference in New Issue
Block a user