From 233dd29ba60e2f98667d62ab7353ef7f47eac9e3 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Fri, 24 Dec 2021 11:55:31 +0100 Subject: [PATCH] Clean up spec file --- perl-Test-FailWarnings.spec | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/perl-Test-FailWarnings.spec b/perl-Test-FailWarnings.spec index 16007fe..6cd7536 100644 --- a/perl-Test-FailWarnings.spec +++ b/perl-Test-FailWarnings.spec @@ -1,6 +1,6 @@ Name: perl-Test-FailWarnings Version: 0.008 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Add test failures if warnings are caught License: ASL 2.0 @@ -11,7 +11,7 @@ BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: @@ -29,7 +29,7 @@ BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) BuildRequires: perl(lib) BuildRequires: perl(List::Util) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version)) %{?perl_default_filter} @@ -42,18 +42,15 @@ need to know the test count in advance. %setup -q -n Test-FailWarnings-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +/usr/bin/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 -make test +%{make_build} test %files %doc Changes CONTRIBUTING LICENSE README @@ -61,6 +58,11 @@ make test %{_mandir}/man3/* %changelog +* Fri Dec 24 2021 Emmanuel Seyman - 0.008-25 +- Replace %%{__perl} with /usr/bin/perl +- Use %%{make_build} and %%{make_install} where appropriate +- Pass NO_PACKLIST and NO_PERLLOCAL to Makefile.PL + * Fri Jul 23 2021 Fedora Release Engineering - 0.008-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild