Files
perl-Test-Timer/perl-Test-Timer.spec

78 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Test-Timer
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 640423 from devel:languages:perl:autoupdate - Fix autogenerated changes - updated to 2.09 see /usr/share/doc/packages/perl-Test-Timer/Changes 2.09 2017-11-24 Maintenance release, update not required - Attempting to address issues with tests on Windows REF: http://www.cpantesters.org/distro/T/Test-Timer.html?grade=3&perlmat=2&patches=2&oncpan=2&distmat=2&perlver=ALL&osname=ALL&version=2.08 - Reinstated sleep over select in the test suite - Changed some test parameters was made a bit less relaxed attempting to decrease the execution time for the test suite - Removed loose match in regular, it should be possible to anticipate the timeout - Removed redundant tests, trying to cut down execution time for the test suite 2.08 2017-11-20 Maintenance release, update not required - Addressing reports on failing tests from CPAN testers 2.07 2017-11-18 Maintenance release, update not required - Addressing issue #17, the tests are now more liberal, so when executed on smokers, CI environments and similar, load will not influence the test results. The requirement for Test::Tester has been updated and a patch required by this distribution has been included 2.06 2017-11-14 Maintenance release, update not required - Added cancellation of alarm, based on advice from Erik Johansen - Implemented own sleep, based on select, this might address possible issues with sleep implementations 2.05 2017-11-12 Maintenance release, update not required - Addressed issue #11 adding experimental graphical support elements to the documentation 2.04 2017-10-15 Maintenance release, update not required - Minor improvements to Test::Timer::TimeoutException, some obsoleted code could be removed - Generalizing test asserting, since CPAN testers are sometime contrained on resources, making it impossible to predict the actual timeout value Example: http://www.cpantesters.org/cpan/report/2561e32c-9efa-11e7-bc90-bbe42ddde1fb - Correction of spelling mistage in PR #16 from Gregor Herrmann OBS-URL: https://build.opensuse.org/request/show/640423 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Timer?expand=0&rev=11
2018-10-07 15:25:45 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Test-Timer
Name: perl-Test-Timer
Version: 2.120.0
Release: 0
# 2.12 -> normalize -> 2.120.0
%define cpan_version 2.12
License: Artistic-2.0
Summary: Test module to test/assert response times
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JO/JONASBN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:17:56 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Error)
BuildRequires: perl(Module::Build) >= 0.30
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Kwalitee) >= 1.21
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
Accepting request 640423 from devel:languages:perl:autoupdate - Fix autogenerated changes - updated to 2.09 see /usr/share/doc/packages/perl-Test-Timer/Changes 2.09 2017-11-24 Maintenance release, update not required - Attempting to address issues with tests on Windows REF: http://www.cpantesters.org/distro/T/Test-Timer.html?grade=3&perlmat=2&patches=2&oncpan=2&distmat=2&perlver=ALL&osname=ALL&version=2.08 - Reinstated sleep over select in the test suite - Changed some test parameters was made a bit less relaxed attempting to decrease the execution time for the test suite - Removed loose match in regular, it should be possible to anticipate the timeout - Removed redundant tests, trying to cut down execution time for the test suite 2.08 2017-11-20 Maintenance release, update not required - Addressing reports on failing tests from CPAN testers 2.07 2017-11-18 Maintenance release, update not required - Addressing issue #17, the tests are now more liberal, so when executed on smokers, CI environments and similar, load will not influence the test results. The requirement for Test::Tester has been updated and a patch required by this distribution has been included 2.06 2017-11-14 Maintenance release, update not required - Added cancellation of alarm, based on advice from Erik Johansen - Implemented own sleep, based on select, this might address possible issues with sleep implementations 2.05 2017-11-12 Maintenance release, update not required - Addressed issue #11 adding experimental graphical support elements to the documentation 2.04 2017-10-15 Maintenance release, update not required - Minor improvements to Test::Timer::TimeoutException, some obsoleted code could be removed - Generalizing test asserting, since CPAN testers are sometime contrained on resources, making it impossible to predict the actual timeout value Example: http://www.cpantesters.org/cpan/report/2561e32c-9efa-11e7-bc90-bbe42ddde1fb - Correction of spelling mistage in PR #16 from Gregor Herrmann OBS-URL: https://build.opensuse.org/request/show/640423 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Timer?expand=0&rev=11
2018-10-07 15:25:45 +00:00
BuildRequires: perl(Test::Tester) >= 1.302111
Requires: perl(Error)
Provides: perl(Test::Timer) = %{version}
Provides: perl(Test::Timer::TimeoutException) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Test::Timer implements a set of test primitives to test and assert test
times from bodies of code.
The key features are subroutines to assert or test the following:
* * that a given piece of code does not exceed a specified time limit
* * that a given piece of code takes longer than a specified time limit and
does not exceed another
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGELOG.md cpanfile.snapshot dictionary.dic docs perl-test-timer.code-workspace README
%license LICENSE
%changelog