9a4c5d
# Use IPC::Run
9a4c5d
%bcond_without perl_IPC_Cmd_enables_IPC_Run
9a4c5d
9a4c5d
Name:           perl-IPC-Cmd
9a4c5d
# Epoch to compete with perl.spec
9a4c5d
Epoch:          2
9a4c5d
Version:        1.04
9a4c5d
Release:        2%{?dist}
9a4c5d
Summary:        Finding and running system commands made easy
9a4c5d
License:        GPL+ or Artistic
9a4c5d
URL:            https://metacpan.org/release/IPC-Cmd
9a4c5d
Source0:        https://cpan.metacpan.org/authors/id/B/BI/BINGOS/IPC-Cmd-%{version}.tar.gz
9a4c5d
# Replace ExtUtils::MakeMaker dependency with ExtUtils::MM::Utils.
9a4c5d
# This enables not to require perl-devel. Bug #1129443
9a4c5d
Patch0:         IPC-Cmd-0.96-Replace-EU-MM-dependency-with-EU-MM-Utils.patch
9a4c5d
BuildArch:      noarch
9a4c5d
# Build:
9a4c5d
BuildRequires:  make
9a4c5d
BuildRequires:  perl-generators
9a4c5d
BuildRequires:  perl-interpreter
9a4c5d
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
9a4c5d
# Run-time:
9a4c5d
BuildRequires:  perl(Carp)
9a4c5d
BuildRequires:  perl(constant)
9a4c5d
BuildRequires:  perl(Exporter)
9a4c5d
BuildRequires:  perl(ExtUtils::MM::Utils)
9a4c5d
BuildRequires:  perl(File::Spec)
9a4c5d
BuildRequires:  perl(FileHandle)
9a4c5d
BuildRequires:  perl(IO::Handle)
9a4c5d
BuildRequires:  perl(IO::Select)
9a4c5d
BuildRequires:  perl(IPC::Open3)
9a4c5d
%if %{with perl_IPC_Cmd_enables_IPC_Run} && !%{defined perl_bootstrap}
9a4c5d
BuildRequires:  perl(IPC::Run) >= 0.55
9a4c5d
%endif
9a4c5d
BuildRequires:  perl(Locale::Maketext::Simple)
9a4c5d
BuildRequires:  perl(Module::Load::Conditional) >= 0.66
9a4c5d
BuildRequires:  perl(Params::Check) >= 0.20
9a4c5d
BuildRequires:  perl(POSIX)
9a4c5d
BuildRequires:  perl(Socket)
9a4c5d
BuildRequires:  perl(strict)
9a4c5d
BuildRequires:  perl(Symbol)
9a4c5d
BuildRequires:  perl(Text::ParseWords)
9a4c5d
BuildRequires:  perl(Time::HiRes)
9a4c5d
BuildRequires:  perl(vars)
9a4c5d
# Tests:
9a4c5d
# output.pl/IO::Handle not used
9a4c5d
BuildRequires:  perl(Data::Dumper)
9a4c5d
BuildRequires:  perl(File::Temp)
9a4c5d
BuildRequires:  perl(lib)
9a4c5d
BuildRequires:  perl(Test::More)
9a4c5d
BuildRequires:  perl(warnings)
9a4c5d
# Dependencies:
9a4c5d
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
9a4c5d
Requires:       perl(ExtUtils::MM::Utils)
9a4c5d
Requires:       perl(FileHandle)
9a4c5d
Requires:       perl(IO::Handle)
9a4c5d
Requires:       perl(IO::Select)
9a4c5d
Requires:       perl(IPC::Open3)
9a4c5d
%if %{with perl_IPC_Cmd_enables_IPC_Run}
9a4c5d
Suggests:       perl(IPC::Run) >= 0.55
9a4c5d
%endif
9a4c5d
Requires:       perl(Module::Load::Conditional) >= 0.66
9a4c5d
Requires:       perl(Params::Check) >= 0.20
9a4c5d
Requires:       perl(POSIX)
9a4c5d
Requires:       perl(Socket)
9a4c5d
Requires:       perl(Time::HiRes)
9a4c5d
9a4c5d
# Filter under-specified dependencies
9a4c5d
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Module::Load::Conditional\\)$
9a4c5d
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Params::Check\\)$
9a4c5d
9a4c5d
%description
9a4c5d
IPC::Cmd allows you to run commands platform independently, interactively
9a4c5d
if desired, but have them still work.
9a4c5d
9a4c5d
%prep
9a4c5d
%setup -q -n IPC-Cmd-%{version}
9a4c5d
%patch0 -p1
9a4c5d
9a4c5d
%build
9a4c5d
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
9a4c5d
%{make_build}
9a4c5d
9a4c5d
%install
9a4c5d
%{make_install}
9a4c5d
%{_fixperms} $RPM_BUILD_ROOT
9a4c5d
9a4c5d
%check
9a4c5d
make test
9a4c5d
9a4c5d
%files
9a4c5d
%doc CHANGES README
9a4c5d
%{perl_vendorlib}/IPC/
9a4c5d
%{_mandir}/man3/IPC::Cmd.3*
9a4c5d
9a4c5d
%changelog
9a4c5d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.04-2
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9a4c5d
9a4c5d
* Mon Jul 15 2019 Petr Pisar <ppisar@redhat.com> - 2:1.04-1
9a4c5d
- 1.04 bump
9a4c5d
9a4c5d
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.02-439
9a4c5d
- Perl 5.30 re-rebuild of bootstrapped packages
9a4c5d
9a4c5d
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.02-438
9a4c5d
- Increase release to favour standalone package
9a4c5d
9a4c5d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.02-5
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9a4c5d
9a4c5d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.02-4
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9a4c5d
9a4c5d
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.02-3
9a4c5d
- Perl 5.28 re-rebuild of bootstrapped packages
9a4c5d
9a4c5d
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.02-2
9a4c5d
- Perl 5.28 rebuild
9a4c5d
9a4c5d
* Thu May 03 2018 Petr Pisar <ppisar@redhat.com> - 2:1.02-1
9a4c5d
- 1.02 bump
9a4c5d
9a4c5d
* Thu Feb 15 2018 Petr Pisar <ppisar@redhat.com> - 2:1.00-1
9a4c5d
- 1.00 bump
9a4c5d
9a4c5d
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.98-5
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9a4c5d
9a4c5d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.98-4
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9a4c5d
9a4c5d
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.98-3
9a4c5d
- Perl 5.26 re-rebuild of bootstrapped packages
9a4c5d
9a4c5d
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.98-2
9a4c5d
- Perl 5.26 rebuild
9a4c5d
9a4c5d
* Sun May 14 2017 Paul Howarth <paul@city-fan.org> - 1:0.98-1
9a4c5d
- Update to 0.98
9a4c5d
  - Added wait_loop_callback for run_forked()
9a4c5d
  - Only search in curdir in can_run() when on Win32 (CPAN RT#105601)
9a4c5d
- Drop redundant Group: tag
9a4c5d
9a4c5d
* Fri May 12 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.96-3
9a4c5d
- Don't BR: perl(IPC::Run) when bootstrapping
9a4c5d
9a4c5d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.96-2
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9a4c5d
9a4c5d
* Thu Jul 28 2016 Paul Howarth <paul@city-fan.org> - 1:0.96-1
9a4c5d
- Update to 0.96
9a4c5d
  - Require Module::Load::Conditional 0.66 to resolve CVE-2016-1238
9a4c5d
    (avoid loading optional modules from default .)
9a4c5d
- Update patch for use of ExtUtils::MM::Utils
9a4c5d
- Simplify find command using -delete
9a4c5d
9a4c5d
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.94-4
9a4c5d
- Perl 5.24 rebuild
9a4c5d
9a4c5d
* Mon Apr 18 2016 Petr Pisar <ppisar@redhat.com> - 1:0.94-3
9a4c5d
- Replace ExtUtils::MakeMaker dependency with ExtUtils::MM::Utils (bug #1129443)
9a4c5d
9a4c5d
* Mon Feb 15 2016 Petr Pisar <ppisar@redhat.com> - 1:0.94-2
9a4c5d
- Weaken dependency on IPC::Run (bug #1307195)
9a4c5d
9a4c5d
* Sat Feb 13 2016 Paul Howarth <paul@city-fan.org> - 1:0.94-1
9a4c5d
- 0.94 bump
9a4c5d
9a4c5d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.92-347
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9a4c5d
9a4c5d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.92-346
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9a4c5d
9a4c5d
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.92-345
9a4c5d
- Increase release to favour standalone package
9a4c5d
9a4c5d
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.92-311
9a4c5d
- Perl 5.22 rebuild
9a4c5d
9a4c5d
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.92-310
9a4c5d
- Increase release to favour standalone package
9a4c5d
9a4c5d
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.92-3
9a4c5d
- Perl 5.20 rebuild
9a4c5d
9a4c5d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.92-2
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9a4c5d
9a4c5d
* Thu Jan 23 2014 Petr Pisar <ppisar@redhat.com> - 1:0.92-1
9a4c5d
- 0.92 bump
9a4c5d
9a4c5d
* Tue Nov 19 2013 Petr Pisar <ppisar@redhat.com> - 1:0.90-1
9a4c5d
- 0.90 bump
9a4c5d
9a4c5d
* Tue Nov 05 2013 Petr Pisar <ppisar@redhat.com> - 1:0.86-1
9a4c5d
- 0.86 bump
9a4c5d
9a4c5d
* Thu Aug 08 2013 Petr Pisar <ppisar@redhat.com> - 1:0.84-1
9a4c5d
- 0.84 bump
9a4c5d
9a4c5d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.82-3
9a4c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9a4c5d
9a4c5d
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:0.82-2
9a4c5d
- Perl 5.18 rebuild
9a4c5d
9a4c5d
* Mon Jul 08 2013 Petr Pisar <ppisar@redhat.com> - 1:0.82-1
9a4c5d
- 0.82 bump
9a4c5d
9a4c5d
* Mon May 20 2013 Petr Pisar <ppisar@redhat.com> - 1:0.80-3
9a4c5d
- Remove unneeded dependency on Config
9a4c5d
9a4c5d
* Thu Mar 14 2013 Petr Pisar <ppisar@redhat.com> - 1:0.80-2
9a4c5d
- Set epoch to compete with core module from perl.spec
9a4c5d
9a4c5d
* Mon Mar 04 2013 Petr Pisar <ppisar@redhat.com> - 0.80-1
9a4c5d
- 0.80 bump
9a4c5d
9a4c5d
* Fri Feb 08 2013 Petr Pisar <ppisar@redhat.com> 0.78-1
9a4c5d
- Specfile autogenerated by cpanspec 1.78.