From 5087e98ab43bd3aea3900246a8683ddbec0c389eb713d968f801ec7f965e18bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 9 Jan 2025 16:22:46 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + Time-Out-0.24.tar.gz | 3 ++ Time-Out-1.0.0.tar.gz | 3 ++ perl-Time-Out.changes | 31 +++++++++++++++ perl-Time-Out.spec | 88 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Time-Out-0.24.tar.gz create mode 100644 Time-Out-1.0.0.tar.gz create mode 100644 perl-Time-Out.changes create mode 100644 perl-Time-Out.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Time-Out-0.24.tar.gz b/Time-Out-0.24.tar.gz new file mode 100644 index 0000000..3ca010a --- /dev/null +++ b/Time-Out-0.24.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28393baeb943236132595ba1b8793a7c6acddea44c553133447bb6e34cd265cd +size 15965 diff --git a/Time-Out-1.0.0.tar.gz b/Time-Out-1.0.0.tar.gz new file mode 100644 index 0000000..7b33c98 --- /dev/null +++ b/Time-Out-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:514993f5516c16499bb918f377a07a7988bc4c8771f916dafd3014a2f24a1a06 +size 16163 diff --git a/perl-Time-Out.changes b/perl-Time-Out.changes new file mode 100644 index 0000000..a29ff64 --- /dev/null +++ b/perl-Time-Out.changes @@ -0,0 +1,31 @@ +------------------------------------------------------------------- +Thu Oct 17 05:37:01 UTC 2024 - Tina Müller + +- 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 + +- Fix disabling of __perllib_provides + +------------------------------------------------------------------- +Tue Nov 28 03:10:08 UTC 2023 - Tina Müller + +- 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 + diff --git a/perl-Time-Out.spec b/perl-Time-Out.spec new file mode 100644 index 0000000..266b507 --- /dev/null +++ b/perl-Time-Out.spec @@ -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