From e7d8691ec2245d778d25f5f74f1a4e9629cbbee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 4 Jul 2019 15:06:23 +0200 Subject: [PATCH] Modernize spec file --- perl-CPAN-DistnameInfo.spec | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/perl-CPAN-DistnameInfo.spec b/perl-CPAN-DistnameInfo.spec index 7181996..3e5d7a9 100644 --- a/perl-CPAN-DistnameInfo.spec +++ b/perl-CPAN-DistnameInfo.spec @@ -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 - 0.12-16 +- Modernize spec file + * Thu May 30 2019 Jitka Plesnikova - 0.12-15 - Perl 5.30 rebuild