[perl-XML-Parser-Lite] Initial commit (#1032425)

Petr Šabata psabata at fedoraproject.org
Mon Sep 8 15:11:14 UTC 2014


commit 0d43a0defc32869719a37cf2b082729604d2a5fb
Author: Petr Šabata <contyk at redhat.com>
Date:   Mon Sep 8 17:11:07 2014 +0200

    Initial commit (#1032425)

 .gitignore                             |    1 +
 perl-XML-Parser-Lite-0.719-plan.patch  |   13 ++++++
 perl-XML-Parser-Lite-0.719-tests.patch |   18 +++++++++
 perl-XML-Parser-Lite.spec              |   66 ++++++++++++++++++++++++++++++++
 sources                                |    1 +
 5 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..049ce8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XML-Parser-Lite-0.719.tar.gz
diff --git a/perl-XML-Parser-Lite-0.719-plan.patch b/perl-XML-Parser-Lite-0.719-plan.patch
new file mode 100644
index 0000000..d1a39e2
--- /dev/null
+++ b/perl-XML-Parser-Lite-0.719-plan.patch
@@ -0,0 +1,13 @@
+diff --git a/t/26-xmlrpc.t b/t/26-xmlrpc.t
+index c747636..199b266 100644
+--- a/t/26-xmlrpc.t
++++ b/t/26-xmlrpc.t
+@@ -25,7 +25,7 @@ SKIP: {
+     $r = $s->test_connection;
+ 
+     unless ( defined $r && defined $r->envelope ) {
+-        skip 'need XMLRPC::Lite', 8 if $@;
++        skip 'need XMLRPC::Lite', 6 if $@;
+         print "1..0 # Skip: ", $s->transport->status, "\n";
+         exit;
+     }
diff --git a/perl-XML-Parser-Lite-0.719-tests.patch b/perl-XML-Parser-Lite-0.719-tests.patch
new file mode 100644
index 0000000..df38745
--- /dev/null
+++ b/perl-XML-Parser-Lite-0.719-tests.patch
@@ -0,0 +1,18 @@
+diff --git a/t/37-mod_xmlrpc.t b/t/37-mod_xmlrpc.t
+index 67d5370..b8a23bf 100644
+--- a/t/37-mod_xmlrpc.t
++++ b/t/37-mod_xmlrpc.t
+@@ -7,11 +7,11 @@ use Test::More;
+ 
+ BEGIN { plan tests => 17 }
+ 
+-eval { require XMLRPC::Lite };
++eval { require XMLRPC::Test::Server };
+ 
+ SKIP: {
+ 
+-    skip 'need XMLRPC::Lite', 17 if $@;
++    skip 'need XMLRPC::Test::Server', 17 if $@;
+ 
+     XMLRPC::Test::Server::run_for( shift || 'http://localhost/mod_xmlrpc' );
+ 
diff --git a/perl-XML-Parser-Lite.spec b/perl-XML-Parser-Lite.spec
new file mode 100644
index 0000000..44ba7ef
--- /dev/null
+++ b/perl-XML-Parser-Lite.spec
@@ -0,0 +1,66 @@
+Name:           perl-XML-Parser-Lite
+Version:        0.719
+Release:        3%{?dist}
+Summary:        Lightweight regexp-based XML parser
+License:        (GPL+ or Artistic) and REX
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/XML-Parser-Lite/
+Source0:        http://www.cpan.org/authors/id/P/PH/PHRED/XML-Parser-Lite-%{version}.tar.gz
+# rt#91434
+Patch0:         perl-XML-Parser-Lite-0.719-tests.patch
+# rt#98635
+Patch1:         perl-XML-Parser-Lite-0.719-plan.patch
+BuildArch:      noarch
+# SOAP::Lite is not actually needed
+BuildRequires:  perl
+BuildRequires:  perl(diagnostics)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(re)
+BuildRequires:  perl(SOAP::Test)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XMLRPC::Lite)
+BuildRequires:  perl(XMLRPC::Test::Server)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+
+%description
+This Perl module implements an XML parser with an interface similar to
+XML::Parser.  Though not all callbacks are supported, you should be able to
+use it in the same way you use XML::Parser.
+
+%prep
+%setup -q -n XML-Parser-Lite-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} +
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Sep 05 2014 Petr Šabata <contyk at redhat.com> - 0.719-3
+- Avoid koji build failures by correcting the test plan
+
+* Thu Feb 06 2014 Petr Šabata <contyk at redhat.com> - 0.719-2
+- Patch the test suite so it actually works
+
+* Wed Feb 05 2014 Petr Šabata <contyk at redhat.com> - 0.719-1
+- 0.719 bump
+
+* Wed Nov 20 2013 Petr Šabata <contyk at redhat.com> - 0.717-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..bf8fe0b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a2da1ddc0248f48f87431544c4926e12  XML-Parser-Lite-0.719.tar.gz


More information about the scm-commits mailing list