From db41f95a4020511eed54c925c055d201d0001ec8 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Fri, 4 Oct 2019 18:46:47 +0100 Subject: [PATCH] Spec tidy-up - Use author-independent source URL - Specify all build dependencies - Fix permissions verbosely - Make %files list more explicit --- perl-ExtUtils-CChecker.spec | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/perl-ExtUtils-CChecker.spec b/perl-ExtUtils-CChecker.spec index d6817af..920a85a 100644 --- a/perl-ExtUtils-CChecker.spec +++ b/perl-ExtUtils-CChecker.spec @@ -1,15 +1,15 @@ -%global pkgname ExtUtils-CChecker - Name: perl-ExtUtils-CChecker Version: 0.10 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Configure-time utilities for using C headers, libraries, or OS features License: GPL+ or Artistic URL: https://metacpan.org/release/ExtUtils-CChecker -Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{pkgname}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/ExtUtils/ExtUtils-CChecker-%{version}.tar.gz BuildArch: noarch -BuildRequires: perl-interpreter +# Build: +BuildRequires: coreutils BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(warnings) @@ -19,8 +19,9 @@ BuildRequires: perl(ExtUtils::CBuilder) # Tests: BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) -# Optional tests: +# Optional Tests: BuildRequires: perl(Test::Pod) >= 1.00 +# Dependencies: Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(Module::Build) @@ -31,15 +32,15 @@ Build.PL or Makefile.PL file to check for the existence of these requirements before attempting to actually build the module. %prep -%setup -qn %{pkgname}-%{version} +%setup -qn ExtUtils-CChecker-%{version} %build perl Build.PL installdirs=vendor ./Build %install -./Build install destdir=%{buildroot} create_packlist=0 -%{_fixperms} %{buildroot}/* +./Build install --destdir=%{buildroot} --create_packlist=0 +%{_fixperms} -c %{buildroot} %check ./Build test @@ -47,10 +48,17 @@ perl Build.PL installdirs=vendor %files %license LICENSE %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/ExtUtils/ +%{_mandir}/man3/ExtUtils::CChecker.3* %changelog +* Fri Oct 4 2019 Paul Howarth - 0.10-13 +- Spec tidy-up + - Use author-independent source URL + - Specify all build dependencies + - Fix permissions verbosely + - Make %%files list more explicit + * Fri Jul 26 2019 Fedora Release Engineering - 0.10-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild