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