Stephan Kulow
2011-04-14 09:52:30 +00:00
committed by Git OBS Bridge
parent 5cfa0f2ade
commit 939c3a6ea6
2 changed files with 32 additions and 0 deletions

28
fix-provides.diff Normal file
View 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';

View File

@@ -24,6 +24,8 @@ Summary: Test.pm wrapper with helpers for testing Apache
Url: http://search.cpan.org/dist/Apache-Test/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/P/PH/PHRED/%{cpan_name}-%{version}.tar.gz
# MANAUAL
Patch0: fix-provides.diff
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -41,6 +43,8 @@ testing an Apache server.
%prep
%setup -q -n %{cpan_name}-%{version}
# MANUAL
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor