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