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 Name: perl-Test-MinimumVersion
Version: 0.101082 Version: 0.101082
Release: 10%{?dist} Release: 11%{?dist}
Summary: Check whether your code requires a newer perl Summary: Check whether your code requires a newer perl
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-MinimumVersion URL: https://metacpan.org/release/Test-MinimumVersion
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Test-MinimumVersion-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-MinimumVersion-%{version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Module Runtime
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(CPAN::Meta) > 2.120900 BuildRequires: perl(CPAN::Meta) > 2.120900
BuildRequires: perl(strict)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(File::Find::Rule) BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(File::Find::Rule::Perl) BuildRequires: perl(File::Find::Rule::Perl)
BuildRequires: perl(Perl::MinimumVersion) >= 1.32 BuildRequires: perl(Perl::MinimumVersion) >= 1.32
BuildRequires: perl(strict)
BuildRequires: perl(Test::Builder) 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(version) >= 0.70
BuildRequires: perl(warnings) 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 %description
Check whether your code requires a newer perl than you think. Check whether your code requires a newer perl than you think.
%prep %prep
%setup -q -n Test-MinimumVersion-%{version} %setup -q -n Test-MinimumVersion-%{version}
find -type f -exec chmod -x {} \;
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %{make_install}
chmod -R u+w $RPM_BUILD_ROOT/* %{_fixperms} -c %{buildroot}
%check %check
make test make test
%files %files
%doc Changes
%license LICENSE %license LICENSE
%{perl_vendorlib}/Test %doc Changes
%{_mandir}/man3/* %{perl_vendorlib}/Test/
%{_mandir}/man3/Test::MinimumVersion.3*
%changelog %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 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.101082-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save