Remove useless dependency on ExtUtils::MakeMaker::CPANfile

This commit is contained in:
Petr Písař 2018-06-01 09:32:56 +02:00
parent e91004b023
commit bfd5dc2a76
2 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,44 @@
From 76f72eb15b44af89a089d30b14d5f5d4d6829f7a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Fri, 1 Jun 2018 09:28:17 +0200
Subject: [PATCH] Do not use ExtUtils::MakeMaker::CPANfile
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The Makefile.PL works as well as with plain ExtUtils::MakeMaker.
rpmbuild does not read dependencies from META, thus cpanfile content
is irrelevant when building an RPM package.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 2 +-
cpanfile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index a4faee1..b4bb0d8 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,6 +1,6 @@
use strict;
use warnings;
-use ExtUtils::MakeMaker::CPANfile;
+use ExtUtils::MakeMaker;
my %params = (
NAME => 'Parse::PMFile',
diff --git a/cpanfile b/cpanfile
index a5eef0c..6295f99 100644
--- a/cpanfile
+++ b/cpanfile
@@ -12,4 +12,4 @@ on test => sub {
on develop => sub {
requires 'PAUSE::Permissions' => '0.08' if $] > 5.010000;
requires 'WorePAN' => '0.13';
-};
\ No newline at end of file
+};
--
2.14.4

View File

@ -1,18 +1,20 @@
Name: perl-Parse-PMFile
Version: 0.41
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Parses .pm file as PAUSE does
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Parse-PMFile/
Source0: http://www.cpan.org/authors/id/I/IS/ISHIGAKI/Parse-PMFile-%{version}.tar.gz
# Remove useless dependency on ExtUtils::MakeMaker::CPANfile
Patch0: Parse-PMFile-0.41-Do-not-use-ExtUtils-MakeMaker-CPANfile.patch
BuildArch: noarch
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker::CPANfile)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time
@ -43,6 +45,7 @@ my modification.
%prep
%setup -q -n Parse-PMFile-%{version}
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
@ -62,6 +65,9 @@ make test
%{_mandir}/man3/*
%changelog
* Fri Jun 01 2018 Petr Pisar <ppisar@redhat.com> - 0.41-6
- Remove useless dependency on ExtUtils::MakeMaker::CPANfile
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild