Blame SPECS/perl-XML-Twig.spec

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