From 358cb294cede2d00432b29d57b67472ae5d910e6 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Sep 24 2019 11:35:15 +0000 Subject: For EPEL, don't bother with optional test requiring Parallel::ForkManager --- diff --git a/perl-Archive-Any-Lite.rpmlintrc b/perl-Archive-Any-Lite.rpmlintrc new file mode 100644 index 0000000..0ee2e2d --- /dev/null +++ b/perl-Archive-Any-Lite.rpmlintrc @@ -0,0 +1,3 @@ +from Config import * + +addFilter("spelling-error %description -l en_US toolchains -> ") diff --git a/perl-Archive-Any-Lite.spec b/perl-Archive-Any-Lite.spec index e1d2fe1..60df748 100644 --- a/perl-Archive-Any-Lite.spec +++ b/perl-Archive-Any-Lite.spec @@ -1,18 +1,25 @@ +# Run extra test +%if ! (0%{?rhel}) +%bcond_without perl_Archive_Any_Lite_enables_extra_test +%else +%bcond_with perl_Archive_Any_Lite_enables_extra_test +%endif + Name: perl-Archive-Any-Lite Version: 0.11 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Simple CPAN package extractor License: GPL+ or Artistic URL: https://metacpan.org/release/Archive-Any-Lite -Source0: http://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/Archive-Any-Lite-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Archive/Archive-Any-Lite-%{version}.tar.gz Patch0: Archive-Any-Lite-0.08-EU:MM.patch BuildArch: noarch # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 # Module BuildRequires: perl(Archive::Tar) >= 1.76 @@ -30,7 +37,9 @@ BuildRequires: perl(FindBin) BuildRequires: perl(Test::More) >= 0.82 BuildRequires: perl(Test::UseAllModules) >= 0.10 # Optional Tests +%if %{with perl_Archive_Any_Lite_enables_extra_test} BuildRequires: perl(Parallel::ForkManager) >= 0.7.6 +%endif BuildRequires: perl(Test::Pod) >= 1.18 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 # Runtime @@ -58,7 +67,7 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete -%{_fixperms} %{buildroot} +%{_fixperms} -c %{buildroot} %check make test TEST_POD=1 @@ -70,6 +79,10 @@ make test TEST_POD=1 %{_mandir}/man3/Archive::Any::Lite.3* %changelog +* Tue Sep 24 2019 Paul Howarth - 0.11-12 +- For EPEL, don't bother with optional test requiring Parallel::ForkManager +- Use author-independent source URL + * Fri Jul 26 2019 Fedora Release Engineering - 0.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild