43b9ba
# Run optional tests
43b9ba
%if ! (0%{?rhel})
43b9ba
%bcond_without perl_IPC_System_Simple_enables_optional_test
43b9ba
%else
43b9ba
%bcond_with perl_IPC_System_Simple_enables_optional_test
43b9ba
%endif
43b9ba
43b9ba
Name:		perl-IPC-System-Simple
43b9ba
Version:	1.30
43b9ba
Release:	6%{?dist}
43b9ba
License:	GPL+ or Artistic
43b9ba
Summary:	Run commands simply, with detailed diagnostics
43b9ba
URL:		https://metacpan.org/release/IPC-System-Simple
43b9ba
Source0:	https://cpan.metacpan.org/modules/by-module/IPC/IPC-System-Simple-%{version}.tar.gz
43b9ba
BuildArch:	noarch
43b9ba
# Module Build
43b9ba
BuildRequires:	coreutils
43b9ba
BuildRequires:	findutils
43b9ba
BuildRequires:	make
43b9ba
BuildRequires:	perl-generators
43b9ba
BuildRequires:	perl-interpreter
43b9ba
BuildRequires:	perl(ExtUtils::MakeMaker)
43b9ba
# Module Runtime
43b9ba
BuildRequires:	perl(Carp)
43b9ba
BuildRequires:	perl(Config)
43b9ba
BuildRequires:	perl(constant)
43b9ba
BuildRequires:	perl(Exporter)
43b9ba
BuildRequires:	perl(List::Util)
43b9ba
BuildRequires:	perl(POSIX)
43b9ba
BuildRequires:	perl(re)
43b9ba
BuildRequires:	perl(Scalar::Util)
43b9ba
BuildRequires:	perl(strict)
43b9ba
BuildRequires:	perl(warnings)
43b9ba
# Test Suite
43b9ba
BuildRequires:	perl(File::Basename)
43b9ba
BuildRequires:	perl(Test)
43b9ba
BuildRequires:	perl(Test::More)
43b9ba
%if %{with perl_IPC_System_Simple_enables_optional_test}
43b9ba
# Optional Tests
43b9ba
BuildRequires:	perl(BSD::Resource)
43b9ba
BuildRequires:	perl(Test::NoWarnings)
43b9ba
%endif
43b9ba
# Dependencies
43b9ba
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
43b9ba
43b9ba
%description
43b9ba
Calling Perl's in-built 'system()' function is easy; determining if it
43b9ba
was successful is _hard_. Let's face it, '$?' isn't the nicest variable
43b9ba
in the world to play with, and even if you _do_ check it, producing a
43b9ba
well-formatted error string takes a lot of work. 'IPC::System::Simple'
43b9ba
takes the hard work out of calling external commands. In fact, if you
43b9ba
want to be really lazy, you can just write:
43b9ba
43b9ba
    use IPC::System::Simple qw(system);
43b9ba
43b9ba
and all of your "system" commands will either succeed (run to completion and
43b9ba
return a zero exit value), or die with rich diagnostic messages.
43b9ba
43b9ba
%prep
43b9ba
%setup -q -n IPC-System-Simple-%{version}
43b9ba
43b9ba
# Avoid doc-file dependencies
43b9ba
chmod -c -x examples/*.pl
43b9ba
43b9ba
%build
43b9ba
perl Makefile.PL INSTALLDIRS=vendor
43b9ba
make %{?_smp_mflags}
43b9ba
43b9ba
%install
43b9ba
make pure_install DESTDIR=%{buildroot}
43b9ba
find %{buildroot} -type f -name .packlist -delete
43b9ba
%{_fixperms} -c %{buildroot}
43b9ba
43b9ba
%check
43b9ba
make test
43b9ba
43b9ba
%files
43b9ba
%license LICENSE
43b9ba
%doc Changes README examples/
43b9ba
%{perl_vendorlib}/IPC/
43b9ba
%{_mandir}/man3/IPC::System::Simple.3*
43b9ba
43b9ba
%changelog
43b9ba
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.30-6
43b9ba
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
43b9ba
  Related: rhbz#1991688
43b9ba
43b9ba
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.30-5
43b9ba
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
43b9ba
43b9ba
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-4
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
43b9ba
43b9ba
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-3
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
43b9ba
43b9ba
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-2
43b9ba
- Perl 5.32 rebuild
43b9ba
43b9ba
* Tue Mar 24 2020 Paul Howarth <paul@city-fan.org> - 1.30-1
43b9ba
- Update to 1.30
43b9ba
  - On MSWin32, make Win32::Process a prerequisite
43b9ba
43b9ba
* Sun Mar 22 2020 Paul Howarth <paul@city-fan.org> - 1.29-1
43b9ba
- Update to 1.29
43b9ba
  - Improved handling of shell commands on Windows, which should get us closer
43b9ba
    to resolving Win32-related issues; there should be no change of
43b9ba
    functionality on Unix-like platforms
43b9ba
  - Better workaround for bug in perl-5.8.9 (GH#23)
43b9ba
  - Add t/args.t
43b9ba
  - Modify t/win32.t
43b9ba
  - Added Travis and AppVeyor configuration files
43b9ba
  - Eliminated use of Dist::Zilla for build, using older, but more reliable and
43b9ba
    better understood (by maintainer) ExtUtils::MakeMaker-based configuration
43b9ba
  - Move author testing to xt/ directory
43b9ba
43b9ba
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-2
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
43b9ba
43b9ba
* Sat Jan 25 2020 Paul Howarth <paul@city-fan.org> - 1.26-1
43b9ba
- Update to 1.26
43b9ba
  - BUILD: Update FAIL_POSIX warning message (GH#28)
43b9ba
  - TEST: t/07_taint.t: Use executable name as source of taintedness (GH#21)
43b9ba
  - OTHER: Typographic corrections (CPAN RT#60211, CPAN RT#86403)
43b9ba
  - Add Travis configuration
43b9ba
43b9ba
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-24
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
43b9ba
43b9ba
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-23
43b9ba
- Perl 5.30 re-rebuild of bootstrapped packages
43b9ba
43b9ba
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-22
43b9ba
- Perl 5.30 rebuild
43b9ba
43b9ba
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-21
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
43b9ba
43b9ba
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-20
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
43b9ba
43b9ba
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-19
43b9ba
- Perl 5.28 re-rebuild of bootstrapped packages
43b9ba
43b9ba
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-18
43b9ba
- Perl 5.28 rebuild
43b9ba
43b9ba
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-17
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
43b9ba
43b9ba
* Wed Aug 02 2017 Petr Pisar <ppisar@redhat.com> - 1.25-16
43b9ba
- Fix random test failures with Test-Simple 1.302065
43b9ba
43b9ba
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-15
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
43b9ba
43b9ba
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-14
43b9ba
- Perl 5.26 re-rebuild of bootstrapped packages
43b9ba
43b9ba
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-13
43b9ba
- Perl 5.26 rebuild
43b9ba
43b9ba
* Mon Apr 10 2017 Paul Howarth <paul@city-fan.org> - 1.25-12
43b9ba
- Drop EL-5 support
43b9ba
  - Drop BuildRoot: and Group: tags
43b9ba
  - Drop explicit buildroot cleaning in %%install section
43b9ba
  - Drop explicit %%clean section
43b9ba
- Introduce build-condition for optional tests
43b9ba
- Use %%license where possible
43b9ba
- Simplify find command using -delete
43b9ba
- Classify buildreqs by usage
43b9ba
43b9ba
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-11
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
43b9ba
43b9ba
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-10
43b9ba
- Perl 5.24 re-rebuild of bootstrapped packages
43b9ba
43b9ba
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-9
43b9ba
- Perl 5.24 rebuild
43b9ba
43b9ba
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-8
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
43b9ba
43b9ba
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-7
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
43b9ba
43b9ba
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-6
43b9ba
- Perl 5.22 re-rebuild of bootstrapped packages
43b9ba
43b9ba
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-5
43b9ba
- Perl 5.22 rebuild
43b9ba
43b9ba
* Tue Apr 21 2015 Petr Pisar <ppisar@redhat.com> - 1.25-4
43b9ba
- Break build-cycle: perl-IPC-System-Simple → perl-Test-Perl-Critic
43b9ba
  → perl-Perl-Critic → perl-PPI → perl-IO-All → perl-File-MimeInfo
43b9ba
  → perl-File-BaseDir → perl-IPC-System-Simple
43b9ba
43b9ba
43b9ba
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-3
43b9ba
- Perl 5.20 rebuild
43b9ba
43b9ba
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-2
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
43b9ba
43b9ba
* Sun Oct 20 2013 Paul Howarth <paul@city-fan.org> - 1.25-1
43b9ba
- Update to 1.25
43b9ba
  - No longer ship unrequired file Debian_CPANTS.txt (GH #7)
43b9ba
43b9ba
* Fri Oct 18 2013 Paul Howarth <paul@city-fan.org> - 1.24-1
43b9ba
- Update to 1.24
43b9ba
  - No longer mark BSD::Resource as required (GH #6)
43b9ba
  - Skip core-dump tests on OS X; they're not as straightforward as the test
43b9ba
    script would like (GH #5)
43b9ba
43b9ba
* Wed Oct  9 2013 Paul Howarth <paul@city-fan.org> - 1.23-1
43b9ba
- Update to 1.23
43b9ba
  - Silence "Statement unlikely to be reached" warning
43b9ba
  - Repository information fix, and typo fixes
43b9ba
  - Converted to using dzil
43b9ba
- Specify all dependencies
43b9ba
- Don't need to remove empty directories from the buildroot
43b9ba
- Restore EL-5 compatibility
43b9ba
43b9ba
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-8
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
43b9ba
43b9ba
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.21-7
43b9ba
- Perl 5.18 rebuild
43b9ba
43b9ba
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-6
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
43b9ba
43b9ba
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-5
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
43b9ba
43b9ba
* Sat Jun 23 2012 Petr Pisar <ppisar@redhat.com> - 1.21-4
43b9ba
- Perl 5.16 rebuild
43b9ba
43b9ba
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 1.21-3
43b9ba
- Run author tests too for completeness
43b9ba
- Add buildreqs needed for author tests
43b9ba
- Add buildreqs for core perl modules, which may be dual-lived
43b9ba
- Use DESTDIR rather than PERL_INSTALL_ROOT
43b9ba
- Make %%files list more explicit
43b9ba
43b9ba
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.21-2
43b9ba
- Perl mass rebuild
43b9ba
43b9ba
* Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> - 1.21-1
43b9ba
- Update to latest upstream version
43b9ba
- Clean up spec for modern rpmbuild
43b9ba
43b9ba
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-6
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
43b9ba
43b9ba
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.18-5
43b9ba
- Rebuild to fix problems with vendorarch/lib (#661697)
43b9ba
43b9ba
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.18-4
43b9ba
- Mass rebuild with perl-5.12.0
43b9ba
43b9ba
* Mon Dec 07 2009 Stepan Kasal <skasal@redhat.com> - 1.18-3
43b9ba
- Rebuild against perl 5.10.1
43b9ba
43b9ba
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-2
43b9ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
43b9ba
43b9ba
* Thu Mar 05 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.18-1
43b9ba
- Submission
43b9ba
43b9ba
* Thu Mar 05 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.18-0
43b9ba
- Initial RPM packaging
43b9ba
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
43b9ba