# Perform optional tests %bcond_without perl_Shell_enables_optional_tests Name: perl-Shell Version: 0.73 Release: 21%{?dist} Summary: Run shell commands transparently within perl License: GPL+ or Artistic URL: https://metacpan.org/release/Shell Source0: https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Shell-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(constant) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests BuildRequires: perl(Test::More) %if %{with perl_Shell_enables_optional_tests} # Optional tests: BuildRequires: perl(Test::Pod) >= 1.18 %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Using Shell while importing "foo" creates a subroutine "foo" in the name space of the importing package. Calling "foo" with arguments "arg1", "arg2", ... results in a shell command "foo arg1 arg2...", where the function name and the arguments are joined with a blank. This package is included as a show case, illustrating a few Perl features. It shouldn't be used for production programs. %prep %setup -q -n Shell-%{version} %if !%{with perl_Shell_enables_optional_tests} rm t/99_pod.t perl -i -ne 'print $_ unless m{^t/99_pod\.t}' MANIFEST %endif %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* %check make test %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.73-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.73-20 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.73-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.73-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.73-17 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.73-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.73-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.73-14 - Perl 5.32 rebuild * Tue Mar 31 2020 Petr Pisar - 0.73-13 - Modernize a spec file * Thu Jan 30 2020 Fedora Release Engineering - 0.73-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.73-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.73-10 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.73-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.73-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.73-7 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.73-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.73-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.73-4 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.73-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.73-2 - Perl 5.24 rebuild * Tue Mar 22 2016 Jitka Plesnikova - 0.73-1 - 0.73 bump * Thu Feb 04 2016 Fedora Release Engineering - 0.72-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.72-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 0.72-6 - Perl 5.22 rebuild * Tue Aug 26 2014 Jitka Plesnikova - 0.72-5 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.72-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.72-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.72-2 - Perl 5.18 rebuild * Tue Feb 05 2013 Normunds Neimanis 0.72-1 - Initial package for Fedora