From 939c3a6ea62d497478fd2eea6f8efdb866f19e809f86ccf986404de1c8fb3ac5 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 14 Apr 2011 09:52:30 +0000 Subject: [PATCH] fix provides OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Apache-Test?expand=0&rev=3 --- fix-provides.diff | 28 ++++++++++++++++++++++++++++ perl-Apache-Test.spec | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 fix-provides.diff diff --git a/fix-provides.diff b/fix-provides.diff new file mode 100644 index 0000000..962a36f --- /dev/null +++ b/fix-provides.diff @@ -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'; diff --git a/perl-Apache-Test.spec b/perl-Apache-Test.spec index 5a3e815..28aa3b1 100644 --- a/perl-Apache-Test.spec +++ b/perl-Apache-Test.spec @@ -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