From 39cc5a7ad1a2047819299be9644a8108ee83c455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 21 Apr 2020 08:12:03 +0200 Subject: [PATCH] Modernize a spec file --- perl-Module-Manifest-Skip.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/perl-Module-Manifest-Skip.spec b/perl-Module-Manifest-Skip.spec index c054c11..614eaec 100644 --- a/perl-Module-Manifest-Skip.spec +++ b/perl-Module-Manifest-Skip.spec @@ -9,9 +9,11 @@ Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/Module-Manifest-S # 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/*