|
|
de1b92 |
# Run optional tests
|
|
|
de1b92 |
%if ! (0%{?rhel})
|
|
|
de1b92 |
%bcond_without perl_IPC_System_Simple_enables_optional_test
|
|
|
de1b92 |
%else
|
|
|
de1b92 |
%bcond_with perl_IPC_System_Simple_enables_optional_test
|
|
|
de1b92 |
%endif
|
|
|
de1b92 |
|
|
|
de1b92 |
Name: perl-IPC-System-Simple
|
|
|
de1b92 |
Version: 1.25
|
|
|
de1b92 |
Release: 18%{?dist}
|
|
|
de1b92 |
License: GPL+ or Artistic
|
|
|
de1b92 |
Summary: Run commands simply, with detailed diagnostics
|
|
|
de1b92 |
URL: http://search.cpan.org/dist/IPC-System-Simple
|
|
|
de1b92 |
Source0: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/IPC-System-Simple-%{version}.tar.gz
|
|
|
de1b92 |
# Fix random test failures with Test-Simple 1.302065, proposed to upstream,
|
|
|
de1b92 |
# <https://github.com/pjf/ipc-system-simple/issues/21>
|
|
|
de1b92 |
Patch0: IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch
|
|
|
de1b92 |
BuildArch: noarch
|
|
|
de1b92 |
# Module Build
|
|
|
de1b92 |
BuildRequires: coreutils
|
|
|
de1b92 |
BuildRequires: findutils
|
|
|
de1b92 |
BuildRequires: make
|
|
|
de1b92 |
BuildRequires: perl-interpreter
|
|
|
de1b92 |
BuildRequires: perl-generators
|
|
|
de1b92 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
de1b92 |
# Module Runtime
|
|
|
de1b92 |
BuildRequires: perl(Carp)
|
|
|
de1b92 |
BuildRequires: perl(Config)
|
|
|
de1b92 |
BuildRequires: perl(constant)
|
|
|
de1b92 |
BuildRequires: perl(Exporter)
|
|
|
de1b92 |
BuildRequires: perl(List::Util)
|
|
|
de1b92 |
BuildRequires: perl(POSIX)
|
|
|
de1b92 |
BuildRequires: perl(re)
|
|
|
de1b92 |
BuildRequires: perl(Scalar::Util)
|
|
|
de1b92 |
BuildRequires: perl(strict)
|
|
|
de1b92 |
BuildRequires: perl(warnings)
|
|
|
de1b92 |
# Test Suite
|
|
|
de1b92 |
BuildRequires: perl(File::Basename)
|
|
|
de1b92 |
BuildRequires: perl(Test)
|
|
|
de1b92 |
BuildRequires: perl(Test::More)
|
|
|
de1b92 |
%if %{with perl_IPC_System_Simple_enables_optional_test}
|
|
|
de1b92 |
# Optional Tests
|
|
|
de1b92 |
BuildRequires: perl(BSD::Resource)
|
|
|
de1b92 |
BuildRequires: perl(Test::NoWarnings)
|
|
|
de1b92 |
# Author Tests
|
|
|
de1b92 |
%if !%{defined perl_bootstrap}
|
|
|
de1b92 |
# Break build-cycle: perl-IPC-System-Simple → perl-Test-Perl-Critic
|
|
|
de1b92 |
# → perl-Perl-Critic → perl-PPI → perl-IO-All → perl-File-MimeInfo
|
|
|
de1b92 |
# → perl-File-BaseDir → perl-IPC-System-Simple
|
|
|
de1b92 |
BuildRequires: perl(English)
|
|
|
de1b92 |
BuildRequires: perl(Test::Perl::Critic)
|
|
|
de1b92 |
%endif
|
|
|
de1b92 |
# Release Tests (wants Test::Pod 1.41 but EL-6 doesn't have it)
|
|
|
de1b92 |
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
de1b92 |
BuildRequires: perl(Test::Pod)
|
|
|
de1b92 |
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
de1b92 |
%endif
|
|
|
de1b92 |
# Dependencies
|
|
|
de1b92 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
de1b92 |
|
|
|
de1b92 |
%description
|
|
|
de1b92 |
Calling Perl's in-built 'system()' function is easy; determining if it
|
|
|
de1b92 |
was successful is _hard_. Let's face it, '$?' isn't the nicest variable
|
|
|
de1b92 |
in the world to play with, and even if you _do_ check it, producing a
|
|
|
de1b92 |
well-formatted error string takes a lot of work. 'IPC::System::Simple'
|
|
|
de1b92 |
takes the hard work out of calling external commands. In fact, if you
|
|
|
de1b92 |
want to be really lazy, you can just write:
|
|
|
de1b92 |
|
|
|
de1b92 |
use IPC::System::Simple qw(system);
|
|
|
de1b92 |
|
|
|
de1b92 |
and all of your "system" commands will either succeed (run to completion and
|
|
|
de1b92 |
return a zero exit value), or die with rich diagnostic messages.
|
|
|
de1b92 |
|
|
|
de1b92 |
%prep
|
|
|
de1b92 |
%setup -q -n IPC-System-Simple-%{version}
|
|
|
de1b92 |
%patch0 -p1
|
|
|
de1b92 |
|
|
|
de1b92 |
# Avoid doc-file dependencies
|
|
|
de1b92 |
chmod -c -x examples/*.pl
|
|
|
de1b92 |
|
|
|
de1b92 |
%build
|
|
|
de1b92 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
de1b92 |
make %{?_smp_mflags}
|
|
|
de1b92 |
|
|
|
de1b92 |
%install
|
|
|
de1b92 |
make pure_install DESTDIR=%{buildroot}
|
|
|
de1b92 |
find %{buildroot} -type f -name .packlist -delete
|
|
|
de1b92 |
%{_fixperms} -c %{buildroot}
|
|
|
de1b92 |
|
|
|
de1b92 |
%check
|
|
|
de1b92 |
make test \
|
|
|
de1b92 |
%if %{with perl_IPC_System_Simple_enables_optional_test}
|
|
|
de1b92 |
TEST_AUTHOR=1 \
|
|
|
de1b92 |
%{!?perl_bootstrap:AUTHOR_TESTING=1} \
|
|
|
de1b92 |
RELEASE_TESTING=1
|
|
|
de1b92 |
%endif
|
|
|
de1b92 |
|
|
|
de1b92 |
%files
|
|
|
de1b92 |
%if 0%{?_licensedir:1}
|
|
|
de1b92 |
%license LICENSE
|
|
|
de1b92 |
%else
|
|
|
de1b92 |
%doc LICENSE
|
|
|
de1b92 |
%endif
|
|
|
de1b92 |
%doc Changes README examples/
|
|
|
de1b92 |
%{perl_vendorlib}/IPC/
|
|
|
de1b92 |
%{_mandir}/man3/IPC::System::Simple.3*
|
|
|
de1b92 |
|
|
|
de1b92 |
%changelog
|
|
|
de1b92 |
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-18
|
|
|
de1b92 |
- Rebuild with enable hardening (bug #1636329)
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-17
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed Aug 02 2017 Petr Pisar <ppisar@redhat.com> - 1.25-16
|
|
|
de1b92 |
- Fix random test failures with Test-Simple 1.302065
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-15
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-14
|
|
|
de1b92 |
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
de1b92 |
|
|
|
de1b92 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-13
|
|
|
de1b92 |
- Perl 5.26 rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Mon Apr 10 2017 Paul Howarth <paul@city-fan.org> - 1.25-12
|
|
|
de1b92 |
- Drop EL-5 support
|
|
|
de1b92 |
- Drop BuildRoot: and Group: tags
|
|
|
de1b92 |
- Drop explicit buildroot cleaning in %%install section
|
|
|
de1b92 |
- Drop explicit %%clean section
|
|
|
de1b92 |
- Introduce build-condition for optional tests
|
|
|
de1b92 |
- Use %%license where possible
|
|
|
de1b92 |
- Simplify find command using -delete
|
|
|
de1b92 |
- Classify buildreqs by usage
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-11
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-10
|
|
|
de1b92 |
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-9
|
|
|
de1b92 |
- Perl 5.24 rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-8
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-7
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-6
|
|
|
de1b92 |
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-5
|
|
|
de1b92 |
- Perl 5.22 rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Tue Apr 21 2015 Petr Pisar <ppisar@redhat.com> - 1.25-4
|
|
|
de1b92 |
- Break build-cycle: perl-IPC-System-Simple → perl-Test-Perl-Critic
|
|
|
de1b92 |
→ perl-Perl-Critic → perl-PPI → perl-IO-All → perl-File-MimeInfo
|
|
|
de1b92 |
→ perl-File-BaseDir → perl-IPC-System-Simple
|
|
|
de1b92 |
|
|
|
de1b92 |
|
|
|
de1b92 |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-3
|
|
|
de1b92 |
- Perl 5.20 rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-2
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sun Oct 20 2013 Paul Howarth <paul@city-fan.org> - 1.25-1
|
|
|
de1b92 |
- Update to 1.25
|
|
|
de1b92 |
- No longer ship unrequired file Debian_CPANTS.txt (GH #7)
|
|
|
de1b92 |
|
|
|
de1b92 |
* Fri Oct 18 2013 Paul Howarth <paul@city-fan.org> - 1.24-1
|
|
|
de1b92 |
- Update to 1.24
|
|
|
de1b92 |
- No longer mark BSD::Resource as required (GH #6)
|
|
|
de1b92 |
- Skip core-dump tests on OS X; they're not as straightforward as the test
|
|
|
de1b92 |
script would like (GH #5)
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed Oct 9 2013 Paul Howarth <paul@city-fan.org> - 1.23-1
|
|
|
de1b92 |
- Update to 1.23
|
|
|
de1b92 |
- Silence "Statement unlikely to be reached" warning
|
|
|
de1b92 |
- Repository information fix, and typo fixes
|
|
|
de1b92 |
- Converted to using dzil
|
|
|
de1b92 |
- Specify all dependencies
|
|
|
de1b92 |
- Don't need to remove empty directories from the buildroot
|
|
|
de1b92 |
- Restore EL-5 compatibility
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-8
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.21-7
|
|
|
de1b92 |
- Perl 5.18 rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-6
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-5
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sat Jun 23 2012 Petr Pisar <ppisar@redhat.com> - 1.21-4
|
|
|
de1b92 |
- Perl 5.16 rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 1.21-3
|
|
|
de1b92 |
- Run author tests too for completeness
|
|
|
de1b92 |
- Add buildreqs needed for author tests
|
|
|
de1b92 |
- Add buildreqs for core perl modules, which may be dual-lived
|
|
|
de1b92 |
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
de1b92 |
- Make %%files list more explicit
|
|
|
de1b92 |
|
|
|
de1b92 |
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.21-2
|
|
|
de1b92 |
- Perl mass rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> - 1.21-1
|
|
|
de1b92 |
- Update to latest upstream version
|
|
|
de1b92 |
- Clean up spec for modern rpmbuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-6
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.18-5
|
|
|
de1b92 |
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.18-4
|
|
|
de1b92 |
- Mass rebuild with perl-5.12.0
|
|
|
de1b92 |
|
|
|
de1b92 |
* Mon Dec 07 2009 Stepan Kasal <skasal@redhat.com> - 1.18-3
|
|
|
de1b92 |
- Rebuild against perl 5.10.1
|
|
|
de1b92 |
|
|
|
de1b92 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-2
|
|
|
de1b92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Mar 05 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.18-1
|
|
|
de1b92 |
- Submission
|
|
|
de1b92 |
|
|
|
de1b92 |
* Thu Mar 05 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.18-0
|
|
|
de1b92 |
- Initial RPM packaging
|
|
|
de1b92 |
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|
|
|
de1b92 |
|