From 79b68344930b61687a088dcd63fcce9e249441d1 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Aug 23 2019 12:21:45 +0000 Subject: 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 --- diff --git a/perl-CPAN-Changes.rpmlintrc b/perl-CPAN-Changes.rpmlintrc new file mode 100644 index 0000000..bdeb64c --- /dev/null +++ b/perl-CPAN-Changes.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error %description -l en_US programmatically -> ") diff --git a/perl-CPAN-Changes.spec b/perl-CPAN-Changes.spec index f4866ee..19766b6 100644 --- a/perl-CPAN-Changes.spec +++ b/perl-CPAN-Changes.spec @@ -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 - 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 - 0.400002-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild