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