Modernize a spec file

This commit is contained in:
Petr Písař 2020-07-21 13:09:45 +02:00
parent 10df49fd4b
commit 5f90112d57

View File

@ -1,10 +1,11 @@
Name: perl-Digest-MD5
Version: 2.55
Release: 456%{?dist}
Release: 457%{?dist}
Summary: Perl interface to the MD5 algorithm
License: (GPL+ or Artistic) and BSD
URL: https://metacpan.org/release/Digest-MD5
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/Digest-MD5-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
@ -43,11 +44,11 @@ input a message of arbitrary length and produces as output a 128-bit
%setup -q -n Digest-MD5-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@ -60,6 +61,9 @@ make test
%{_mandir}/man3/*
%changelog
* Tue Jul 21 2020 Petr Pisar <ppisar@redhat.com> - 2.55-457
- Modernize a spec file
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.55-456
- Increase release to favour standalone package