delete redundant files

This commit is contained in:
openeuler-basic 2020-01-08 13:55:37 +08:00
parent 0d1494282f
commit 33c5ac94a0
2 changed files with 8 additions and 50 deletions

View File

@ -1,46 +0,0 @@
From d96fedc52a7326941ff9a4036bdf2c6ffe100b3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 18 Apr 2016 15:15:44 +0200
Subject: [PATCH] Replace EU::MM dependnecy with EU::MM::Utils
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This allows to free from a run-time dependency on fat ExtUtils::MakeMaker.
<https://bugzilla.redhat.com/show_bug.cgi?id=1129443>
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 1 +
lib/IPC/Cmd.pm | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index 540012e..a014be8 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,6 +9,7 @@ my $prereqs = {
'File::Spec' => 0,
'File::Temp' => 0,
'ExtUtils::MakeMaker' => 0,
+ 'ExtUtils::MM::Utils' => 0,
};
WriteMakefile1(
diff --git a/lib/IPC/Cmd.pm b/lib/IPC/Cmd.pm
index 13f3c6b..6191dc3 100644
--- a/lib/IPC/Cmd.pm
+++ b/lib/IPC/Cmd.pm
@@ -232,7 +232,7 @@ sub can_run {
}
require File::Spec;
- require ExtUtils::MakeMaker;
+ require ExtUtils::MM::Utils;
my @possibles;
--
2.5.5

View File

@ -1,13 +1,11 @@
Name: perl-IPC-Cmd
Epoch: 2
Version: 1.04
Release: 2
Release: 3
Summary: Finding and running system commands made easy
License: GPL+ or Artistic
URL: https://metacpan.org/release/IPC-Cmd
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/IPC-Cmd-%{version}.tar.gz
# From RedHat https://bugzilla.redhat.com/show_bug.cgi?id=1129443
Patch0: IPC-Cmd-0.96-Replace-EU-MM-dependency-with-EU-MM-Utils.patch
BuildArch: noarch
#For build:
BuildRequires: make perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76
@ -21,7 +19,7 @@ BuildRequires: perl(Time::HiRes) perl(vars)
BuildRequires: perl(Data::Dumper) perl(File::Temp) perl(lib) perl(Test::More) perl(warnings)
# Dependencies:
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(ExtUtils::MM::Utils)
Requires: perl(ExtUtils::MakeMaker)
Requires: perl(FileHandle)
Requires: perl(IO::Handle)
Requires: perl(IO::Select)
@ -62,6 +60,12 @@ make test
%{_mandir}/man3/IPC::Cmd.3*
%changelog
* Fri Jan 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:1.04-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete redundant file
* Mon Oct 28 2019 shenyangyang <shenyangyang4@huawei.com> - 2:1.04-2
- Type:enhancement
- ID:NA