Clean up spec file

This commit is contained in:
Emmanuel Seyman 2021-12-24 11:55:31 +01:00
parent c46e71f2fb
commit 233dd29ba6

View File

@ -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 <emmanuel@seyman.fr> - 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 <releng@fedoraproject.org> - 0.008-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild