Name: perl-Test2-Plugin-DBIProfile %global cpan_version 0.002006 Version: 0.2.6 Release: 6%{?dist} Summary: Test2 plugin to enable and display DBI profiling License: GPL+ or Artistic URL: https://metacpan.org/release/Test2-Plugin-DBIProfile Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test2-Plugin-DBIProfile-%{cpan_version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.9 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(DBI::Profile) BuildRequires: perl(Test2::API) >= 1.302165 BuildRequires: perl(Test2::Util::Times) >= 0.000126 # Tests: BuildRequires: perl(Data::Dumper) BuildRequires: perl(DBD::SQLite) >= 1.44 BuildRequires: perl(DBI) # Test2::Tools::Basic version from Test2::V0 in META BuildRequires: perl(Test2::Tools::Basic) >= 0.000124 BuildRequires: perl(Test2::Tools::Compare) BuildRequires: perl(Test2::Tools::Defer) BuildRequires: perl(vars) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Test2::API) >= 1.302165 Requires: perl(Test2::Util::Times) >= 0.000126 # Removed from perl-Test2-Harness-0.001083 Conflicts: perl-Test2-Harness < 0.001083 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Test2::API|Test2::Util::Times|Test2::Tools::Basic)\\)$ %description This Test2 plugin enables DBI::Profile globally so that DBI profiling data is collected. Once testing is complete an event will be produced which contains and displays the profiling data. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(DBD::SQLite) >= 1.44 Requires: perl(Test2::API) >= 1.302165 Requires: perl(Test2::Plugin::DBIProfile) # Test2::Tools::Basic version from Test2::V0 in META Requires: perl(Test2::Tools::Basic) >= 0.000124 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Test2-Plugin-DBIProfile-%{cpan_version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$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} 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 make test %files %license LICENSE %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.2.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.2.6-5 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.2.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.2.6-2 - Perl 5.34 rebuild * Wed May 19 2021 Petr Pisar - 0.2.6-1 - 0.002006 bump - Package the tests * Wed Jan 27 2021 Fedora Release Engineering - 0.2.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.2.3-3 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Aug 30 2019 Petr Pisar - 0.2.3-1 - 0.002003 bump * Mon Aug 26 2019 Petr Pisar - 0.2.2-1 - 0.002002 bump * Mon Aug 19 2019 Petr Pisar 0.2.1-1 - Specfile autogenerated by cpanspec 1.78.