diff --git a/perl-Module-Find.spec b/perl-Module-Find.spec index 4d2e6e0..c18a3e0 100644 --- a/perl-Module-Find.spec +++ b/perl-Module-Find.spec @@ -1,14 +1,17 @@ Name: perl-Module-Find Version: 0.13 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Find and use installed modules in a (sub)category License: GPL+ or Artistic URL: https://metacpan.org/release/Module-Find -Source0: https://cpan.metacpan.org/authors/id/C/CR/CRENZ/Module-Find-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Module/Module-Find-%{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) BuildRequires: perl(Pod::Perldoc) # Module Runtime @@ -39,16 +42,16 @@ between looking in the category itself or in all subcategories. # Generate Changes file from POD perldoc -t Find.pm | perl -n -e 'if (/^HISTORY/ ... !/^[[:space:]]/) { print if /^[[:space:]]/ }' > Changes +touch --reference=Find.pm Changes %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf %{buildroot} 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 @@ -59,6 +62,14 @@ make test %{_mandir}/man3/Module::Find.3* %changelog +* Wed Sep 25 2019 Paul Howarth - 0.13-15 +- Spec tidy-up + - Use author-independent source URL + - Specify all build dependencies + - Keep timestamp of Changes file constant + - Drop redundant buildroot cleaning in %%install section + - Simplify find command using -delete + * Fri Jul 26 2019 Fedora Release Engineering - 0.13-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild