Spec tidy-up

- Use author-independent source URL
- Classify buildreqs by usage
- Drop redundant buildroot cleaning in %install section
- Simplify find command using -delete
- Fix permissions verbosely
epel9 imports/e9/perl-Digest-Perl-MD5-1.9-18.el9
Paul Howarth 5 years ago
parent 5bfe1200fe
commit 67943593d4

@ -1,21 +1,27 @@
Name: perl-Digest-Perl-MD5 Name: perl-Digest-Perl-MD5
Version: 1.9 Version: 1.9
Release: 17%{?dist} Release: 18%{?dist}
Summary: Perl implementation of Ron Rivest's MD5 Algorithm Summary: Perl implementation of Ron Rivest's MD5 Algorithm
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Digest-Perl-MD5 URL: https://metacpan.org/release/Digest-Perl-MD5
Source0: https://cpan.metacpan.org/authors/id/D/DE/DELTA/Digest-Perl-MD5-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Digest/Digest-Perl-MD5-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: perl-interpreter # Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Exporter) BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Exporter)
BuildRequires: perl(integer) BuildRequires: perl(integer)
BuildRequires: perl(lib)
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(Symbol) BuildRequires: perl(Symbol)
BuildRequires: perl(Test)
BuildRequires: perl(vars) BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(lib)
BuildRequires: perl(Test)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Symbol) Requires: perl(Symbol)
@ -33,10 +39,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 +49,17 @@ make test
%files %files
%doc CHANGES %doc CHANGES
%{perl_vendorlib}/Digest/ %{perl_vendorlib}/Digest/
%{_mandir}/man3/Digest::Perl::MD5.3pm* %{_mandir}/man3/Digest::Perl::MD5.3*
%changelog %changelog
* Mon Oct 7 2019 Paul Howarth <paul@city-fan.org> - 1.9-18
- Spec tidy-up
- Use author-independent source URL
- Classify buildreqs by usage
- 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> - 1.9-17 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save