Spec tidy-up
- Use author-independent source URL - Specify all build dependencies - Simplify find command using -delete - Fix permissions verbosely - Make %files list more explicit
This commit is contained in:
parent
93439d7d53
commit
50b53a6948
@ -2,15 +2,17 @@ Name: perl-Params-Check
|
||||
# Epoch to compete with perl.spec
|
||||
Epoch: 1
|
||||
Version: 0.38
|
||||
Release: 457%{?dist}
|
||||
Release: 458%{?dist}
|
||||
Summary: Generic input parsing/checking mechanism
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Params-Check
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Params-Check-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Params/Params-Check-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(strict)
|
||||
# Run-time:
|
||||
@ -37,18 +39,26 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
%{_fixperms} -c $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc CHANGES README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
%{perl_vendorlib}/Params/
|
||||
%{_mandir}/man3/Params::Check.3*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 13 2021 Paul Howarth <paul@city-fan.org> - 1:0.38-458
|
||||
- Spec tidy-up
|
||||
- Use author-independent source URL
|
||||
- Specify all build dependencies
|
||||
- Simplify find command using -delete
|
||||
- Fix permissions verbosely
|
||||
- Make %%files list more explicit
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.38-457
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user