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 Name: perl-ExtUtils-CChecker
Version: 0.10 Version: 0.10
Release: 12%{?dist} Release: 13%{?dist}
Summary: Configure-time utilities for using C headers, libraries, or OS features Summary: Configure-time utilities for using C headers, libraries, or OS features
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/ExtUtils-CChecker 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 BuildArch: noarch
BuildRequires: perl-interpreter # Build:
BuildRequires: coreutils
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
@ -19,8 +19,9 @@ BuildRequires: perl(ExtUtils::CBuilder)
# Tests: # Tests:
BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
# Optional tests: # Optional Tests:
BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod) >= 1.00
# Dependencies:
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Module::Build) 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. requirements before attempting to actually build the module.
%prep %prep
%setup -qn %{pkgname}-%{version} %setup -qn ExtUtils-CChecker-%{version}
%build %build
perl Build.PL installdirs=vendor perl Build.PL installdirs=vendor
./Build ./Build
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/* %{_fixperms} -c %{buildroot}
%check %check
./Build test ./Build test
@ -47,10 +48,17 @@ perl Build.PL installdirs=vendor
%files %files
%license LICENSE %license LICENSE
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %{perl_vendorlib}/ExtUtils/
%{_mandir}/man3/* %{_mandir}/man3/ExtUtils::CChecker.3*
%changelog %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 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild