Spec tidy-up

- Use author-independent source URL
- Drop redundant use of %{?perl_default_filter}
- Follow upstream guidance (META.json) on run-time dependencies
- Use %{make_build} and %{make_install}
- Fix permissions verbosely
- Make %files list more explicit
epel9
Paul Howarth 5 years ago
parent fe463e9aea
commit 34b4845332

@ -1,11 +1,12 @@
Name: perl-Clone-Choose Name: perl-Clone-Choose
Version: 0.010 Version: 0.010
Release: 6%{?dist} Release: 7%{?dist}
Summary: Choose appropriate clone utility Summary: Choose appropriate clone utility
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Clone-Choose URL: https://metacpan.org/release/Clone-Choose
Source0: https://cpan.metacpan.org/authors/id/H/HE/HERMES/Clone-Choose-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Clone/Clone-Choose-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Build
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
@ -17,18 +18,19 @@ BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Run-time # Run-time
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
# Optional Run-time
BuildRequires: perl(Clone) >= 0.10
BuildRequires: perl(Clone::PP)
BuildRequires: perl(Module::Runtime) BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Storable)
# Tests # Tests
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More) >= 0.90 BuildRequires: perl(Test::More) >= 0.90
BuildRequires: perl(Test::Without::Module) BuildRequires: perl(Test::Without::Module)
# Optional tests # Dependencies
BuildRequires: perl(Clone) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: perl(Clone::PP) Recommends: perl(Module::Runtime)
BuildRequires: perl(Storable) Requires: perl(Storable)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description %description
%{summary}. %{summary}.
@ -37,13 +39,12 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%setup -q -n Clone-Choose-%{version} %setup -q -n Clone-Choose-%{version}
%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 DESTDIR=%{buildroot} %{make_install}
chmod -x %{buildroot}%{perl_vendorlib}/Clone/Choose.pm %{_fixperms} -c %{buildroot}
%{_fixperms} %{buildroot}/*
%check %check
make test make test
@ -51,9 +52,18 @@ make test
%files %files
%doc Changes README.md %doc Changes README.md
%{perl_vendorlib}/Clone/ %{perl_vendorlib}/Clone/
%{_mandir}/man3/*.3* %{_mandir}/man3/Clone::Choose.3*
%changelog %changelog
* Fri Oct 25 2019 Paul Howarth <paul@city-fan.org> - 0.010-7
- Spec tidy-up
- Use author-independent source URL
- Drop redundant use of %%{?perl_default_filter}
- Follow upstream guidance (META.json) on run-time dependencies
- Use %%{make_build} and %%{make_install}
- Fix permissions verbosely
- Make %%files list more explicit
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.010-6 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.010-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save