]> git.pld-linux.org Git - packages/perl-RPC-XML.git/commitdiff
Use Apache2::compat for mod_perl support auto/th/perl-RPC-XML-0.76-2
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 16 Jul 2012 20:28:42 +0000 (22:28 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 16 Jul 2012 20:28:42 +0000 (22:28 +0200)
Release 2

mod_perl2.patch [new file with mode: 0644]
perl-RPC-XML.spec

diff --git a/mod_perl2.patch b/mod_perl2.patch
new file mode 100644 (file)
index 0000000..319f78d
--- /dev/null
@@ -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;
index 41b68001aeff4da49a1f3ce72afba357633342c4..a1d0b62c253d494de25daa0edfbc8b2ab4c56df3 100644 (file)
@@ -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 \
This page took 0.064517 seconds and 4 git commands to generate.