|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
# Perform optinal tests
|
|
|
|
|
# Perform optional tests
|
|
|
|
|
%bcond_without perl_IPC_Run_enables_optional_test
|
|
|
|
|
|
|
|
|
|
Name: perl-IPC-Run
|
|
|
|
|
Version: 20200505.0
|
|
|
|
|
Version: 20231003.0
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Perl module for interacting with child processes
|
|
|
|
|
# the rest: GPL+ or Artistic
|
|
|
|
@ -10,7 +10,7 @@ Summary: Perl module for interacting with child processes
|
|
|
|
|
# lib/IPC/Run/Win32Helper.pm: GPLv2 or Artistic
|
|
|
|
|
# lib/IPC/Run/Win32Pump.pm: GPLv2 or Artistic
|
|
|
|
|
# lib/IPC/Run/Win32IO.pm: GPLv2 or Artistic
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/IPC-Run
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/IPC/IPC-Run-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -43,25 +43,28 @@ BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(Symbol)
|
|
|
|
|
# Text::ParseWords not used on Linux
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Win32::Process not used on Linux
|
|
|
|
|
# Win32API::File not used on Linux
|
|
|
|
|
# Tests:
|
|
|
|
|
# B not used on Linux
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(IO::Tty)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
%if %{with perl_IPC_Run_enables_optional_test}
|
|
|
|
|
# Optional Tests
|
|
|
|
|
BuildRequires: perl(Readonly)
|
|
|
|
|
%endif
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
|
Requires: perl(IO::Pty) >= 1.08
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
IPC::Run allows you run and interact with child processes using files,
|
|
|
|
|
pipes, and pseudo-ttys. Both system()-style and scripted usages are
|
|
|
|
@ -71,6 +74,15 @@ both supported and may be mixed.
|
|
|
|
|
Various redirection operators reminiscent of those seen on common Unix
|
|
|
|
|
and DOS command lines are provided.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n IPC-Run-%{version}
|
|
|
|
|
|
|
|
|
@ -80,17 +92,18 @@ sed -i -e '/^lib\/IPC\/Run\/Win32.*/d' MANIFEST
|
|
|
|
|
rm -f t/win32_*
|
|
|
|
|
sed -i -e '/^t\/win32_.*/d' MANIFEST
|
|
|
|
|
|
|
|
|
|
# Fix shellbangs
|
|
|
|
|
for file in eg/run_daemon eg/abuse/timers eg/abuse/blocking_debug_with_sub_coprocess ; do
|
|
|
|
|
perl -pi -e 's,^#!.*/perl,%{__perl}, if ($. == 1)' "$file"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Handle optional tests
|
|
|
|
|
%if !%{with perl_IPC_Run_enables_optional_test}
|
|
|
|
|
rm t/readonly.t
|
|
|
|
|
sed -i -e '/^t/readonly\.t/d' MANIFEST
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
@ -99,6 +112,20 @@ make %{?_smp_mflags}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
DIR=$(mktemp -d)
|
|
|
|
|
pushd "$DIR"
|
|
|
|
|
cp -a %{_libexecdir}/%{name}/* ./
|
|
|
|
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
popd
|
|
|
|
|
rm -rf "$DIR"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
@ -112,13 +139,85 @@ make test
|
|
|
|
|
%{_mandir}/man3/IPC::Run::IO.3*
|
|
|
|
|
%{_mandir}/man3/IPC::Run::Timer.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 20200505.0-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 20200505.0-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 20231003.0-6
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 20231003.0-5
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2024 Jitka Plesnikova <jplesnik@redhat.com> - 20231003.0-5
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 20231003.0-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20231003.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20231003.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Oct 3 2023 Paul Howarth <paul@city-fan.org> - 20231003.0-1
|
|
|
|
|
- Update to 20231003.0 (rhbz#2241845)
|
|
|
|
|
- On Windows, avoid hang under IPCRUNDEBUG (GH#157)
|
|
|
|
|
- Refresh "cpanfile" from Makefile.PL, to allow use on Windows
|
|
|
|
|
- Normalize shebangs to /usr/bin/perl (GH#163)
|
|
|
|
|
- Fix or skip all tests recently seen to fail on Windows
|
|
|
|
|
- Include t/result.t in releases
|
|
|
|
|
- Make full_result() and result() Windows behavior match non-Windows (GH#168)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20220807.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Apr 18 2023 Michal Josef Špaček <mspacek@redhat.com> - 20220807.0-3
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20220807.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Aug 7 2022 Paul Howarth <paul@city-fan.org> - 20220807.0-1
|
|
|
|
|
- Update to 20220807.0
|
|
|
|
|
- If your applications rely on portability to Windows, see new documentation
|
|
|
|
|
sections "argument-passing rules are program-specific" and "batch files"
|
|
|
|
|
- This release fixes bugs in runs of Windows programs that use standard
|
|
|
|
|
command line parsing rules
|
|
|
|
|
- Runs of non-standard programs may require changes; notable non-standard
|
|
|
|
|
programs include cmd.exe, cscript.exe, and Cygwin programs
|
|
|
|
|
- Skip t/pty.t test on NetBSD too (GH#140)
|
|
|
|
|
- Add strict/warnings
|
|
|
|
|
- Follow Windows argument quoting rules (GH#142)
|
|
|
|
|
- Allow win32_newlines.t to actually run (GH#146)
|
|
|
|
|
- Make t/pty.t test pass on OpenBSD (GH#150)
|
|
|
|
|
- Support Win32 commands having non-standard command line parsing rules
|
|
|
|
|
(GH#148)
|
|
|
|
|
- Support executing Win32 batch files
|
|
|
|
|
- Add IPC::Run::Win32Process, for delivering non-standard command lines
|
|
|
|
|
- Fix reporting of Win32::Process::Create() errors
|
|
|
|
|
- On Windows, avoid hang when closing read end of pipe (GH#156)
|
|
|
|
|
- Ignore known test failure on msys - t/windows_search_path.t (GH#155)
|
|
|
|
|
- Avoid warning with IPCRUNDEBUG, in Windows spawned children
|
|
|
|
|
- Use $^X, not 'perl', in tests
|
|
|
|
|
- Thanks to the new active developer: Noah Misch!
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 20200505.0-8
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 20200505.0-5
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|