Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-XML-XPathEngine.git#4cc6446edbd09f803594d441eb1c116acb84bbd2
This commit is contained in:
DistroBaker 2021-01-18 16:36:00 +00:00
parent 9c6a9b5ca7
commit 3ccd0010d7

View File

@ -1,14 +1,19 @@
# Perform optional tests
%bcond_without perl_XML_XPathEngine_enables_optional_test
Name: perl-XML-XPathEngine Name: perl-XML-XPathEngine
Version: 0.14 Version: 0.14
Release: 19%{?dist} Release: 20%{?dist}
Summary: Re-usable XPath engine for DOM-like trees Summary: Re-usable XPath engine for DOM-like trees
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/XML-XPathEngine URL: https://metacpan.org/release/XML-XPathEngine
Source0: https://cpan.metacpan.org/modules/by-module/XML/XML-XPathEngine-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/XML/XML-XPathEngine-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: perl-interpreter BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Run-time: # Run-time:
@ -20,10 +25,12 @@ BuildRequires: perl(vars)
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
%if %{with perl_XML_XPathEngine_enables_optional_test}
# Optional tests: # Optional tests:
BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04 BuildRequires: perl(Test::Pod::Coverage) >= 1.04
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(POSIX) Requires: perl(POSIX)
%description %description
@ -34,17 +41,11 @@ module/classes that implement trees.
%setup -q -n XML-XPathEngine-%{version} %setup -q -n XML-XPathEngine-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
rm -rf $RPM_BUILD_ROOT %{make_install}
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
@ -56,6 +57,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Mon Jan 18 2021 Petr Pisar <ppisar@redhat.com> - 0.14-20
- Modernize a spec file
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-19 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild