Modernize a spec file

This commit is contained in:
Petr Písař 2020-04-21 08:12:03 +02:00
parent f6831d7c28
commit 39cc5a7ad1

View File

@ -9,9 +9,11 @@ Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/Module-Manifest-S
# <https://github.com/ingydotnet/module-manifest-skip-pm/issues/7>
Patch0: Module-Manifest-Skip-0.23-Adapt-to-changes-in-Moo-2.004000.patch
BuildArch: noarch
BuildRequires: perl-interpreter
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::ShareDir::Install) >= 0.06
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
@ -50,19 +52,20 @@ possible.
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
unset RELEASE_TESTING
make test
%files
%doc Changes CONTRIBUTING LICENSE README
%license LICENSE
%doc Changes CONTRIBUTING README
%{perl_vendorlib}/*
%{_mandir}/man3/*