2016-10-08 13:42:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Test-Timer
|
|
|
|
#
|
2024-08-03 17:32:28 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-10-08 13:42:36 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2016-10-08 13:42:36 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-07-19 06:59:46 +00:00
|
|
|
%define cpan_name Test-Timer
|
2016-10-08 13:42:36 +00:00
|
|
|
Name: perl-Test-Timer
|
2024-08-03 17:32:28 +00:00
|
|
|
Version: 2.120.0
|
2016-10-08 13:42:36 +00:00
|
|
|
Release: 0
|
2024-08-03 17:32:28 +00:00
|
|
|
# 2.12 -> normalize -> 2.120.0
|
|
|
|
%define cpan_version 2.12
|
2016-10-08 13:42:36 +00:00
|
|
|
License: Artistic-2.0
|
2024-08-03 17:32:28 +00:00
|
|
|
Summary: Test module to test/assert response times
|
2021-07-19 06:59:46 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-08-03 17:32:28 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JO/JONASBN/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-10-08 18:14:49 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:56 +02:00
|
|
|
Source100: README.md
|
2016-10-08 13:42:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Error)
|
2024-08-03 17:32:28 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.30
|
2017-06-09 07:21:43 +00:00
|
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
2017-01-10 17:28:01 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2017-06-09 07:21:43 +00:00
|
|
|
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
|
2016-10-08 13:42:36 +00:00
|
|
|
Requires: perl(Error)
|
2024-08-03 17:32:28 +00:00
|
|
|
Provides: perl(Test::Timer) = %{version}
|
|
|
|
Provides: perl(Test::Timer::TimeoutException) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2016-10-08 13:42:36 +00:00
|
|
|
%{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:
|
2019-03-01 07:32:53 +00:00
|
|
|
|
|
|
|
* * 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
|
2016-10-08 13:42:36 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-03 17:32:28 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2016-10-08 13:42:36 +00:00
|
|
|
|
|
|
|
%build
|
2024-08-03 17:32:28 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2016-10-08 13:42:36 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2024-08-03 17:32:28 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2016-10-08 13:42:36 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-07-19 06:59:46 +00:00
|
|
|
%doc CHANGELOG.md cpanfile.snapshot dictionary.dic docs perl-test-timer.code-workspace README
|
2017-06-09 07:21:43 +00:00
|
|
|
%license LICENSE
|
2016-10-08 13:42:36 +00:00
|
|
|
|
|
|
|
%changelog
|