diff --git a/perl-Test-MinimumVersion.spec b/perl-Test-MinimumVersion.spec index e83d4be..3f93596 100644 --- a/perl-Test-MinimumVersion.spec +++ b/perl-Test-MinimumVersion.spec @@ -1,55 +1,68 @@ Name: perl-Test-MinimumVersion Version: 0.101082 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Check whether your code requires a newer perl License: GPL+ or Artistic URL: https://metacpan.org/release/Test-MinimumVersion -Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Test-MinimumVersion-%{version}.tar.gz - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-MinimumVersion-%{version}.tar.gz BuildArch: noarch - +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Module Runtime BuildRequires: perl(base) -BuildRequires: perl(CPAN::Meta) > 2.120900 -BuildRequires: perl(strict) +BuildRequires: perl(CPAN::Meta) > 2.120900 BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 BuildRequires: perl(File::Find::Rule) BuildRequires: perl(File::Find::Rule::Perl) BuildRequires: perl(Perl::MinimumVersion) >= 1.32 +BuildRequires: perl(strict) BuildRequires: perl(Test::Builder) -BuildRequires: perl(Test::More) >= 0.96 -BuildRequires: perl(Test::Tester) -BuildRequires: perl(YAML::Tiny) >= 1.40 BuildRequires: perl(version) >= 0.70 BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Tester) +# Dependencies +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Check whether your code requires a newer perl than you think. %prep %setup -q -n Test-MinimumVersion-%{version} -find -type f -exec chmod -x {} \; %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 -chmod -R u+w $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} -c %{buildroot} %check make test %files -%doc Changes %license LICENSE -%{perl_vendorlib}/Test -%{_mandir}/man3/* +%doc Changes +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::MinimumVersion.3* %changelog +* Wed Oct 2 2019 Paul Howarth = 0.101082-11 +- Spec tidy-up + - Use author-independent source URL + - Drop redundant permission fixing in %%prep section + - Classify buildreqs by usage + - Use %%{make_build} and %%{make_install} + - Make %%files list more explicit + * Fri Jul 13 2018 Fedora Release Engineering - 0.101082-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild