From 1e8b58d61a6decb0c9f046c85b4b03764ce092e7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 05 2019 14:53:50 +0000 Subject: import perl-IPC-System-Simple-1.25-17.el8 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b18607 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/IPC-System-Simple-1.25.tar.gz diff --git a/.perl-IPC-System-Simple.metadata b/.perl-IPC-System-Simple.metadata new file mode 100644 index 0000000..988d266 --- /dev/null +++ b/.perl-IPC-System-Simple.metadata @@ -0,0 +1 @@ +fb50f4f27407c81bb884073bd9bc5cf75f4841f1 SOURCES/IPC-System-Simple-1.25.tar.gz diff --git a/SOURCES/IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch b/SOURCES/IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch new file mode 100644 index 0000000..5e480db --- /dev/null +++ b/SOURCES/IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch @@ -0,0 +1,37 @@ +From ff8028c4d95425faa5b0705b8ed8c84b1112c7e4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 2 Aug 2017 17:29:13 +0200 +Subject: [PATCH] Use exucatable name as a source of taintedness +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Test::Simple >= 1.302065 injects variables into the environment. These +are not tainted and caused a random t/07_taint.t test failures. + +This patch fixes it by using executable name $0 instead. + +https://github.com/pjf/ipc-system-simple/issues/21 +Signed-off-by: Petr Písař +--- + t/07_taint.t | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/t/07_taint.t b/t/07_taint.t +index 49cee12..be449cd 100644 +--- a/t/07_taint.t ++++ b/t/07_taint.t +@@ -17,8 +17,8 @@ use_ok("IPC::System::Simple","run","capture"); + + chdir("t"); # Ignore return, since we may already be in t/ + +-my $taint = $ENV{(keys(%ENV))[0]} . "foo"; # ."foo" to avoid zero length +-ok(tainted($taint),"Sanity - ENV vars are tainted"); ++my $taint = $0 . "foo"; # ."foo" to avoid zero length ++ok(tainted($taint),"Sanity - executable name is tainted"); + + my $evil_zero = 1 - (length($taint) / length($taint)); + +-- +2.9.4 + diff --git a/SPECS/perl-IPC-System-Simple.spec b/SPECS/perl-IPC-System-Simple.spec new file mode 100644 index 0000000..b57373e --- /dev/null +++ b/SPECS/perl-IPC-System-Simple.spec @@ -0,0 +1,236 @@ +# Run optional tests +%if ! (0%{?rhel}) +%bcond_without perl_IPC_System_Simple_enables_optional_test +%else +%bcond_with perl_IPC_System_Simple_enables_optional_test +%endif + +Name: perl-IPC-System-Simple +Version: 1.25 +Release: 17%{?dist} +License: GPL+ or Artistic +Summary: Run commands simply, with detailed diagnostics +URL: http://search.cpan.org/dist/IPC-System-Simple +Source0: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/IPC-System-Simple-%{version}.tar.gz +# Fix random test failures with Test-Simple 1.302065, proposed to upstream, +# +Patch0: IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch +BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(Config) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(List::Util) +BuildRequires: perl(POSIX) +BuildRequires: perl(re) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(File::Basename) +BuildRequires: perl(Test) +BuildRequires: perl(Test::More) +%if %{with perl_IPC_System_Simple_enables_optional_test} +# Optional Tests +BuildRequires: perl(BSD::Resource) +BuildRequires: perl(Test::NoWarnings) +# Author Tests +%if !%{defined perl_bootstrap} +# Break build-cycle: perl-IPC-System-Simple → perl-Test-Perl-Critic +# → perl-Perl-Critic → perl-PPI → perl-IO-All → perl-File-MimeInfo +# → perl-File-BaseDir → perl-IPC-System-Simple +BuildRequires: perl(English) +BuildRequires: perl(Test::Perl::Critic) +%endif +# Release Tests (wants Test::Pod 1.41 but EL-6 doesn't have it) +BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +%endif +# Dependencies +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Calling Perl's in-built 'system()' function is easy; determining if it +was successful is _hard_. Let's face it, '$?' isn't the nicest variable +in the world to play with, and even if you _do_ check it, producing a +well-formatted error string takes a lot of work. 'IPC::System::Simple' +takes the hard work out of calling external commands. In fact, if you +want to be really lazy, you can just write: + + use IPC::System::Simple qw(system); + +and all of your "system" commands will either succeed (run to completion and +return a zero exit value), or die with rich diagnostic messages. + +%prep +%setup -q -n IPC-System-Simple-%{version} +%patch0 -p1 + +# Avoid doc-file dependencies +chmod -c -x examples/*.pl + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} + +%check +make test \ +%if %{with perl_IPC_System_Simple_enables_optional_test} + TEST_AUTHOR=1 \ + %{!?perl_bootstrap:AUTHOR_TESTING=1} \ + RELEASE_TESTING=1 +%endif + +%files +%if 0%{?_licensedir:1} +%license LICENSE +%else +%doc LICENSE +%endif +%doc Changes README examples/ +%{perl_vendorlib}/IPC/ +%{_mandir}/man3/IPC::System::Simple.3* + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 1.25-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Petr Pisar - 1.25-16 +- Fix random test failures with Test-Simple 1.302065 + +* Thu Jul 27 2017 Fedora Release Engineering - 1.25-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 1.25-14 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Mon Jun 05 2017 Jitka Plesnikova - 1.25-13 +- Perl 5.26 rebuild + +* Mon Apr 10 2017 Paul Howarth - 1.25-12 +- Drop EL-5 support + - Drop BuildRoot: and Group: tags + - Drop explicit buildroot cleaning in %%install section + - Drop explicit %%clean section +- Introduce build-condition for optional tests +- Use %%license where possible +- Simplify find command using -delete +- Classify buildreqs by usage + +* Sat Feb 11 2017 Fedora Release Engineering - 1.25-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed May 18 2016 Jitka Plesnikova - 1.25-10 +- Perl 5.24 re-rebuild of bootstrapped packages + +* Sun May 15 2016 Jitka Plesnikova - 1.25-9 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.25-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.25-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 10 2015 Jitka Plesnikova - 1.25-6 +- Perl 5.22 re-rebuild of bootstrapped packages + +* Sat Jun 06 2015 Jitka Plesnikova - 1.25-5 +- Perl 5.22 rebuild + +* Tue Apr 21 2015 Petr Pisar - 1.25-4 +- Break build-cycle: perl-IPC-System-Simple → perl-Test-Perl-Critic + → perl-Perl-Critic → perl-PPI → perl-IO-All → perl-File-MimeInfo + → perl-File-BaseDir → perl-IPC-System-Simple + + +* Fri Aug 29 2014 Jitka Plesnikova - 1.25-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.25-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Oct 20 2013 Paul Howarth - 1.25-1 +- Update to 1.25 + - No longer ship unrequired file Debian_CPANTS.txt (GH #7) + +* Fri Oct 18 2013 Paul Howarth - 1.24-1 +- Update to 1.24 + - No longer mark BSD::Resource as required (GH #6) + - Skip core-dump tests on OS X; they're not as straightforward as the test + script would like (GH #5) + +* Wed Oct 9 2013 Paul Howarth - 1.23-1 +- Update to 1.23 + - Silence "Statement unlikely to be reached" warning + - Repository information fix, and typo fixes + - Converted to using dzil +- Specify all dependencies +- Don't need to remove empty directories from the buildroot +- Restore EL-5 compatibility + +* Sat Aug 03 2013 Fedora Release Engineering - 1.21-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 31 2013 Petr Pisar - 1.21-7 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.21-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.21-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jun 23 2012 Petr Pisar - 1.21-4 +- Perl 5.16 rebuild + +* Thu Jan 12 2012 Paul Howarth - 1.21-3 +- Run author tests too for completeness +- Add buildreqs needed for author tests +- Add buildreqs for core perl modules, which may be dual-lived +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Make %%files list more explicit + +* Wed Jul 20 2011 Petr Sabata - 1.21-2 +- Perl mass rebuild + +* Fri Mar 18 2011 Iain Arnell - 1.21-1 +- Update to latest upstream version +- Clean up spec for modern rpmbuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.18-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 20 2010 Marcela Maslanova - 1.18-5 +- Rebuild to fix problems with vendorarch/lib (#661697) + +* Sun May 02 2010 Marcela Maslanova - 1.18-4 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 07 2009 Stepan Kasal - 1.18-3 +- Rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Mar 05 2009 Chris Weyl - 1.18-1 +- Submission + +* Thu Mar 05 2009 Chris Weyl - 1.18-0 +- Initial RPM packaging +- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) +