You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
5.4 KiB
164 lines
5.4 KiB
Name: perl-Test-XML
|
|
Version: 0.08
|
|
Release: 22%{?dist}
|
|
Summary: Compare XML in perl tests
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/Test-XML
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-XML-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
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 similar 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 parsable 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
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
|
|
%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
|
|
* Wed Jan 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.08-22
|
|
- Initial build for MSVSphere 9.3
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.08-22
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
Related: rhbz#1991688
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.08-21
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-20
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-19
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-18
|
|
- Perl 5.32 rebuild
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Mon Sep 2 2019 Paul Howarth <paul@city-fan.org> - 0.08-16
|
|
- Spec tidy-up
|
|
- Use author-independent source URL
|
|
- Drop redundant buildroot cleaning in %%install section
|
|
- Specify more build dependencies
|
|
- Simplify find command using -delete
|
|
- Fix typo in %%description
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-14
|
|
- Perl 5.30 rebuild
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-11
|
|
- Perl 5.28 rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-8
|
|
- Perl 5.26 rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-6
|
|
- Perl 5.24 rebuild
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-3
|
|
- Perl 5.22 rebuild
|
|
|
|
* Tue Oct 7 2014 Paul Howarth <paul@city-fan.org> - 0.08-2
|
|
- BR: perl(Test::Builder::Tester) (#1148580)
|
|
|
|
* Wed Oct 1 2014 Paul Howarth <paul@city-fan.org> - 0.08-1
|
|
- Initial RPM version
|