Spec tidy-up

- Use author-independent source URL
- Drop redundant use of %{?perl_default_filter}
- Use %{make_build} and %{make_install}
- Fix permissions verbosely
- Make %files list more explicit
epel9
Paul Howarth 5 years ago
parent eff76ab8cf
commit 3b9cb10f6f

@ -1,12 +1,13 @@
Name: perl-Hash-Merge Name: perl-Hash-Merge
Version: 0.300 Version: 0.300
Release: 7%{?dist} Release: 8%{?dist}
Summary: Merges arbitrary deep hashes into a single hash Summary: Merges arbitrary deep hashes into a single hash
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Hash-Merge URL: https://metacpan.org/release/Hash-Merge
Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/Hash-Merge-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Hash/Hash-Merge-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
@ -27,11 +28,10 @@ BuildRequires: perl(Test::More)
# Optional tests # Optional tests
BuildRequires: perl(Clone::PP) BuildRequires: perl(Clone::PP)
BuildRequires: perl(Storable) BuildRequires: perl(Storable)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# required but not detected automatically # required but not detected automatically
Requires: perl(Clone) Requires: perl(Clone)
%{?perl_default_filter}
%description %description
%{summary}. %{summary}.
@ -40,13 +40,12 @@ Requires: perl(Clone)
%setup -q -n Hash-Merge-%{version} %setup -q -n Hash-Merge-%{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}/Hash/Merge.pm %{_fixperms} -c %{buildroot}
%{_fixperms} %{buildroot}/*
%check %check
make test make test
@ -54,10 +53,17 @@ make test
%files %files
%doc Changes README.md %doc Changes README.md
%{perl_vendorlib}/Hash/ %{perl_vendorlib}/Hash/
%{_mandir}/man3/*.3* %{_mandir}/man3/Hash::Merge.3*
%changelog %changelog
* Fri Oct 25 2019 Paul Howarth <paul@city-fan.org> - 0.300-8
- Spec tidy-up
- Use author-independent source URL
- Drop redundant use of %%{?perl_default_filter}
- 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.300-7 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.300-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save