52b561
%if ! (0%{?rhel})
52b561
%bcond_without perl_XML_XPath_enables_optional_test
52b561
%else
52b561
%bcond_with perl_XML_XPath_enables_optional_test
52b561
%endif
52b561
52b561
Name:           perl-XML-XPath
52b561
Version:        1.42
52b561
Release:        3%{?dist}
52b561
Summary:        XPath parser and evaluator for Perl
52b561
# XML/XPath.pm, XML/XPath/PerlSAX.pm, REAME: GPL+ or Artistic
52b561
# Others: Artistic 2.0
52b561
License:        Artistic 2.0 and (GPL+ or Artistic)
52b561
URL:            http://search.cpan.org/dist/XML-XPath/
52b561
Source0:        http://www.cpan.org/authors/id/M/MA/MANWAR/XML-XPath-%{version}.tar.gz
52b561
52b561
BuildArch:      noarch
52b561
BuildRequires:  coreutils
52b561
BuildRequires:  make
52b561
BuildRequires:  perl-generators
52b561
BuildRequires:  perl-interpreter
52b561
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
52b561
BuildRequires:  perl(strict)
52b561
BuildRequires:  perl(warnings)
52b561
# Run-time
52b561
BuildRequires:  perl(Carp)
52b561
BuildRequires:  perl(Data::Dumper)
52b561
BuildRequires:  perl(Exporter)
52b561
BuildRequires:  perl(IO::File)
52b561
BuildRequires:  perl(overload)
52b561
BuildRequires:  perl(POSIX)
52b561
BuildRequires:  perl(Scalar::Util)
52b561
BuildRequires:  perl(vars)
52b561
BuildRequires:  perl(XML::Parser) >= 2.23
52b561
# Tests
52b561
BuildRequires:  perl(lib)
52b561
BuildRequires:  perl(open)
52b561
BuildRequires:  perl(Path::Tiny) >= 0.076
52b561
BuildRequires:  perl(Test)
52b561
BuildRequires:  perl(Test::More)
52b561
BuildRequires:  perl(utf8)
52b561
# Optional tests
52b561
%if %{with perl_XML_XPath_enables_optional_test}
52b561
BuildRequires:  perl(CPAN::Meta)
52b561
BuildRequires:  perl(Test::CPAN::Meta)
52b561
BuildRequires:  perl(Test::CPAN::Meta::JSON)
52b561
%endif
52b561
52b561
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
52b561
Requires:       perl(POSIX)
52b561
Requires:       perl(warnings)
52b561
Requires:       perl(XML::Parser) >= 2.23
52b561
52b561
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::Parser\\)$
52b561
52b561
%description
52b561
This module aims to comply exactly to the XPath specification at
52b561
http://www.w3.org/TR/xpath and yet allow extensions to be added in the
52b561
form of functions. Modules such as XSLT and XPointer may need to do
52b561
this as they support functionality beyond XPath.
52b561
52b561
%prep
52b561
%setup -q -n XML-XPath-%{version}
52b561
52b561
%build
52b561
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
52b561
make %{?_smp_mflags}
52b561
52b561
%install
52b561
make pure_install DESTDIR=$RPM_BUILD_ROOT
52b561
%{_fixperms} $RPM_BUILD_ROOT/*
52b561
52b561
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
52b561
cat >> $RPM_BUILD_ROOT/%{_mandir}/man1/xpath.1 << EOF
52b561
.so man3/XML::XPath.3pm
52b561
EOF
52b561
52b561
%check
52b561
make test
52b561
52b561
%files
52b561
%license LICENSE
52b561
%doc Changes README TODO
52b561
%{_bindir}/xpath
52b561
%{perl_vendorlib}/XML
52b561
%{_mandir}/man1/xpath*
52b561
%{_mandir}/man3/*.3*
52b561
52b561
%changelog
52b561
* Tue Jul 17 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-3
52b561
- Do not run optional test on RHEL
52b561
52b561
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.42-2
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
52b561
52b561
* Mon Jul 31 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-1
52b561
- 1.42 bump
52b561
52b561
* Fri Jul 28 2017 Petr Pisar <ppisar@redhat.com> - 1.41-1
52b561
- 1.41 bump
52b561
52b561
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.40-4
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
52b561
52b561
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.40-3
52b561
- Perl 5.26 rebuild
52b561
52b561
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.40-2
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
52b561
52b561
* Mon Nov 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.40-1
52b561
- 1.40 bump
52b561
52b561
* Wed Nov 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.39-1
52b561
- 1.39 bump
52b561
52b561
* Mon Oct 31 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.38-1
52b561
- 1.38 bump
52b561
52b561
* Thu Jun 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-1
52b561
- 1.37 bump
52b561
52b561
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.36-2
52b561
- Perl 5.24 rebuild
52b561
52b561
* Thu Apr 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.36-1
52b561
- 1.36 bump
52b561
52b561
* Mon Apr 11 2016 Petr Pisar <ppisar@redhat.com> - 1.35-1
52b561
- 1.35 bump
52b561
52b561
* Fri Apr 08 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.34-2
52b561
- Add BR perl(CPAN::Meta) (BZ#1325123)
52b561
52b561
* Wed Mar 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.34-1
52b561
- 1.34 bump
52b561
52b561
* Mon Mar 07 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.33-1
52b561
- 1.33 bump
52b561
52b561
* Wed Feb 24 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.32-1
52b561
- 1.32 bump
52b561
52b561
* Mon Feb 22 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-1
52b561
- 1.31 bump
52b561
52b561
* Mon Feb 08 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-1
52b561
- 1.30 bump
52b561
52b561
* Thu Feb 04 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.29-1
52b561
- 1.29 bump
52b561
52b561
* Mon Feb 01 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.28-1
52b561
- 1.28 bump
52b561
52b561
* Tue Jan 26 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-1
52b561
- 1.26 bump
52b561
52b561
* Thu Jan 21 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-1
52b561
- 1.25 bump
52b561
52b561
* Wed Jan 20 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.24-1
52b561
- 1.24 bump
52b561
52b561
* Wed Jan 13 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.22-1
52b561
- 1.22 bump
52b561
52b561
* Tue Jan 12 2016 Petr Pisar <ppisar@redhat.com> - 1.21-1
52b561
- 1.21 bump
52b561
52b561
* Mon Jan 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-1
52b561
- 1.20 bump
52b561
52b561
* Fri Jan 08 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.19-1
52b561
- 1.19 bump
52b561
52b561
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-28
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
52b561
52b561
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-27
52b561
- Perl 5.22 rebuild
52b561
52b561
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-26
52b561
- Perl 5.20 rebuild
52b561
52b561
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-25
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
52b561
52b561
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-24
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
52b561
52b561
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 1.13-23
52b561
- Perl 5.18 rebuild
52b561
52b561
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-22
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
52b561
52b561
* Tue Oct 16 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.13-21
52b561
- revert the patch. It breaks backward compatibility for some apps. 
52b561
- the xpath has still man page installed.
52b561
52b561
* Fri Aug 24 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-20
52b561
- Specify all dependencies.
52b561
52b561
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-19
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
52b561
52b561
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 1.13-18
52b561
- Perl 5.16 rebuild
52b561
52b561
* Fri Mar 16 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.13-17
52b561
- 680418 - missing man page for xpath
52b561
- applied debian patch, which added POD into xpath code, but also fix debian bug(#185292)
52b561
52b561
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-16
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
52b561
52b561
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.13-15
52b561
- Perl mass rebuild
52b561
52b561
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-14
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
52b561
52b561
* Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.13-13
52b561
- 661697 rebuild for fixing problems with vendorach/lib
52b561
52b561
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.13-12
52b561
- Mass rebuild with perl-5.12.0
52b561
52b561
* Thu Dec 10 2009 Marcela Maslanova <mmaslano@redhat.com> - 1.13-11
52b561
- 541668 fix requires for review
52b561
52b561
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.13-10
52b561
- rebuild against perl 5.10.1
52b561
52b561
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-9
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
52b561
52b561
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-8
52b561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
52b561
52b561
* Mon Jun 2  2008 Marcela Maslanova <mmaslano@redhat.com> - 1.13-7
52b561
- rebuild and remove ||: from check part
52b561
52b561
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.13-6
52b561
- Rebuild for perl 5.10 (again)
52b561
52b561
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.13-5
52b561
- rebuild for new perl
52b561
52b561
* Wed Oct 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.13-4.1
52b561
- correct license tag
52b561
- add BR: perl(ExtUtils::MakeMaker)
52b561
52b561
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.13-4
52b561
- bump for mass rebuild
52b561
52b561
* Wed Apr  6 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
52b561
- rebuilt
52b561
52b561
* Sun Jul 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-2
52b561
- Bring up to date with current fedora.us Perl spec template.
52b561
52b561
* Sun Oct 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.1
52b561
- First build.