Spec tidy-up

- Use author-independent source URL
- Specify all build dependencies
- Fix permissions verbosely
- Make %files list more explicit
This commit is contained in:
Paul Howarth 2019-10-04 18:46:47 +01:00
parent d286a61e7d
commit db41f95a40

View File

@ -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 <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 0.10-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild