cd9669
# Perform optinal tests
cd9669
%bcond_without perl_IPC_Run_enables_optional_test
cd9669
cd9669
Name:           perl-IPC-Run
cd9669
Version:        20200505.0
cd9669
Release:        6%{?dist}
cd9669
Summary:        Perl module for interacting with child processes
cd9669
# the rest:                     GPL+ or Artistic
cd9669
# The Win32* modules are not part of the binary RPM package
cd9669
# lib/IPC/Run/Win32Helper.pm:   GPLv2 or Artistic
cd9669
# lib/IPC/Run/Win32Pump.pm:     GPLv2 or Artistic
cd9669
# lib/IPC/Run/Win32IO.pm:       GPLv2 or Artistic
cd9669
License:        GPL+ or Artistic
cd9669
URL:            https://metacpan.org/release/IPC-Run
cd9669
Source0:        https://cpan.metacpan.org/modules/by-module/IPC/IPC-Run-%{version}.tar.gz
cd9669
BuildArch:      noarch
cd9669
# Build
cd9669
BuildRequires:  coreutils
cd9669
BuildRequires:  findutils
cd9669
BuildRequires:  make
cd9669
BuildRequires:  perl-generators
cd9669
BuildRequires:  perl-interpreter
cd9669
BuildRequires:  perl(ExtUtils::MakeMaker)
cd9669
BuildRequires:  sed
cd9669
# IO::Pty not needed strictly for build script
cd9669
# Run-time:
cd9669
# base not used on Linux
cd9669
BuildRequires:  perl(bytes)
cd9669
BuildRequires:  perl(Carp)
cd9669
BuildRequires:  perl(constant)
cd9669
BuildRequires:  perl(Data::Dumper)
cd9669
BuildRequires:  perl(Errno)
cd9669
BuildRequires:  perl(Exporter)
cd9669
BuildRequires:  perl(Fcntl)
cd9669
BuildRequires:  perl(File::Basename)
cd9669
BuildRequires:  perl(File::Spec)
cd9669
BuildRequires:  perl(IO::Handle)
cd9669
BuildRequires:  perl(IO::Pty) >= 1.08
cd9669
BuildRequires:  perl(POSIX)
cd9669
BuildRequires:  perl(Scalar::Util)
cd9669
# Socket not used on Linux
cd9669
BuildRequires:  perl(strict)
cd9669
BuildRequires:  perl(Symbol)
cd9669
# Text::ParseWords not used on Linux
cd9669
BuildRequires:  perl(vars)
cd9669
# Win32::Process not used on Linux
cd9669
# Win32API::File not used on Linux
cd9669
# Tests:
cd9669
# B not used on Linux
cd9669
BuildRequires:  perl(Encode)
cd9669
BuildRequires:  perl(File::Temp)
cd9669
BuildRequires:  perl(IO::Tty)
cd9669
BuildRequires:  perl(Test::More) >= 0.47
cd9669
BuildRequires:  perl(warnings)
cd9669
%if %{with perl_IPC_Run_enables_optional_test}
cd9669
# Optional Tests
cd9669
BuildRequires:  perl(Readonly)
cd9669
%endif
cd9669
# Runtime
cd9669
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
cd9669
Requires:       perl(Data::Dumper)
cd9669
Requires:       perl(File::Basename)
cd9669
Requires:       perl(IO::Pty) >= 1.08
cd9669
cd9669
%description
cd9669
IPC::Run allows you run and interact with child processes using files,
cd9669
pipes, and pseudo-ttys. Both system()-style and scripted usages are
cd9669
supported and may be mixed. Likewise, functional and OO API styles are
cd9669
both supported and may be mixed.
cd9669
cd9669
Various redirection operators reminiscent of those seen on common Unix
cd9669
and DOS command lines are provided.
cd9669
cd9669
%prep
cd9669
%setup -q -n IPC-Run-%{version}
cd9669
cd9669
# Remove Windows-only features that could add unnecessary dependencies
cd9669
rm -f lib/IPC/Run/Win32*
cd9669
sed -i -e '/^lib\/IPC\/Run\/Win32.*/d' MANIFEST
cd9669
rm -f t/win32_*
cd9669
sed -i -e '/^t\/win32_.*/d' MANIFEST
cd9669
cd9669
# Fix shellbangs
cd9669
for file in eg/run_daemon eg/abuse/timers eg/abuse/blocking_debug_with_sub_coprocess ; do
cd9669
    perl -pi -e 's,^#!.*/perl,%{__perl}, if ($. == 1)' "$file"
cd9669
done
cd9669
cd9669
# Handle optional tests
cd9669
%if !%{with perl_IPC_Run_enables_optional_test}
cd9669
rm t/readonly.t
cd9669
sed -i -e '/^t/readonly\.t/d' MANIFEST
cd9669
%endif
cd9669
cd9669
%build
cd9669
perl Makefile.PL INSTALLDIRS=vendor
cd9669
make %{?_smp_mflags}
cd9669
cd9669
%install
cd9669
make pure_install DESTDIR=%{buildroot}
cd9669
find %{buildroot} -type f -name .packlist -delete
cd9669
%{_fixperms} -c %{buildroot}
cd9669
cd9669
%check
cd9669
make test
cd9669
cd9669
%files
cd9669
%license LICENSE
cd9669
%doc Changelog eg/ README.md
cd9669
%{perl_vendorlib}/IPC/
cd9669
%{_mandir}/man3/IPC::Run.3*
cd9669
%{_mandir}/man3/IPC::Run::Debug.3*
cd9669
%{_mandir}/man3/IPC::Run::IO.3*
cd9669
%{_mandir}/man3/IPC::Run::Timer.3*
cd9669
cd9669
%changelog
cd9669
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 20200505.0-6
cd9669
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
cd9669
  Related: rhbz#1991688
cd9669
cd9669
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 20200505.0-5
cd9669
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
cd9669
cd9669
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-4
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cd9669
cd9669
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-3
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cd9669
cd9669
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 20200505.0-2
cd9669
- Perl 5.32 rebuild
cd9669
cd9669
* Wed May  6 2020 Paul Howarth <paul@city-fan.org> - 20200505.0-1
cd9669
- Update to 20200505.0
cd9669
  - Fix syntax errors in POD examples (GH#125)
cd9669
  - Switch Readonly testing requirement to a recommends (GH#127)
cd9669
  - Fix full_result to always return $? (GH#129)
cd9669
  - kill_kill: Immediately KILL the child process as documented for Win32 (GH#136)
cd9669
  - Switch to GitHub actions for CI testing
cd9669
  - Re-structure shipped files into eg/
cd9669
  - Move author tests into xt/ and test them separately
cd9669
cd9669
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-7
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cd9669
cd9669
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-6
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cd9669
cd9669
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 20180523.0-5
cd9669
- Perl 5.30 rebuild
cd9669
cd9669
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-4
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cd9669
cd9669
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-3
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cd9669
cd9669
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 20180523.0-2
cd9669
- Perl 5.28 rebuild
cd9669
cd9669
* Thu May 24 2018 Paul Howarth <paul@city-fan.org> - 20180523.0-1
cd9669
- Update to 20180523.0
cd9669
  - Fix using fd in child process when it happens to be the same number in the
cd9669
    child as it was in the parent (GH#99)
cd9669
- Switch upstream from search.cpan.org to metacpan.org
cd9669
cd9669
* Sat Mar 31 2018 Paul Howarth <paul@city-fan.org> - 0.99-1
cd9669
- Update to 0.99
cd9669
  - Fixes for Windows unit tests so they skip or pass
cd9669
    - t/autoflush.t
cd9669
    - t/readonly.t
cd9669
    - t/run_stdin-callback-return-array.t
cd9669
cd9669
* Fri Mar 30 2018 Paul Howarth <paul@city-fan.org> - 0.98-1
cd9669
- Update to 0.98
cd9669
  - Switch to using $!{EINTR}
cd9669
  - Honor umask for user/group permissions on a +rw file
cd9669
  - Remove commented code from CPAN RT#50739
cd9669
  - Fix _write on invalid objects (GH#63)
cd9669
  - Make slave the controlling terminal so more programs can be called from
cd9669
    IPC::Run reliably (GH#54)
cd9669
  - Prevent Not a GLOB reference in close_terminal by untieing before close
cd9669
    (GH#53)
cd9669
  - Fix '&' closing the stdin of the right process (GH#46)
cd9669
  - Do POSIX::_exit not ::exit (GH#41)
cd9669
  - Ensure child Win32 processes have same priority as parent (GH#40)
cd9669
  - Add unit test for passing use of Readonly.pm (GH#38)
cd9669
  - Fix GLOB test in IPC::Run::IO->new (GH#39)
cd9669
  - Fix for memory leak (GH#86, CPAN RT#57990)
cd9669
  - MANIFEST was updated; new tests may start shipping now
cd9669
cd9669
* Tue Mar 27 2018 Paul Howarth <paul@city-fan.org> - 0.97-1
cd9669
- Update to 0.97
cd9669
  - Update meta and POD to point to GitHub issues not RT
cd9669
  - Update README with pod changes
cd9669
  - Fix variable name in synopsis (GH#47)
cd9669
  - Fix t/run.t to work on "perl in space" (GH#100)
cd9669
cd9669
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-4
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cd9669
cd9669
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-3
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cd9669
cd9669
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.96-2
cd9669
- Perl 5.26 rebuild
cd9669
cd9669
* Sat May 13 2017 Paul Howarth <paul@city-fan.org> - 0.96-1
cd9669
- Update to 0.96
cd9669
  - Update bug tracker to https://github.com/toddr/IPC-Run/issues
cd9669
cd9669
* Tue Apr 25 2017 Paul Howarth <paul@city-fan.org> - 0.95-1
cd9669
- Update to 0.95
cd9669
  - Enable Travis-CI integration for IPC::Run
cd9669
  - Use q{} and qq{} to fix problems with quotation in cmd.exe
cd9669
  - Sync $VERSION across all files to address kwalitee
cd9669
  - Stop side effect of altering flushing of STDOUT and STDERR (CPAN RT#109243)
cd9669
  - CHILD_HANDLE should be closed with 'Close' to prevent a warning
cd9669
  - Require Win32API::File on Windows
cd9669
  - Better timer error message plus an additional unit test
cd9669
  - Catching previously non-detected malformed time strings
cd9669
  - Let Timer accept all allowable perl numbers
cd9669
  - Allow the OS to choose the ephemeral port to use
cd9669
  - Don't use version.pm to parse the perl version in Makefile.PL
cd9669
  - perltidy
cd9669
  - Do not import POSIX into local namespace (it's a memory hog)
cd9669
  - Skip infinity test on perl below 5.8.9
cd9669
  - Spelling fixes
cd9669
  - Documentation fix: full_result returns $?, not $? >> 8
cd9669
  - Fix check for reaped PID in reap_nb
cd9669
  - Re-remove unnecessary use of UNIVERSAL
cd9669
- Remove redundant Group: tag
cd9669
cd9669
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.94-6
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cd9669
cd9669
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.94-5
cd9669
- Perl 5.24 rebuild
cd9669
cd9669
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.94-4
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cd9669
cd9669
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.94-3
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cd9669
cd9669
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.94-2
cd9669
- Perl 5.22 rebuild
cd9669
cd9669
* Mon Dec 15 2014 Paul Howarth <paul@city-fan.org> - 0.94-1
cd9669
- Update to 0.94
cd9669
  - Update License discrepancies (CPAN RT#100858)
cd9669
  - Many typo corrections
cd9669
  - Fix t/pty.t fails on Solaris 10 (CPAN RT#20105)
cd9669
- Drop upstreamed patch for CPAN RT#20105
cd9669
- Use %%license
cd9669
cd9669
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 0.93-1
cd9669
- 0.93 bump
cd9669
cd9669
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.92-7
cd9669
- Perl 5.20 rebuild
cd9669
cd9669
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.92-6
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cd9669
cd9669
* Tue May  6 2014 Paul Howarth <paul@city-fan.org> - 0.92-5
cd9669
- Address intermittent test failures (CPAN RT#20105, RH BZ#1094395)
cd9669
- Add runtime dependency on Data::Dumper
cd9669
- Add build dependency on IO::Tty for the test suite
cd9669
- Make %%files list more explicit
cd9669
cd9669
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.92-4
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cd9669
cd9669
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.92-3
cd9669
- Perl 5.18 rebuild
cd9669
cd9669
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.92-2
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cd9669
cd9669
* Fri Nov 16 2012 Petr Šabata <contyk@redhat.com> - 0.92-1
cd9669
- 0.92 bump
cd9669
- Modernize the spec
cd9669
- Fix dependencies
cd9669
- Enable the test suite
cd9669
- Drop command macros
cd9669
cd9669
* Thu Sep 13 2012 Petr Pisar <ppisar@redhat.com> - 0.89-9
cd9669
- IO::Pty is required when passing ">pty>" argument (bug #857030)
cd9669
cd9669
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.89-8
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cd9669
cd9669
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.89-7
cd9669
- Perl 5.16 rebuild
cd9669
cd9669
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.89-6
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cd9669
cd9669
* Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.89-5
cd9669
- Perl mass rebuild
cd9669
cd9669
* Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.89-4
cd9669
- Perl mass rebuild
cd9669
cd9669
* Thu Jun 23 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.89-3
cd9669
- Perl mass rebuild
cd9669
cd9669
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.89-2
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cd9669
cd9669
* Fri Oct 08 2010 Iain Arnell <iarnell@epo.org> 0.89-1
cd9669
- update to latest upstream version
cd9669
- clean up spec for modern rpmbuild
cd9669
cd9669
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.84-3
cd9669
- Mass rebuild with perl-5.12.0
cd9669
cd9669
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.84-2
cd9669
- rebuild against perl 5.10.1
cd9669
cd9669
* Wed Sep 02 2009 Steven Pritchard <steve@kspei.com> 0.84-1
cd9669
- Update to 0.84.
cd9669
- Drop IPCRUNDEBUG from "make test" (bug fixed long ago).
cd9669
cd9669
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.82-3
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cd9669
cd9669
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.82-2
cd9669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cd9669
cd9669
* Fri Jan 16 2009 Steven Pritchard <steve@kspei.com> 0.82-1
cd9669
- Update to 0.82.
cd9669
- Use fixperms macro instead of our own chmod incantation.
cd9669
- Fix Source0 URL.
cd9669
- BR Test::More.
cd9669
- Include LICENSE, README, and abuse/ in docs.
cd9669
- Cleanup to more closely resemble cpanspec output.
cd9669
cd9669
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.80-5
cd9669
- Rebuild for perl 5.10 (again)
cd9669
cd9669
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.80-4
cd9669
- rebuild for new perl
cd9669
cd9669
* Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.80-3
cd9669
- BuildRequire perl(ExtUtils::MakeMaker).
cd9669
cd9669
* Wed Aug 30 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.80-2
cd9669
- Fix order of arguments to find(1).
cd9669
cd9669
* Thu May 11 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.80-1
cd9669
- 0.80, fine tune build dependencies.
cd9669
cd9669
* Tue Jan 17 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.79-3
cd9669
- Rebuild, cosmetic cleanups.
cd9669
cd9669
* Sun Apr 10 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.79-2
cd9669
- Exclude Win32 specific modules.
cd9669
- Include more docs.
cd9669
- Skip tests if /dev/pts doesn't exist.
cd9669
cd9669
* Sat Apr  2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.79-1
cd9669
- 0.79.
cd9669
cd9669
* Sat Apr  2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.78-2
cd9669
- Sync with fedora-rpmdevtools' Perl spec template.
cd9669
- Improve dependency filtering script.
cd9669
cd9669
* Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.78-0.fdr.1
cd9669
- Update to 0.78.
cd9669
cd9669
* Sun Feb  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.4
cd9669
- Reduce directory ownership bloat.
cd9669
cd9669
* Fri Nov 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.3
cd9669
- BuildRequire perl-IO-Tty for better test coverage.
cd9669
cd9669
* Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.2
cd9669
- Fix typo in dependency filtering scriptlet.
cd9669
cd9669
* Sat Sep 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.1
cd9669
- Update to 0.77.
cd9669
cd9669
* Fri Sep  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.75-0.fdr.3
cd9669
- Avoid Win32-specific dependencies.
cd9669
- Use PERL_INSTALL_ROOT.
cd9669
cd9669
* Sun Aug 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.75-0.fdr.2
cd9669
- Install into vendor dirs.
cd9669
cd9669
* Thu Jun 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.75-0.fdr.1
cd9669
- First build.