perl-autodie/perl-autodie.spec

262 lines
8.8 KiB
RPMSpec
Raw Normal View History

# Run optional test
%bcond_without perl_autodie_enables_optional_test
2013-03-06 07:42:36 +00:00
Name: perl-autodie
2021-01-25 09:37:37 +00:00
Version: 2.34
Release: 490%{?dist}
2013-03-06 07:42:36 +00:00
Summary: Replace functions with ones that succeed or die
License: GPL+ or Artistic
URL: https://metacpan.org/release/autodie
2020-01-08 07:57:57 +00:00
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/autodie-%{version}.tar.gz
2013-03-06 07:42:36 +00:00
BuildArch: noarch
2020-01-08 08:01:13 +00:00
BuildRequires: coreutils
2015-06-10 12:56:37 +00:00
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
2020-01-08 08:01:13 +00:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
2013-03-06 07:42:36 +00:00
BuildRequires: perl(strict)
2013-07-01 07:58:42 +00:00
BuildRequires: perl(warnings)
2013-03-06 07:42:36 +00:00
# Run-time:
BuildRequires: perl(B)
BuildRequires: perl(Carp)
2013-07-01 07:58:42 +00:00
BuildRequires: perl(Config)
2013-03-06 07:42:36 +00:00
BuildRequires: perl(constant)
2015-01-05 09:18:06 +00:00
BuildRequires: perl(Exporter) >= 5.57
2013-03-06 07:42:36 +00:00
BuildRequires: perl(Fcntl)
2013-07-01 07:58:42 +00:00
%if !%{defined perl_bootstrap}
BuildRequires: perl(IPC::System::Simple) >= 0.12
%endif
2013-03-06 07:42:36 +00:00
BuildRequires: perl(overload)
2015-01-05 09:18:06 +00:00
BuildRequires: perl(parent)
2013-03-06 07:42:36 +00:00
BuildRequires: perl(POSIX)
2013-07-01 07:58:42 +00:00
BuildRequires: perl(Scalar::Util)
2020-01-08 07:57:57 +00:00
# Sub::Identify is optional with a fallback
2013-09-12 11:58:14 +00:00
BuildRequires: perl(Tie::RefHash)
2013-03-06 07:42:36 +00:00
# Tests:
2015-01-05 09:18:06 +00:00
# English not used
2013-03-06 07:42:36 +00:00
BuildRequires: perl(File::Copy)
2013-03-06 07:54:48 +00:00
BuildRequires: perl(File::Spec)
2013-03-06 07:42:36 +00:00
BuildRequires: perl(File::Temp)
2014-01-30 10:19:45 +00:00
BuildRequires: perl(FindBin)
2015-01-05 09:18:06 +00:00
BuildRequires: perl(if)
2013-03-06 07:42:36 +00:00
BuildRequires: perl(IO::Handle)
2014-01-30 10:19:45 +00:00
BuildRequires: perl(lib)
2013-03-06 07:54:48 +00:00
BuildRequires: perl(open)
2013-03-06 07:42:36 +00:00
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
2015-01-05 09:18:06 +00:00
# Test::Perl::Critic not used
# Test::Pod 1.41 not used
# Test::Pod::Coverage 1.08 not used
2013-07-01 07:58:42 +00:00
# Optional tests:
2018-03-15 12:57:09 +00:00
%if %{with perl_autodie_enables_optional_test} && !%{defined perl_bootstrap}
2013-07-01 07:58:42 +00:00
BuildRequires: perl(BSD::Resource)
2015-06-10 12:56:37 +00:00
BuildRequires: perl(Import::Into) >= 1.002004
2013-07-01 07:58:42 +00:00
%endif
2013-03-06 07:42:36 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(B)
Requires: perl(Fcntl)
Requires: perl(POSIX)
# Optional:
%if !%{defined perl_bootstrap}
# IPC::System::Simple dependency requested, bug #1183231
Requires: perl(IPC::System::Simple) >= 0.12
%endif
2013-03-06 07:42:36 +00:00
2013-07-01 07:58:42 +00:00
# Remove falsely detected perl(lib)
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(lib\\)$
2013-03-06 07:42:36 +00:00
%description
The "autodie" and "Fatal" pragma provides a convenient way to replace
functions that normally return false on failure with equivalents that throw an
exception on failure.
However "Fatal" has been obsoleted by the new autodie pragma. Please use
autodie in preference to "Fatal".
%prep
%setup -q -n autodie-%{version}
find -type f -exec chmod -x {} +
%build
2020-01-08 08:01:13 +00:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2013-03-06 07:42:36 +00:00
%install
2020-01-08 08:01:13 +00:00
%{make_install}
2013-03-06 07:42:36 +00:00
%{_fixperms} $RPM_BUILD_ROOT/*
%check
2020-01-08 07:57:57 +00:00
unset AUTHOR_TESTING AUTOMATED_TESTING PERL_CORE RELEASE_TESTING
2013-03-06 07:42:36 +00:00
make test
%files
2015-06-10 12:56:37 +00:00
%license LICENSE
%doc AUTHORS Changes README.md
2013-03-06 07:42:36 +00:00
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.34-490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.34-489
- Perl 5.36 re-rebuild of bootstrapped packages
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.34-488
- Increase release to favour standalone package
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.34-480
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.34-479
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.34-478
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.34-477
- Increase release to favour standalone package
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.34-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-01-25 09:37:37 +00:00
* Mon Jan 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.34-1
- 2.34 bump
2021-01-22 08:01:37 +00:00
* Fri Jan 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.33-1
- 2.33 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-458
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-457
- Perl 5.32 re-rebuild of bootstrapped packages
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-456
- Increase release to favour standalone package
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-17 08:25:19 +00:00
* Fri Jan 17 2020 Petr Pisar <ppisar@redhat.com> - 2.32-1
- 2.32 bump
2020-01-08 07:57:57 +00:00
* Wed Jan 08 2020 Petr Pisar <ppisar@redhat.com> - 2.31-1
- 2.31 bump
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-439
- Perl 5.30 re-rebuild of bootstrapped packages
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-438
- Increase release to favour standalone package
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-419
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-418
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-417
- Perl 5.28 re-rebuild of bootstrapped packages
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-416
- Increase release to favour standalone package
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-396
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-395
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-394
- Perl 5.26 re-rebuild of bootstrapped packages
2017-06-03 11:05:32 +00:00
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-393
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-367
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-366
- Perl 5.24 re-rebuild of bootstrapped packages
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-365
- Increase release to favour standalone package
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-07-09 12:35:33 +00:00
* Thu Jul 09 2015 Petr Pisar <ppisar@redhat.com> - 2.29-1
- 2.29 bump
2015-06-22 13:46:25 +00:00
* Mon Jun 22 2015 Petr Pisar <ppisar@redhat.com> - 2.28-1
- 2.28 bump
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27-2
- Perl 5.22 re-rebuild of bootstrapped packages
2015-06-10 12:56:37 +00:00
* Wed Jun 10 2015 Petr Pisar <ppisar@redhat.com> - 2.27-1
- 2.27 bump
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-345
- Increase release to favour standalone package
2015-06-03 13:17:15 +00:00
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-3
- Perl 5.22 rebuild
* Mon Jan 19 2015 Petr Pisar <ppisar@redhat.com> - 2.26-2
- Run-require IPC::System::Simple for fatalizing system() (bug #1183231)
2015-01-05 09:18:06 +00:00
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 2.26-1
- 2.26 bump
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.25-4
- Perl 5.20 re-rebuild of bootstrapped packages
2014-08-26 12:06:58 +00:00
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.25-3
- Perl 5.20 rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-04-04 12:43:26 +00:00
* Fri Apr 04 2014 Petr Pisar <ppisar@redhat.com> - 2.25-1
- 2.25 bump
2014-03-31 08:34:12 +00:00
* Mon Mar 31 2014 Petr Pisar <ppisar@redhat.com> - 2.24-1
- 2.24 bump
2014-01-30 10:19:45 +00:00
* Thu Jan 30 2014 Petr Pisar <ppisar@redhat.com> - 2.23-1
- 2.23 bump
2013-09-23 11:53:48 +00:00
* Mon Sep 23 2013 Petr Pisar <ppisar@redhat.com> - 2.22-1
- 2.22 bump
2013-09-12 11:58:14 +00:00
* Thu Sep 12 2013 Petr Pisar <ppisar@redhat.com> - 2.21-1
- 2.21 bump
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.20-4
- Perl 5.18 re-rebuild of bootstrapped packages
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-12 14:04:28 +00:00
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.20-2
- Perl 5.18 rebuild
2013-07-01 07:58:42 +00:00
* Mon Jul 01 2013 Petr Pisar <ppisar@redhat.com> - 2.20-1
- 2.20 bump
2013-03-06 07:54:48 +00:00
* Wed Mar 06 2013 Petr Pisar <ppisar@redhat.com> - 2.16-1
- 2.16 bump
2013-03-06 07:42:36 +00:00
* Thu Feb 14 2013 Petr Pisar <ppisar@redhat.com> 2.13-1
- Specfile autogenerated by cpanspec 1.78.