From 31d9ca029b886749e1bd7cacefba58850ec5b9d2 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Sun, 13 Oct 2019 12:33:48 +0100 Subject: [PATCH] Build without Class::Load::XS for EPEL --- perl-Class-Load.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/perl-Class-Load.spec b/perl-Class-Load.spec index 501c0bd..7dc80fb 100644 --- a/perl-Class-Load.spec +++ b/perl-Class-Load.spec @@ -1,6 +1,13 @@ +# Class::Load::XS is an optional extra +%if 0%{?rhel:1} +%bcond_with Class_Load_XS +%else +%bcond_without Class_Load_XS +%endif + Name: perl-Class-Load Version: 0.25 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A working (require "Class::Name") and more License: GPL+ or Artistic URL: https://metacpan.org/release/Class-Load @@ -31,7 +38,7 @@ BuildRequires: perl(Try::Tiny) # Regular test suite requirements # =================================================================== # Class::Load::XS → Class::Load -%if 0%{!?perl_bootstrap:1} +%if 0%{!?perl_bootstrap:1} && %{with Class_Load_XS} BuildRequires: perl(Class::Load::XS) %endif BuildRequires: perl(CPAN::Meta) >= 2.120900 @@ -87,6 +94,9 @@ make test %{_mandir}/man3/Class::Load.3* %changelog +* Sun Oct 13 2019 Paul Howarth - 0.25-9 +- Build without Class::Load::XS for EPEL + * Fri Jul 26 2019 Fedora Release Engineering - 0.25-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild