e5c3fd
# Run optional test
e5c3fd
%if ! (0%{?rhel})
e5c3fd
%bcond_without perl_XML_Twig_enables_optional_test
e5c3fd
%else
e5c3fd
%bcond_with perl_XML_Twig_enables_optional_test
e5c3fd
%endif
e5c3fd
e5c3fd
Name:           perl-XML-Twig
e5c3fd
Version:        3.52
e5c3fd
Release:        18%{?dist}
e5c3fd
Summary:        Perl module for processing huge XML documents in tree mode
e5c3fd
License:        GPL+ or Artistic
e5c3fd
URL:            https://metacpan.org/release/XML-Twig
e5c3fd
Source0:        https://cpan.metacpan.org/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz
e5c3fd
BuildArch:      noarch
e5c3fd
BuildRequires:  coreutils
e5c3fd
BuildRequires:  expat >= 2.0.1
e5c3fd
BuildRequires:  glibc-common
e5c3fd
BuildRequires:  make
e5c3fd
BuildRequires:  perl-interpreter
e5c3fd
BuildRequires:  perl-generators
e5c3fd
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
e5c3fd
# Run-time:
e5c3fd
BuildRequires:  perl(base)
e5c3fd
BuildRequires:  perl(bytes)
e5c3fd
BuildRequires:  perl(Carp)
e5c3fd
BuildRequires:  perl(Config)
e5c3fd
BuildRequires:  perl(Encode)
e5c3fd
BuildRequires:  perl(File::Basename)
e5c3fd
BuildRequires:  perl(File::Spec)
e5c3fd
# Keep HTML::Entities::Numbered optional
e5c3fd
# Keep HTML::Tidy optional
e5c3fd
BuildRequires:  perl(HTML::TreeBuilder) >= 4.00
e5c3fd
BuildRequires:  perl(IO::Scalar)
e5c3fd
BuildRequires:  perl(Scalar::Util)
e5c3fd
BuildRequires:  perl(strict)
e5c3fd
BuildRequires:  perl(Text::Wrap)
e5c3fd
BuildRequires:  perl(UNIVERSAL)
e5c3fd
BuildRequires:  perl(utf8)
e5c3fd
BuildRequires:  perl(vars)
e5c3fd
BuildRequires:  perl(warnings)
e5c3fd
BuildRequires:  perl(XML::Parser) >= 2.23
e5c3fd
# Prefer XML::XPathEngine over XML::XPath
e5c3fd
BuildRequires:  perl(XML::XPathEngine)
e5c3fd
# Tests:
e5c3fd
BuildRequires:  perl(Cwd)
e5c3fd
BuildRequires:  perl(FindBin)
e5c3fd
BuildRequires:  perl(lib)
e5c3fd
BuildRequires:  perl(Test)
e5c3fd
BuildRequires:  perl(Test::More)
e5c3fd
# Optional tests:
e5c3fd
%if %{with perl_XML_Twig_enables_optional_test}
e5c3fd
BuildRequires:  perl(IO::String)
e5c3fd
BuildRequires:  perl(LWP)
e5c3fd
BuildRequires:  perl(HTML::Entities)
e5c3fd
%if !( 0%{?rhel} >= 7 )
e5c3fd
BuildRequires:  perl(Test::CPAN::Meta::JSON)
e5c3fd
%endif
e5c3fd
BuildRequires:  perl(Text::Iconv)
e5c3fd
BuildRequires:  perl(Tie::IxHash)
e5c3fd
BuildRequires:  perl(Unicode::Map8)
e5c3fd
BuildRequires:  perl(Unicode::String)
e5c3fd
BuildRequires:  perl(utf8)
e5c3fd
BuildRequires:  perl(XML::Filter::BufferText)
e5c3fd
BuildRequires:  perl(XML::Handler::YAWriter)
e5c3fd
BuildRequires:  perl(XML::SAX::Writer) >= 0.39
e5c3fd
BuildRequires:  perl(XML::Simple)
e5c3fd
%endif
e5c3fd
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
e5c3fd
Requires:       perl(Encode)
e5c3fd
Requires:       perl(HTML::TreeBuilder) >= 4.00
e5c3fd
Requires:       perl(IO::Scalar)
e5c3fd
Requires:       perl(Scalar::Util)
e5c3fd
Requires:       perl(Text::Wrap)
e5c3fd
Requires:       perl(XML::Parser) >= 2.23
e5c3fd
e5c3fd
%{?perl_default_filter}
e5c3fd
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(XML::XPathEngine::NodeSet\\)
e5c3fd
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(xml_split::state\\)
e5c3fd
# Filter under-specified dependencies
e5c3fd
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XML::Parser\\)$
e5c3fd
e5c3fd
%description
e5c3fd
This module provides a way to process XML documents. It is build on
e5c3fd
top of XML::Parser.  XML::Twig offers a tree interface to the
e5c3fd
document, while allowing you to output the parts of it that have been
e5c3fd
completely processed.  It allows minimal resource (CPU and memory)
e5c3fd
usage by building the tree only for the parts of the documents that
e5c3fd
need actual processing, through the use of the twig_roots and
e5c3fd
twig_print_outside_roots options.
e5c3fd
e5c3fd
%prep
e5c3fd
%setup -q -n XML-Twig-%{version}
e5c3fd
iconv -f iso88591 -t utf8 < Changes > Changes.utf8 && \
e5c3fd
    mv -f Changes.utf8 Changes
e5c3fd
e5c3fd
%build
e5c3fd
perl Makefile.PL -y INSTALLDIRS=perl NO_PACKLIST=1 NO_PERLLOCAL=1
e5c3fd
%{make_build}
e5c3fd
e5c3fd
%install
e5c3fd
%{make_install}
e5c3fd
%{_fixperms} %{buildroot}/*
e5c3fd
e5c3fd
%check
e5c3fd
make test
e5c3fd
e5c3fd
%files
e5c3fd
%doc Changes README 
e5c3fd
%{perl_privlib}/*
e5c3fd
%{_bindir}/*
e5c3fd
%{_mandir}/man1/*
e5c3fd
%{_mandir}/man3/*
e5c3fd
e5c3fd
%changelog
e5c3fd
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.52-18
e5c3fd
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
e5c3fd
  Related: rhbz#1991688
e5c3fd
e5c3fd
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.52-17
e5c3fd
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
e5c3fd
e5c3fd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-16
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e5c3fd
e5c3fd
* Mon Dec 14 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-15
e5c3fd
- Do not run optional test on RHEL
e5c3fd
e5c3fd
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-14
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e5c3fd
e5c3fd
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-13
e5c3fd
- Perl 5.32 rebuild
e5c3fd
e5c3fd
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-12
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e5c3fd
e5c3fd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-11
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e5c3fd
e5c3fd
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-10
e5c3fd
- Perl 5.30 rebuild
e5c3fd
e5c3fd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-9
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e5c3fd
e5c3fd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-8
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e5c3fd
e5c3fd
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-7
e5c3fd
- Perl 5.28 rebuild
e5c3fd
e5c3fd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-6
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e5c3fd
e5c3fd
* Mon Aug 14 2017 Petr Pisar <ppisar@redhat.com> - 3.52-5
e5c3fd
- Modernize spec file
e5c3fd
e5c3fd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-4
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e5c3fd
e5c3fd
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-3
e5c3fd
- Perl 5.26 rebuild
e5c3fd
e5c3fd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-2
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e5c3fd
e5c3fd
* Thu Nov 24 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-1
e5c3fd
- 3.52 bump
e5c3fd
e5c3fd
* Wed Nov 23 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.50-1
e5c3fd
- 3.50 bump
e5c3fd
e5c3fd
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.49-5
e5c3fd
- Perl 5.24 rebuild
e5c3fd
e5c3fd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.49-4
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e5c3fd
e5c3fd
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.49-3
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e5c3fd
e5c3fd
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.49-2
e5c3fd
- Perl 5.22 rebuild
e5c3fd
e5c3fd
* Mon Apr 13 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.49-1
e5c3fd
- 3.49 bump
e5c3fd
e5c3fd
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.48-3
e5c3fd
- Perl 5.20 rebuild
e5c3fd
e5c3fd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.48-2
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e5c3fd
e5c3fd
* Mon Mar 31 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.48-1
e5c3fd
- 3.48 bump
e5c3fd
e5c3fd
* Wed Mar 05 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.46-1
e5c3fd
- 3.46 bump
e5c3fd
e5c3fd
* Tue Mar 04 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.45-1
e5c3fd
- 3.45 bump
e5c3fd
e5c3fd
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.44-3
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5c3fd
e5c3fd
* Thu Jul 25 2013 Petr Pisar <ppisar@redhat.com> - 3.44-2
e5c3fd
- Perl 5.18 rebuild
e5c3fd
e5c3fd
* Tue May 14 2013 Petr Šabata <contyk@redhat.com> - 3.44-1
e5c3fd
- 3.44 enhancement update
e5c3fd
e5c3fd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.42-3
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e5c3fd
e5c3fd
* Mon Nov 12 2012 Petr Pisar <ppisar@redhat.com> - 3.42-2
e5c3fd
- Do not build-require Test::CPAN::Meta::JSON on RHEL >= 7
e5c3fd
- Keep Tidy optional
e5c3fd
e5c3fd
* Mon Nov 12 2012 Petr Pisar <ppisar@redhat.com> - 3.42-1
e5c3fd
- 3.42 bump
e5c3fd
e5c3fd
* Tue Aug 14 2012 Petr Šabata <contyk@redhat.com> - 3.41-1
e5c3fd
- 3.41 bump
e5c3fd
e5c3fd
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.40-4
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e5c3fd
e5c3fd
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 3.40-3
e5c3fd
- Perl 5.16 re-rebuild of bootstrapped packages
e5c3fd
e5c3fd
* Mon Jun 18 2012 Petr Pisar <ppisar@redhat.com> - 3.40-2
e5c3fd
- Perl 5.16 rebuild
e5c3fd
e5c3fd
* Fri May 11 2012 Petr Šabata <contyk@redhat.com> - 3.40-1
e5c3fd
- 3.40 bump
e5c3fd
- Dropping defattr and perl command macros
e5c3fd
e5c3fd
* Thu Apr 19 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.39-4
e5c3fd
- make module Kwalitee conditional
e5c3fd
e5c3fd
* Tue Apr 10 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.39-3
e5c3fd
- remove cyclic dependency added by mistake  810563 
e5c3fd
  XML::Twig::Elt, XML::Twig::XPath
e5c3fd
e5c3fd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.39-2
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e5c3fd
e5c3fd
* Thu Sep 22 2011 Petr Sabata <contyk@redhat.com> - 3.39-1
e5c3fd
- 3.39 bump
e5c3fd
e5c3fd
* Sun Jul 24 2011 Iain Arnell <iarnell@gmail.com> 3.38-4
e5c3fd
- update filtering for rpm 4.9
e5c3fd
e5c3fd
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 3.38-3
e5c3fd
- Perl mass rebuild
e5c3fd
e5c3fd
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 3.38-2
e5c3fd
- Perl mass rebuild
e5c3fd
e5c3fd
* Wed Mar 23 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.38-1
e5c3fd
- update to 3.38
e5c3fd
- BR organize according to cpanspec list
e5c3fd
e5c3fd
* Mon Feb 14 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.37-3
e5c3fd
- 677179 filter internal xml_split::state from requires and call filter properly
e5c3fd
- add new BR, which is now in Fedora
e5c3fd
e5c3fd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.37-2
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e5c3fd
e5c3fd
* Mon Oct 18 2010 Marcela Mašláňová <mmaslano@redhat.com> 3.37-1
e5c3fd
- update, fix BR, R
e5c3fd
e5c3fd
* Tue Sep 21 2010 Marcela Mašláňová <mmaslano@redhat.com> 3.35-1
e5c3fd
- update
e5c3fd
e5c3fd
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.34-2
e5c3fd
- Mass rebuild with perl-5.12.0
e5c3fd
e5c3fd
* Tue Jan 19 2010 Chris Weyl <cweyl@alumni.drew.edu> 3.34-1
e5c3fd
- update prov/dep filtering to current guidelines
e5c3fd
- auto-update to 3.34 (by cpan-spec-update 0.01)
e5c3fd
- added a new br on perl(ExtUtils::MakeMaker) (version 0)
e5c3fd
- altered br on perl(XML::Parser) (0 => 2.23)
e5c3fd
e5c3fd
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 3.33-2
e5c3fd
- rebuild against perl 5.10.1
e5c3fd
e5c3fd
* Mon Oct 19 2009 Marcela Mašláňová <mmaslano@redhat.com> - 3.33-1
e5c3fd
- new development release which should fix various bug reports e.g. 529220
e5c3fd
e5c3fd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.32-3
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e5c3fd
e5c3fd
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.32-2
e5c3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e5c3fd
e5c3fd
* Sun Mar  2 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.32-1
e5c3fd
- update to 3.32
e5c3fd
e5c3fd
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.29-6
e5c3fd
- Rebuild for perl 5.10 (again)
e5c3fd
e5c3fd
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.29-5
e5c3fd
- rebuild for new perl
e5c3fd
e5c3fd
* Sun Jul 08 2007 Robin Norwood <rnorwood@redhat.com> - 3.29-4
e5c3fd
- Resolves: rhbz#247247
e5c3fd
- Remove bogus Provides: perl(XML::XPathEngine::NodeSet), and move
e5c3fd
  Requires filter into spec file.
e5c3fd
e5c3fd
* Thu Jun 28 2007 Robin Norwood <rnorwood@redhat.com> - 3.29-3
e5c3fd
- Add several buildrequires for tests and optional features
e5c3fd
e5c3fd
* Sat Feb 17 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.29-2
e5c3fd
- Minor cleanups.
e5c3fd
e5c3fd
* Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 3.29-1
e5c3fd
- New version: 3.29
e5c3fd
e5c3fd
* Mon Jul 17 2006 Jason Vas Dias <jvdias@redhat.com> - 3.26-1
e5c3fd
- Upgrade to 3.26
e5c3fd
e5c3fd
* Mon Jun 05 2006 Jason Vas Dias <jvdias@redhat.com> - 3.25-1
e5c3fd
- Upgrade to 3.25
e5c3fd
e5c3fd
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 3.22-1.1
e5c3fd
- Update to 3.23
e5c3fd
- rebuild for new perl-5.8.8
e5c3fd
e5c3fd
* Mon Dec 19 2005 Jason Vas Dias<jvdias@redhat.com> - 3.22-1
e5c3fd
- Update to 3.22
e5c3fd
e5c3fd
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
e5c3fd
- rebuilt for new gcc
e5c3fd
e5c3fd
* Sun Apr 17 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.17-1
e5c3fd
- Update to 3.17.
e5c3fd
- Specfile cleanup. (#155168)
e5c3fd
e5c3fd
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 3.13-6
e5c3fd
- rebuild
e5c3fd
e5c3fd
* Mon May  3 2004 Chip Turner <cturner@redhat.com> 3.13-5
e5c3fd
- bugzilla 122079, add dep filter to remove bad dependency
e5c3fd
e5c3fd
* Fri Apr 23 2004 Chip Turner <cturner@redhat.com> 3.13-4
e5c3fd
- remove Packager tag
e5c3fd
e5c3fd
* Fri Apr 23 2004 Chip Turner <cturner@redhat.com> 3.13-2
e5c3fd
- bump
e5c3fd
e5c3fd
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 3.13-1
e5c3fd
- update to 3.13
e5c3fd
e5c3fd
* Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
e5c3fd
- update to latest version from CPAN
e5c3fd
e5c3fd
* Mon Aug 26 2002 Chip Turner <cturner@redhat.com>
e5c3fd
- rebuild for build failure
e5c3fd
e5c3fd
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
e5c3fd
- automated release bump and build
e5c3fd
e5c3fd
* Wed May 29 2002 cturner@redhat.com
e5c3fd
- Specfile autogenerated