Compare commits

...

No commits in common. "c10s" and "c8s-stream-2.066" have entirely different histories.

8 changed files with 17 additions and 199 deletions

View File

@ -1 +0,0 @@
1

2
.gitignore vendored
View File

@ -1 +1 @@
/IPC-Run-[0-9.]*.tar.gz SOURCES/IPC-Run-0.99.tar.gz

1
.perl-IPC-Run.metadata Normal file
View File

@ -0,0 +1 @@
f024df7aee8699f4cc71a1c4a2574ffdc01d2fe1 SOURCES/IPC-Run-0.99.tar.gz

View File

@ -1,18 +1,15 @@
# Perform optional tests
%bcond_without perl_IPC_Run_enables_optional_test
Name: perl-IPC-Run Name: perl-IPC-Run
Version: 20231003.0 Version: 0.99
Release: 6%{?dist} Release: 2%{?dist}
Summary: Perl module for interacting with child processes Summary: Perl module for interacting with child processes
# the rest: GPL+ or Artistic # the rest: GPL+ or Artistic
# The Win32* modules are not part of the binary RPM package # The Win32* modules are not part of the binary RPM package
# lib/IPC/Run/Win32Helper.pm: GPLv2 or Artistic # lib/IPC/Run/Win32Helper.pm: GPLv2 or Artistic
# lib/IPC/Run/Win32Pump.pm: GPLv2 or Artistic # lib/IPC/Run/Win32Pump.pm: GPLv2 or Artistic
# lib/IPC/Run/Win32IO.pm: GPLv2 or Artistic # lib/IPC/Run/Win32IO.pm: GPLv2 or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl License: GPL+ or Artistic
URL: https://metacpan.org/release/IPC-Run URL: http://search.cpan.org/dist/IPC-Run/
Source0: https://cpan.metacpan.org/modules/by-module/IPC/IPC-Run-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/IPC-Run-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Build # Build
BuildRequires: coreutils BuildRequires: coreutils
@ -37,34 +34,25 @@ BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle) BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Pty) >= 1.08 BuildRequires: perl(IO::Pty) >= 1.08
BuildRequires: perl(POSIX) BuildRequires: perl(POSIX)
BuildRequires: perl(Scalar::Util)
# Socket not used on Linux # Socket not used on Linux
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(Symbol) BuildRequires: perl(Symbol)
# Text::ParseWords not used on Linux # Text::ParseWords not used on Linux
BuildRequires: perl(vars) BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Win32::Process not used on Linux # Win32::Process not used on Linux
# Win32API::File not used on Linux # Win32API::File not used on Linux
# Tests: # Tests:
# B not used on Linux
BuildRequires: perl(Cwd)
BuildRequires: perl(Encode) BuildRequires: perl(Encode)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Tty) BuildRequires: perl(IO::Tty)
BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Test::More) >= 0.47
%if %{with perl_IPC_Run_enables_optional_test} BuildRequires: perl(warnings)
# Optional Tests
BuildRequires: perl(Readonly)
%endif
# Runtime # Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Data::Dumper) Requires: perl(Data::Dumper)
Requires: perl(File::Basename) Requires: perl(File::Basename)
Requires: perl(IO::Pty) >= 1.08 Requires: perl(IO::Pty) >= 1.08
# Filter modules bundled for tests
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%description %description
IPC::Run allows you run and interact with child processes using files, IPC::Run allows you run and interact with child processes using files,
pipes, and pseudo-ttys. Both system()-style and scripted usages are pipes, and pseudo-ttys. Both system()-style and scripted usages are
@ -74,15 +62,6 @@ both supported and may be mixed.
Various redirection operators reminiscent of those seen on common Unix Various redirection operators reminiscent of those seen on common Unix
and DOS command lines are provided. 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 %prep
%setup -q -n IPC-Run-%{version} %setup -q -n IPC-Run-%{version}
@ -92,16 +71,9 @@ sed -i -e '/^lib\/IPC\/Run\/Win32.*/d' MANIFEST
rm -f t/win32_* rm -f t/win32_*
sed -i -e '/^t\/win32_.*/d' MANIFEST sed -i -e '/^t\/win32_.*/d' MANIFEST
# Handle optional tests # Fix shellbangs
%if !%{with perl_IPC_Run_enables_optional_test} for file in eg/run_daemon abuse/timers abuse/blocking_debug_with_sub_coprocess ; do
rm t/readonly.t perl -pi -e 's,^#!.*/perl,%{__perl}, if ($. == 1)' "$file"
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 done
%build %build
@ -112,152 +84,23 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot} %{_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 %check
make test make test
%files %files
%license LICENSE %license LICENSE
%doc Changelog eg/ README.md %doc Changes README TODO
%doc abuse/ eg/
%{perl_vendorlib}/IPC/ %{perl_vendorlib}/IPC/
%{_mandir}/man3/IPC::Run.3* %{_mandir}/man3/IPC::Run.3*
%{_mandir}/man3/IPC::Run::Debug.3* %{_mandir}/man3/IPC::Run::Debug.3*
%{_mandir}/man3/IPC::Run::IO.3* %{_mandir}/man3/IPC::Run::IO.3*
%{_mandir}/man3/IPC::Run::Timer.3* %{_mandir}/man3/IPC::Run::Timer.3*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 20231003.0-6 * Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-2
- Bump release for October 2024 mass rebuild: - Rebuild with enable hardening (bug #1636329)
Resolves: RHEL-64018
* 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
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200505.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 20200505.0-2
- Perl 5.32 rebuild
* Wed May 6 2020 Paul Howarth <paul@city-fan.org> - 20200505.0-1
- Update to 20200505.0
- Fix syntax errors in POD examples (GH#125)
- Switch Readonly testing requirement to a recommends (GH#127)
- Fix full_result to always return $? (GH#129)
- kill_kill: Immediately KILL the child process as documented for Win32 (GH#136)
- Switch to GitHub actions for CI testing
- Re-structure shipped files into eg/
- Move author tests into xt/ and test them separately
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 20180523.0-5
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180523.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 20180523.0-2
- Perl 5.28 rebuild
* Thu May 24 2018 Paul Howarth <paul@city-fan.org> - 20180523.0-1
- Update to 20180523.0
- Fix using fd in child process when it happens to be the same number in the
child as it was in the parent (GH#99)
- Switch upstream from search.cpan.org to metacpan.org
* Sat Mar 31 2018 Paul Howarth <paul@city-fan.org> - 0.99-1 * Sat Mar 31 2018 Paul Howarth <paul@city-fan.org> - 0.99-1
- Update to 0.99 - Update to 0.99

View File

@ -1,7 +0,0 @@
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,5 +0,0 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1 +0,0 @@
SHA512 (IPC-Run-20231003.0.tar.gz) = 81b94715e61f2a302ba4cfbd03f6af14ab66d438dfdf58187ccf8b0f7ff562fd343ef560ad48dad8118342dd493530560ac89beca6de2818663d556d18feff90

View File

@ -1,12 +0,0 @@
summary: Upstream tests
contact: Jitka Plesnikova <jplesnik@redhat.com>
component: perl-IPC-Run
require: perl-IPC-Run-tests
test: /usr/libexec/perl-IPC-Run/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false