Tidy up and make buildable for EPEL-8

- Avoid optional test dependency perl(Moo) for EPEL builds
- Use author-independent source URL
- Simplify find command using -delete
epel9 imports/e9/perl-CPAN-Changes-0.400002-13.el9
Paul Howarth 5 years ago
parent 22d14eb1e1
commit 79b6834493

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error %description -l en_US programmatically -> ")

@ -1,14 +1,17 @@
Name: perl-CPAN-Changes
Summary: Read and write Changes files
Version: 0.400002
Release: 12%{?dist}
Release: 13%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/CPAN-Changes
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/CPAN-Changes-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/CPAN/CPAN-Changes-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Encode)
@ -24,7 +27,9 @@ BuildRequires: perl(Pod::Usage)
# Test Suite
BuildRequires: perl(Test::More) >= 0.96
# Optional Tests
%if 0%{?fedora:1}
BuildRequires: perl(Moo)
%endif
# Extra Tests
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
@ -53,8 +58,8 @@ make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%check
make test
@ -73,6 +78,11 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%{_mandir}/man3/Test::CPAN::Changes.3*
%changelog
* Fri Aug 23 2019 Paul Howarth <paul@city-fan.org> - 0.400002-13
- Avoid optional test dependency perl(Moo) for EPEL builds
- Use author-independent source URL
- Simplify find command using -delete
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.400002-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save