Package init
This commit is contained in:
commit
346ee80227
46
IPC-Cmd-0.96-Replace-EU-MM-dependency-with-EU-MM-Utils.patch
Normal file
46
IPC-Cmd-0.96-Replace-EU-MM-dependency-with-EU-MM-Utils.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
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
|
||||||
|
|
||||||
BIN
IPC-Cmd-1.04.tar.gz
Normal file
BIN
IPC-Cmd-1.04.tar.gz
Normal file
Binary file not shown.
66
perl-IPC-Cmd.spec
Normal file
66
perl-IPC-Cmd.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
Name: perl-IPC-Cmd
|
||||||
|
Epoch: 2
|
||||||
|
Version: 1.04
|
||||||
|
Release: 1
|
||||||
|
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
|
||||||
|
# For run:
|
||||||
|
BuildRequires: perl(Carp) perl(constant) perl(Exporter) perl(ExtUtils::MM::Utils) perl(File::Spec)
|
||||||
|
BuildRequires: perl(FileHandle) perl(IO::Handle) perl(IO::Select) perl(IPC::Open3) perl(IPC::Run) >= 0.55
|
||||||
|
BuildRequires: perl(IPC::Run) >= 0.55 perl(Locale::Maketext::Simple) perl(Module::Load::Conditional) >= 0.66
|
||||||
|
BuildRequires: perl(Params::Check) >= 0.20 perl(POSIX) perl(Socket) perl(strict) perl(Symbol) perl(Text::ParseWords)
|
||||||
|
BuildRequires: perl(Time::HiRes) perl(vars)
|
||||||
|
#For test:
|
||||||
|
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(FileHandle)
|
||||||
|
Requires: perl(IO::Handle)
|
||||||
|
Requires: perl(IO::Select)
|
||||||
|
Requires: perl(IPC::Open3)
|
||||||
|
Suggests: perl(IPC::Run) >= 0.55
|
||||||
|
Requires: perl(Module::Load::Conditional) >= 0.66
|
||||||
|
Requires: perl(Params::Check) >= 0.20
|
||||||
|
Requires: perl(POSIX)
|
||||||
|
Requires: perl(Socket)
|
||||||
|
Requires: perl(Time::HiRes)
|
||||||
|
|
||||||
|
%description
|
||||||
|
IPC::Cmd allows for the searching and execution of any binary on your system.
|
||||||
|
It adheres to verbosity settings and is able to run intereactive.
|
||||||
|
It also has an option to capture output/error buffers.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n IPC-Cmd-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=%{buildroot}
|
||||||
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc CHANGES README
|
||||||
|
%{perl_vendorlib}/IPC/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man3/IPC::Cmd.3*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.04-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user