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
Version: 0.50
Release: 14%{?dist}
Release: 15%{?dist}
Summary: Easily create test classes in an xUnit/JUnit style
License: GPL+ or Artistic
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
BuildArch: noarch
# Build:
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Attribute::Handlers) >= 0.77
@ -64,10 +67,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
@ -80,6 +82,12 @@ make test
%{_mandir}/man3/Test::Class::MethodInfo.3*
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save