- updated to 1.0.0
see /usr/share/doc/packages/perl-Time-Out/Changes 1.0.0 - update author extensions - improve dependencies setup in cpanfile - improve README - use version pragma and dotted decimal version - setup CI workflow that is based on the GitHub project PerlToolsTeam/github_workflows OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Out?expand=0&rev=7
This commit is contained in:
commit
5087e98ab4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
Time-Out-0.24.tar.gz
Normal file
3
Time-Out-0.24.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:28393baeb943236132595ba1b8793a7c6acddea44c553133447bb6e34cd265cd
|
||||
size 15965
|
3
Time-Out-1.0.0.tar.gz
Normal file
3
Time-Out-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:514993f5516c16499bb918f377a07a7988bc4c8771f916dafd3014a2f24a1a06
|
||||
size 16163
|
31
perl-Time-Out.changes
Normal file
31
perl-Time-Out.changes
Normal file
@ -0,0 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 17 05:37:01 UTC 2024 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.0.0
|
||||
see /usr/share/doc/packages/perl-Time-Out/Changes
|
||||
|
||||
1.0.0 Wed Oct 16 12:28:54 CEST 2024
|
||||
- update author extensions
|
||||
- improve dependencies setup in cpanfile
|
||||
- improve README
|
||||
- use version pragma and dotted decimal version
|
||||
- setup CI workflow that is based on the GitHub project
|
||||
PerlToolsTeam/github_workflows
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 8 23:06:42 UTC 2024 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Fix disabling of __perllib_provides
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 28 03:10:08 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.24
|
||||
see /usr/share/doc/packages/perl-Time-Out/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 18 10:53:18 UTC 2014 - coolo@suse.com
|
||||
|
||||
- initial package 0.11
|
||||
* created by cpanspec 1.78.07
|
||||
|
88
perl-Time-Out.spec
Normal file
88
perl-Time-Out.spec
Normal file
@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package perl-Time-Out
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name Time-Out
|
||||
Name: perl-Time-Out
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Easily timeout long running operations
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SV/SVW/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Carp) >= 1.32
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.09
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::Harness) >= 3.50
|
||||
BuildRequires: perl(Test::More) >= 1.001005
|
||||
BuildRequires: perl(Test::Needs)
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
BuildRequires: perl(version) >= 0.9915
|
||||
Requires: perl(Carp) >= 1.32
|
||||
Requires: perl(Try::Tiny)
|
||||
Requires: perl(version) >= 0.9915
|
||||
Recommends: perl(Time::HiRes) >= 1.9726
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
The 'Time::Out' module provides an easy interface to alarm(2) based
|
||||
timeouts. Nested timeouts are supported. The module exports the 'timeout()'
|
||||
function by default. The function returns whatever the code placed inside
|
||||
the subroutine reference returns:
|
||||
|
||||
use Time::Out qw( timeout );
|
||||
|
||||
my $result = timeout 5 => sub {
|
||||
return 7;
|
||||
};
|
||||
# $result == 7
|
||||
|
||||
If 'Time::Out' sees that Time::HiRes has been loaded, it will use that
|
||||
'alarm()' function (if available) instead of the default one, allowing
|
||||
float timeout values to be used effectively:
|
||||
|
||||
use Time::HiRes qw();
|
||||
use Time::Out qw( timeout );
|
||||
|
||||
timeout 3.1416 => sub {
|
||||
# ...
|
||||
};
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc Changes README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user