Spec tidy-up
- Use author-independent source URL - Specify all build dependencies - Drop redundant buildroot cleaning in %install section - Simplify find command using -delete - Fix permissions verbosely
This commit is contained in:
parent
80e0c8eb91
commit
387fafe13e
@ -1,15 +1,18 @@
|
||||
Name: perl-Test-CPAN-Meta-JSON
|
||||
Version: 0.16
|
||||
Release: 14%{?dist}
|
||||
Release: 15%{?dist}
|
||||
Summary: Validate a META.json file within a CPAN distribution
|
||||
License: Artistic 2.0
|
||||
URL: https://metacpan.org/release/Test-CPAN-Meta-YAML
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-CPAN-Meta-JSON-%{version}.tar.gz
|
||||
Patch0: Test-CPAN-Meta-JSON-0.16-utf8.patch
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(IO::File)
|
||||
@ -47,10 +50,9 @@ perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||
%{_fixperms} %{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
make test AUTOMATED_TESTING=1
|
||||
@ -67,6 +69,14 @@ make test AUTOMATED_TESTING=1
|
||||
%{_mandir}/man3/Test::CPAN::Meta::JSON::Version.3*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2019 Paul Howarth <paul@city-fan.org> - 0.16-15
|
||||
- Spec tidy-up
|
||||
- Use author-independent source URL
|
||||
- Specify all build dependencies
|
||||
- Drop redundant buildroot cleaning in %%install section
|
||||
- Simplify find command using -delete
|
||||
- Fix permissions verbosely
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user