Specify all explicitly-used build requirements

Also, remove some legacy cruft
- Drop Group: tag
- Drop explicit buildroot cleaning in %install section
epel9
Paul Howarth 7 years ago
parent c2899ca502
commit af4587904e

@ -1,21 +1,24 @@
Name: perl-Digest-MD4 Name: perl-Digest-MD4
Version: 1.9 Version: 1.9
Release: 16%{?dist} Release: 17%{?dist}
Summary: Perl interface to the MD4 Algorithm Summary: Perl interface to the MD4 Algorithm
Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Digest-MD4/ URL: http://search.cpan.org/dist/Digest-MD4/
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-%{version}.tar.gz
# Module Build # Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: gdbm-devel
%if 0%{?fedora} > 13 || 0%{?rhel} > 6 %if 0%{?fedora} > 13 || 0%{?rhel} > 6
BuildRequires: libdb-devel BuildRequires: libdb-devel
%else %else
BuildRequires: db4-devel BuildRequires: db4-devel
%endif %endif
BuildRequires: gdbm-devel BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime # Module Runtime
@ -47,11 +50,10 @@ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
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 -delete find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -type f -name '*.bs' -empty -delete find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} %{buildroot} %{_fixperms} -c %{buildroot}
%check %check
make test make test
@ -63,6 +65,13 @@ make test
%{_mandir}/man3/Digest::MD4.3* %{_mandir}/man3/Digest::MD4.3*
%changelog %changelog
* Tue Feb 20 2018 Paul Howarth <paul@city-fan.org> - 1.9-17
- Specify all explicitly-used build requirements
- Remove some legacy cruft
- Drop BuildRoot: and Group: tags
- Drop explicit %%clean section
- Drop explicit buildroot cleaning in %%install section
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-16 * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save