[perl-Test-XML] Initial import (perl-Test-XML-0.08-2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit f87805c85488379a92d9b05d7303b5736b66a018
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Tue Oct 7 20:03:49 2014 +0100

    Initial import (perl-Test-XML-0.08-2)
    
    This module contains generic XML testing tools. Functions include:
    
    is_xml(GOT, EXPECTED [, TESTNAME ])
    
      This function compares GOT and EXPECTED, both of which are strings of XML.
      The comparison works semantically and will ignore differences in syntax
      that are meaningless in xml, such as different quote characters for
      attributes, order of attributes or empty tag styles. It returns true or
      false, depending upon test success.
    
    isnt_xml(GOT, MUST_NOT_BE [, TESTNAME ])
    
      This function is similiar to is_xml(), except that it will fail if GOT and
      MUST_NOT_BE are identical.
    
    is_well_formed_xml(XML [, TESTNAME ])
    
      This function determines whether or not a given XML string is parseable as
      XML.
    
    is_good_xml(XML [, TESTNAME ])
    
        This is an alias for is_well_formed_xml().

 .gitignore         |    1 +
 perl-Test-XML.spec |   96 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d56519 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-XML-[0-9.]*.tar.gz
diff --git a/perl-Test-XML.spec b/perl-Test-XML.spec
new file mode 100644
index 0000000..f8d4b3f
--- /dev/null
+++ b/perl-Test-XML.spec
@@ -0,0 +1,96 @@
+Name:		perl-Test-XML
+Version:	0.08
+Release:	2%{?dist}
+Summary:	Compare XML in perl tests
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/Test-XML/
+Source0:	http://search.cpan.org/CPAN/authors/id/S/SE/SEMANTICO/Test-XML-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+# Build
+BuildRequires:	perl
+BuildRequires:	perl(ExtUtils::MakeMaker)
+# Module
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(Test::Builder)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(warnings)
+BuildRequires:	perl(XML::LibXML)
+BuildRequires:	perl(XML::Parser)
+BuildRequires:	perl(XML::SAX)
+BuildRequires:	perl(XML::SAX::ParserFactory)
+BuildRequires:	perl(XML::SAX::Writer)
+BuildRequires:	perl(XML::SemanticDiff)
+BuildRequires:	perl(XML::Twig)
+BuildRequires:	perl(XML::XPath)
+# Test Suite
+BuildRequires:	perl(Test::Builder::Tester)
+BuildRequires:	perl(XML::SAX::Base)
+# Runtime
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+# Only XML::LibXML is actually needed for Test::XML::XPath, but we require
+# XML::XPath too in case someone wants to use Test::XML::XPath::XML::XPath
+# directly for some reason
+Requires:	perl(XML::LibXML)
+Requires:	perl(XML::XPath)
+
+%description
+This module contains generic XML testing tools. Functions include:
+
+is_xml(GOT, EXPECTED [, TESTNAME ])
+
+  This function compares GOT and EXPECTED, both of which are strings of XML.
+  The comparison works semantically and will ignore differences in syntax
+  that are meaningless in xml, such as different quote characters for
+  attributes, order of attributes or empty tag styles. It returns true or
+  false, depending upon test success.
+
+isnt_xml(GOT, MUST_NOT_BE [, TESTNAME ])
+
+  This function is similiar to is_xml(), except that it will fail if GOT and
+  MUST_NOT_BE are identical.
+
+is_well_formed_xml(XML [, TESTNAME ])
+
+  This function determines whether or not a given XML string is parseable as
+  XML.
+
+is_good_xml(XML [, TESTNAME ])
+
+    This is an alias for is_well_formed_xml().
+
+%prep
+%setup -q -n Test-XML-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%doc Changes README
+%{perl_vendorlib}/Test/
+%{_mandir}/man3/Test::XML.3*
+%{_mandir}/man3/Test::XML::SAX.3*
+%{_mandir}/man3/Test::XML::Twig.3*
+%{_mandir}/man3/Test::XML::XPath.3*
+
+%changelog
+* Tue Oct  7 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 0.08-2
+- BR: perl(Test::Builder::Tester) (#1148580)
+
+* Wed Oct  1 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 0.08-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..9265023 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+490b487e07908358eb64a3c3c5b48143  Test-XML-0.08.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux