Name: perl-B-Hooks-AtRuntime Version: 8 Release: 1%{?dist} Summary: Lower blocks from compile time to runtime # 2-clause BSD licence # cf. lib/B/Hooks/AtRuntime.pm License: BSD URL: https://metacpan.org/dist/B-Hooks-AtRuntime/ Source0: https://cpan.metacpan.org/authors/id/B/BM/BMORROW/B-Hooks-AtRuntime-%{version}.tar.gz BuildRequires: gcc perl-devel BuildRequires: make BuildRequires: findutils BuildRequires: coreutils BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.1 BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Exporter) BuildRequires: perl(Exporter::Tiny) BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Filter::Util::Call) BuildRequires: perl(lib) BuildRequires: perl(Module::Build) BuildRequires: perl(parent) BuildRequires: perl(strict) BuildRequires: perl(Sub::Name) >= 0.05 BuildRequires: perl(Test::Exception) >= 0.31 BuildRequires: perl(Test::Exports) >= 1 BuildRequires: perl(Test::More) >= 1.001002 BuildRequires: perl(Test::Warn) >= 0.22 BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Optional run-time dependency Recommends: perl(Filter::Util::Call) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module allows code that runs at compile-time to do something at runtime. A block passed to at_runtime gets compiled into the code that's currently compiling, and will be called when control reaches that point at runtime. In the example in the SYNOPSIS, the warnings will occur in order, and if that section of code runs more than once, so will all three warnings. %prep %setup -q -n B-Hooks-AtRuntime-%{version} %build %{__perl} Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" ./Build %install ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %files %doc Build Changes META.json tlib %{perl_vendorarch}/auto/* %{perl_vendorarch}/B* %{_mandir}/man3/* %changelog * Sun Aug 14 2022 Ralf Corsépius - 8-1 - Upstream update to 8. * Fri Jul 22 2022 Fedora Release Engineering - 7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 01 2022 Ralf Corsépius - 7-2 - Reflect feedback from review. * Fri Jul 01 2022 Ralf Corsépius - 7-1 - Update to 7. - Switch to using metacpan.org URLs. * Thu Jun 16 2022 Ralf Corsépius - 6-1 - Initial Fedora package.