From f4a2bf3278a21c123d10d784304c6f8735aecb05 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 29 2022 16:51:43 +0000 Subject: import perl-Thread-Queue-3.14-457.module+el8.6.0+13324+628a2397 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59c6056 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Thread-Queue-3.13.tar.gz diff --git a/.perl-Thread-Queue.metadata b/.perl-Thread-Queue.metadata new file mode 100644 index 0000000..57dcd9a --- /dev/null +++ b/.perl-Thread-Queue.metadata @@ -0,0 +1 @@ +2e9b531dea4fe7dd0936793f22505feb228241c2 SOURCES/Thread-Queue-3.13.tar.gz diff --git a/SOURCES/Thread-Queue-3.13-Upgrade-to-3.14.patch b/SOURCES/Thread-Queue-3.13-Upgrade-to-3.14.patch new file mode 100644 index 0000000..26298bf --- /dev/null +++ b/SOURCES/Thread-Queue-3.13-Upgrade-to-3.14.patch @@ -0,0 +1,43 @@ +From 76f1ac50f4affebf08c1ba71ee1dc31cd2a6a950 Mon Sep 17 00:00:00 2001 +From: Jitka Plesnikova +Date: Mon, 1 Jun 2020 13:48:33 +0200 +Subject: [PATCH] Upgrade to 3.14 + +--- + lib/Thread/Queue.pm | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/lib/Thread/Queue.pm b/lib/Thread/Queue.pm +index bcdf11d..731d0b2 100644 +--- a/lib/Thread/Queue.pm ++++ b/lib/Thread/Queue.pm +@@ -3,7 +3,7 @@ package Thread::Queue; + use strict; + use warnings; + +-our $VERSION = '3.13'; ++our $VERSION = '3.14'; # remember to update version in POD! + $VERSION = eval $VERSION; + + use threads::shared 1.21; +@@ -318,7 +318,7 @@ Thread::Queue - Thread-safe queues + + =head1 VERSION + +-This document describes Thread::Queue version 3.13 ++This document describes Thread::Queue version 3.14 + + =head1 SYNOPSIS + +@@ -547,7 +547,7 @@ VARIABLE"> the queue inside a local block: + =item ->peek(INDEX) + + Returns an item from the queue without dequeuing anything. Defaults to the +-the head of queue (at index position 0) if no index is specified. Negative ++head of queue (at index position 0) if no index is specified. Negative + index values are supported as with L (i.e., -1 + is the end of the queue, -2 is next to last, and so on). + +-- +2.25.4 + diff --git a/SPECS/perl-Thread-Queue.spec b/SPECS/perl-Thread-Queue.spec new file mode 100644 index 0000000..b87235b --- /dev/null +++ b/SPECS/perl-Thread-Queue.spec @@ -0,0 +1,161 @@ +%global base_version 3.13 +Name: perl-Thread-Queue +Version: 3.14 +Release: 457%{?dist} +Summary: Thread-safe queues +License: GPL+ or Artistic +URL: https://metacpan.org/release/Thread-Queue +Source0: https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/Thread-Queue-%{base_version}.tar.gz +# Unbundled from perl 5.32.0 +Patch0: Thread-Queue-3.13-Upgrade-to-3.14.patch +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Scalar::Util) >= 1.10 +BuildRequires: perl(threads::shared) >= 1.21 +# Tests: +BuildRequires: perl(Exporter) +BuildRequires: perl(Test::More) >= 0.50 +BuildRequires: perl(Thread::Semaphore) +BuildRequires: perl(threads) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) + +%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}%{_datadir}/doc/ + +%description +This module provides thread-safe FIFO queues that can be accessed safely by +any number of threads. + +%prep +%setup -q -n Thread-Queue-%{base_version} +%patch0 -p1 +# Correct shell bang +sed -i -e '1 s|^#!/usr/bin/env perl|%(perl -MConfig -e 'print $Config{startperl}')|' examples/queue.pl + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes examples README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 3.14-457 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 3.14-456 +- Upgrade to 3.14 as provided in perl-5.32.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.13-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 3.13-439 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 3.13-438 +- Increase release to favour standalone package + +* Sat Feb 02 2019 Fedora Release Engineering - 3.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jul 18 2018 Petr Pisar - 3.13-1 +- 3.13 bump + +* Fri Jul 13 2018 Fedora Release Engineering - 3.12-417 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 3.12-416 +- Increase release to favour standalone package + +* Fri Feb 09 2018 Fedora Release Engineering - 3.12-395 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.12-394 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jun 03 2017 Jitka Plesnikova - 3.12-393 +- Perl 5.26 rebuild + +* Fri Feb 17 2017 Petr Pisar - 3.12-1 +- 3.12 bump + +* Sat Feb 11 2017 Fedora Release Engineering - 3.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon May 23 2016 Petr Pisar - 3.11-1 +- 3.11 bump + +* Sat May 14 2016 Jitka Plesnikova - 3.09-365 +- Increase release to favour standalone package + +* Mon May 02 2016 Petr Pisar - 3.09-1 +- 3.09 bump + +* Thu Feb 04 2016 Fedora Release Engineering - 3.07-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Oct 26 2015 Petr Pisar - 3.07-1 +- 3.07 bump + +* Wed Aug 26 2015 Petr Pisar - 3.06-1 +- 3.06 bump + +* Thu Jun 18 2015 Fedora Release Engineering - 3.05-346 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Jitka Plesnikova - 3.05-345 +- Increase release to favour standalone package + +* Wed Jun 03 2015 Jitka Plesnikova - 3.05-311 +- Perl 5.22 rebuild + +* Wed Sep 03 2014 Jitka Plesnikova - 3.05-310 +- Increase release to favour standalone package + +* Tue Aug 26 2014 Jitka Plesnikova - 3.05-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 3.05-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Mar 24 2014 Petr Pisar - 3.05-1 +- 3.05 bump + +* Fri Mar 14 2014 Petr Pisar - 3.04-1 +- 3.04 bump + +* Fri Mar 07 2014 Petr Pisar - 3.03-1 +- 3.03 bump + +* Sun Aug 04 2013 Fedora Release Engineering - 3.02-291 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 15 2013 Petr Pisar - 3.02-290 +- Increase release to favour standalone package + +* Fri Jul 12 2013 Petr Pisar - 3.02-2 +- Link minimal build-root packages against libperl.so explicitly + +* Fri Mar 01 2013 Petr Pisar - 3.02-1 +- 3.02 bump + +* Thu Feb 14 2013 Petr Pisar 3.01-1 +- Specfile autogenerated by cpanspec 1.78.