Do not run optional test on RHEL

This commit is contained in:
Jitka Plesnikova 2020-12-18 14:03:16 +01:00
parent f1fc1a235e
commit 376195ad9b

View File

@ -1,6 +1,13 @@
# Run optional tests
%if ! (0%{?rhel})
%bcond_without perl_XML_XPath_enables_optional_test
%else
%bcond_with perl_XML_XPath_enables_optional_test
%endif
Name: perl-XML-XPath
Version: 1.44
Release: 7%{?dist}
Release: 8%{?dist}
Summary: XPath parser and evaluator for Perl
# XML/XPath.pm, XML/XPath/PerlSAX.pm, REAME: GPL+ or Artistic
# Others: Artistic 2.0
@ -34,9 +41,11 @@ BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(utf8)
# Optional tests
%if %{with perl_XML_XPath_enables_optional_test}
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::CPAN::Meta::JSON)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(POSIX)
@ -55,11 +64,11 @@ this as they support functionality beyond XPath.
%setup -q -n XML-XPath-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
@ -79,6 +88,9 @@ make test
%{_mandir}/man3/*.3*
%changelog
* Tue Dec 15 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.44-8
- Do not run optional test on RHEL
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.44-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild