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