Spec tidy-up

- Use author-independent source URL
- Specify all build dependencies
- Simplify find command using -delete
- Drop redundant buildroot cleaning in %install section
epel9
Paul Howarth 5 years ago
parent cabd1d8d74
commit 00ead71854

@ -0,0 +1,4 @@
from Config import *
addFilter("spelling-error Summary\(en_US\) xUnit -> ")
addFilter("spelling-error %description -l en_US xUnit -> ")

@ -1,15 +1,18 @@
Name: perl-Test-Class Name: perl-Test-Class
Version: 0.50 Version: 0.50
Release: 14%{?dist} Release: 15%{?dist}
Summary: Easily create test classes in an xUnit/JUnit style Summary: Easily create test classes in an xUnit/JUnit style
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Class URL: https://metacpan.org/release/Test-Class
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Class-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Class-%{version}.tar.gz
Patch0: perl-Test-Class-UTF8.patch Patch0: perl-Test-Class-UTF8.patch
BuildArch: noarch BuildArch: noarch
# Build: # Build:
BuildRequires: perl-interpreter BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time: # Run-time:
BuildRequires: perl(Attribute::Handlers) >= 0.77 BuildRequires: perl(Attribute::Handlers) >= 0.77
@ -64,10 +67,9 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot} %{_fixperms} -c %{buildroot}
%check %check
make test make test
@ -80,6 +82,12 @@ make test
%{_mandir}/man3/Test::Class::MethodInfo.3* %{_mandir}/man3/Test::Class::MethodInfo.3*
%changelog %changelog
* Sat Sep 7 2019 Paul Howarth <paul@city-fan.org> - 0.50-15
- Use author-independent source URL
- Specify all build dependencies
- Simplify find command using -delete
- Drop redundant buildroot cleaning in %%install section
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.50-14 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.50-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save