Name: perl-Test-Timer Version: 2.12 Release: 10%{?dist} Summary: Test module to test/assert response times License: Artistic-2.0 URL: https://metacpan.org/release/Test-Timer Source0: https://cpan.metacpan.org/authors/id/J/JO/JONASBN/Test-Timer-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(base) BuildRequires: perl(Benchmark) BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Error) BuildRequires: perl(overload) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder::Module) BuildRequires: perl(vars) # Tests BuildRequires: perl(blib) BuildRequires: perl(Exporter) BuildRequires: perl(File::Spec) BuildRequires: perl(FindBin) BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) BuildRequires: perl(lib) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::Tester) >= 1.302111 # Filter modules bundled for tests %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Test::Timer::Test\\) %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %description Test::Timer implements a set of test primitives to test and assert test times from bodies of code. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Test-Timer-%{version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} # Remove author and release tests rm %{buildroot}%{_libexecdir}/%{name}/t/author* rm %{buildroot}%{_libexecdir}/%{name}/t/release* cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check unset AUTHOR_TESTING RELEASE_TESTING export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc CHANGELOG.md README %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.12-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 2.12-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.12-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.12-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.12-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 2.12-4 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jul 09 2021 Jitka Plesnikova - 2.12-1 - 2.12 bump - Package tests * Fri May 21 2021 Jitka Plesnikova - 2.11-7 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 2.11-4 - Perl 5.32 rebuild * Tue Mar 10 2020 Jitka Plesnikova - 2.11-3 - Add missing BR * Thu Jan 30 2020 Fedora Release Engineering - 2.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 09 2019 Jitka Plesnikova - 2.11-1 - 2.11 bump * Fri Jul 26 2019 Fedora Release Engineering - 2.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 2.10-2 - Perl 5.30 rebuild * Wed Feb 20 2019 Jitka Plesnikova - 2.10-1 - 2.10 bump * Sat Feb 02 2019 Fedora Release Engineering - 2.09-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.09-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 2.09-3 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 27 2017 Jitka Plesnikova - 2.09-1 - 2.09 bump * Tue Nov 21 2017 Jitka Plesnikova - 2.08-1 - 2.08 bump * Mon Nov 20 2017 Petr Pisar - 2.07-1 - 2.07 bump * Wed Nov 15 2017 Jitka Plesnikova - 2.06-1 - 2.06 bump * Mon Nov 13 2017 Jitka Plesnikova - 2.05-1 - 2.05 bump * Tue Oct 17 2017 Jitka Plesnikova - 2.04-1 - 2.04 bump * Thu Jul 27 2017 Fedora Release Engineering - 2.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 03 2017 Jitka Plesnikova - 2.03-1 - 2.03 bump * Tue Jun 13 2017 Jitka Plesnikova - 2.01-1 - 2.01 bump * Mon Jun 12 2017 Jitka Plesnikova - 2.00-1 - 2.00 bump * Mon Jun 05 2017 Jitka Plesnikova - 0.18-3 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jan 01 2017 Jitka Plesnikova - 0.18-1 - 0.18 bump * Mon Dec 12 2016 Jitka Plesnikova - 0.15-1 - 0.15 bump * Tue Aug 09 2016 Jitka Plesnikova - 0.13-1 - 0.13 bump * Wed Aug 03 2016 Jitka Plesnikova - 0.12-1 - Initial release