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
epel9
Paul Howarth 5 years ago
parent c9ae097a85
commit dd9d8a04e5

@ -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 <paul@city-fan.org> = 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 <releng@fedoraproject.org> - 0.101082-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save