diff --git a/perl-Perl-MinimumVersion.spec b/perl-Perl-MinimumVersion.spec index 2f2d43c..a6b268e 100644 --- a/perl-Perl-MinimumVersion.spec +++ b/perl-Perl-MinimumVersion.spec @@ -1,17 +1,18 @@ Name: perl-Perl-MinimumVersion Version: 1.38 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Find a minimum required version of perl for Perl code License: GPL+ or Artistic URL: https://metacpan.org/release/Perl-MinimumVersion -Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/Perl-MinimumVersion-%{version}.tar.gz - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Source0: https://cpan.metacpan.org/modules/by-module/Perl/Perl-MinimumVersion-%{version}.tar.gz BuildArch: noarch - +# Module Build +BuildRequires: coreutils +BuildRequires: make BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 -# Run-time and tests: +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(List::Util) >= 1.20 @@ -21,51 +22,56 @@ BuildRequires: perl(PPI) >= 1.215 BuildRequires: perl(PPI::Util) BuildRequires: perl(PPIx::Regexp) >= 0.033 BuildRequires: perl(strict) -BuildRequires: perl(vars) BuildRequires: perl(version) >= 0.76 BuildRequires: perl(warnings) -%if !%{defined perl_bootstrap} -BuildRequires: perl(File::Find::Rule) >= 0.32 -BuildRequires: perl(File::Find::Rule::Perl) >= 1.04 -BuildRequires: perl(File::Spec) >= 0.80 +# Script Runtime +BuildRequires: perl(File::Find::Rule) +BuildRequires: perl(File::Find::Rule::Perl) +BuildRequires: perl(File::Spec) BuildRequires: perl(Getopt::Long) +BuildRequires: perl(vars) +# Test Suite +BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Test::Script) >= 1.03 -%endif - -# Remove under-specified dependencies -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(version\\)$ -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Params::Util\\)$ -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl >= 0:5.005$ +# Dependencies +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description -Find a minimum required version of perl for Perl code +Find a minimum required version of perl for Perl code. %prep %setup -q -n Perl-MinimumVersion-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} -c %{buildroot} %check -%if !%{defined perl_bootstrap} make test -%endif %files -%doc Changes %license LICENSE -%{_bindir}/* -%{perl_vendorlib}/Perl -%{_mandir}/man1/* -%{_mandir}/man3/* +%doc Changes README +%{_bindir}/perlver +%{perl_vendorlib}/Perl/ +%{_mandir}/man1/perlver.1* +%{_mandir}/man3/Perl::MinimumVersion.3* %changelog +* Tue Oct 1 2019 Paul Howarth - 1.38-20 +- Spec tidy-up + - Use author-independent source URL + - Classify buildreqs by usage + - Use %%{make_build} and %%{make_install} + - Make %%files list more explicit + - Bootstrapping not required for EPEL-8 + - Drop redundant dependency filter + * Fri Jul 13 2018 Fedora Release Engineering - 1.38-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild