Spec tidy-up

- Use %{make_build} and %{make_install}
- Fix permissions verbosely
This commit is contained in:
Paul Howarth 2021-01-08 13:17:11 +00:00
parent 90e707038e
commit 7148ec2773

View File

@ -1,20 +1,21 @@
Name: perl-Import-Into
Version: 1.002005
Release: 15%{?dist}
Release: 16%{?dist}
Summary: Import packages into other packages
License: GPL+ or Artistic
URL: https://metacpan.org/release/Import-Into
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Import-Into-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Module Runtime
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(base)
BuildRequires: perl(Exporter)
@ -31,12 +32,12 @@ any package to import it into another package.
%setup -q -n Import-Into-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor --skipdeps NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}
%{make_install}
%{_fixperms} -c %{buildroot}
%check
make test
@ -47,6 +48,10 @@ make test
%{_mandir}/man3/Import::Into.3*
%changelog
* Fri Jan 8 2021 Paul Howarth <paul@city-fan.org> - 1.002005-16
- Use %%{make_build} and %%{make_install}
- Fix permissions verbosely
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.002005-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild