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
epel9
Paul Howarth 5 years ago
parent 20891d8c4d
commit 036e71a36c

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error %description -l en_US metamodels -> ")

@ -1,14 +1,17 @@
Name: perl-Algorithm-C3 Name: perl-Algorithm-C3
Version: 0.10 Version: 0.10
Release: 15%{?dist} Release: 16%{?dist}
Summary: Module for merging hierarchies using the C3 algorithm Summary: Module for merging hierarchies using the C3 algorithm
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Algorithm-C3 URL: https://metacpan.org/release/Algorithm-C3
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Algorithm-C3-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Algorithm/Algorithm-C3-%{version}.tar.gz
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)
# Module # Module
BuildRequires: perl(Carp) >= 0.01 BuildRequires: perl(Carp) >= 0.01
@ -33,10 +36,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
@ -44,9 +46,17 @@ make test
%files %files
%doc Changes README t/ %doc Changes README t/
%{perl_vendorlib}/Algorithm/ %{perl_vendorlib}/Algorithm/
%{_mandir}/man3/Algorithm::C3.3pm* %{_mandir}/man3/Algorithm::C3.3*
%changelog %changelog
* Tue Oct 15 2019 Paul Howarth <paul@city-fan.org> - 0.10-16
- 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.10-15 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save