[packages/perl-RPC-XML] Use Apache2::compat for mod_perl support Release 2
baggins
baggins at pld-linux.org
Mon Jul 16 22:29:34 CEST 2012
commit b1a15a13b8d003f0f07ca936cdc234fe5025015f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Jul 16 22:28:42 2012 +0200
Use Apache2::compat for mod_perl support
Release 2
mod_perl2.patch | 20 ++++++++++++++++++++
perl-RPC-XML.spec | 7 ++++++-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/mod_perl2.patch b/mod_perl2.patch
new file mode 100644
index 0000000..319f78d
--- /dev/null
+++ b/mod_perl2.patch
@@ -0,0 +1,20 @@
+--- RPC-XML-0.76/lib/Apache/RPC/Server.pm~ 2011-08-15 06:36:39.000000000 +0200
++++ RPC-XML-0.76/lib/Apache/RPC/Server.pm 2012-07-16 22:22:46.517582097 +0200
+@@ -36,6 +36,7 @@
+ use Socket;
+ use File::Spec;
+
++use Apache2::compat;
+ use Apache;
+ use Apache::File; # For ease-of-use methods like set_last_modified
+ use Apache::Constants ':common';
+--- RPC-XML-0.76/lib/Apache/RPC/Status.pm~ 2011-07-23 09:02:47.000000000 +0200
++++ RPC-XML-0.76/lib/Apache/RPC/Status.pm 2012-07-16 22:23:20.637580893 +0200
+@@ -48,6 +48,7 @@
+ use subs qw(header footer main_screen server_summary server_detail
+ method_summary method_detail);
+
++use Apache2::compat;
+ use Apache;
+ use Apache::Constants qw(DECLINED OK SERVER_VERSION);
+ use CGI;
diff --git a/perl-RPC-XML.spec b/perl-RPC-XML.spec
index 41b6800..a1d0b62 100644
--- a/perl-RPC-XML.spec
+++ b/perl-RPC-XML.spec
@@ -9,11 +9,12 @@ Summary: RPC::XML - an implementation of XML-RPC for Perl
Summary(pl.UTF-8): RPC::XML - implementacja standardu XML-RPC dla Perla
Name: perl-RPC-XML
Version: 0.76
-Release: 1
+Release: 2
License: Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 731aaf588e6bd45b3a9cece8d4223e48
+Patch0: mod_perl2.patch
URL: http://www.blackperl.com/RPC::XML/
BuildRequires: perl-XML-Parser
BuildRequires: perl-devel >= 1:5.8.0
@@ -22,6 +23,9 @@ BuildRequires: rpm-perlprov >= 4.1-13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
BuildArch: noarch
+# these are provided by mod_perl's Apache2::compat
+%define _noautoreq perl(Apache) perl(Apache::Constants) perl(Apache::File)
+
%description
The RPC::XML package for Perl is an implementation of the XML-RPC
standard as defined at <http://www.xmlrpc.com/spec/>. It is written in
@@ -49,6 +53,7 @@ Serwer RPC jako procedura obsługi treści Apache/mod_perl.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
More information about the pld-cvs-commit
mailing list