Modernize spec file

This commit is contained in:
Petr Písař 2019-07-04 15:06:23 +02:00
parent ffe8866a48
commit e7d8691ec2

View File

@ -1,13 +1,18 @@
Name: perl-CPAN-DistnameInfo
Version: 0.12
Release: 15%{?dist}
Release: 16%{?dist}
Summary: Extract distribution name and version from a distribution filename
License: GPL+ or Artistic
URL: https://metacpan.org/release/CPAN-DistnameInfo
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/CPAN-DistnameInfo-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.4
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Tests:
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::More)
@ -30,13 +35,11 @@ developer release.
%setup -q -n CPAN-DistnameInfo-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT
%check
@ -48,6 +51,9 @@ make test
%{_mandir}/man3/CPAN::DistnameInfo.3pm*
%changelog
* Thu Jul 04 2019 Petr Pisar <ppisar@redhat.com> - 0.12-16
- Modernize spec file
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-15
- Perl 5.30 rebuild