1
0
forked from perl/perl-MCE
Files
perl-MCE/perl-MCE.spec

101 lines
3.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-MCE
#
# Copyright (c) 2025 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 MCE
Name: perl-MCE
Version: 1.901.0
Release: 0
# 1.901 -> normalize -> 1.901.0
%define cpan_version 1.901
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Many-Core Engine for Perl providing parallel processing capabilities
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARIOROY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:15:23 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.88
Accepting request 1182897 from devel:languages:perl:autoupdate - updated to 1.897.0 (1.897) see /usr/share/doc/packages/perl-MCE/Changes 1.897 * In scalar context, the init function in MCE Child and models Flow, Grep, Loop, Map, Step, and Stream returns a guard to call finish automatically upon leaving the { scope i.e. omitting finish }. * Add out_iter_callback to MCE::Candy. 1.896 * Weaken internal core MCE reference to reap workers automatically upon leaving the { scope i.e. omitting shutdown }. Note: No change to MCE models Flow, Grep, Loop, Map, Step, and Stream. Call finish explicitly to reap workers. This resolves the case when omitting calling either one of $mce->run(), $mce->run(1), or $mce->shutdown() inside a scope, causing workers to linger around until completion of the script. 1.895 * Revert back to calling CORE::rand() to set the internal seed. MCE and MCE::Child cannot assume the srand or setter function used by the application for predictability. 1. https://perlmonks.org/?node_id=11159834 2. https://perlmonks.org/?node_id=11159827 * Add class methods MCE->seed and MCE::Child->seed to retrieve the seed. 1.894 * Improve support for PDL. 1.893 * Preserve functionality for older Perl, non-threads. 1.892 * Remove check if spinning threads i.e. use_threads. Predictable output matches non-threads for CORE, Math::Prime::Util, and Math::Random::MT::Auto. https://perlmonks.org/?node_id=11159834 1.891 * Apply workaround for PDL::srand in MCE and MCE::Child. Thank you, PerlMonks. https://www.perlmonks.org/?node_id=11159773 * Add PDL::srand (v2.062 ~ v2.089) and PDL::srandom (v2.089_01+). * Call CORE::srand inside child processes, only. 1.890 * Improve reaping completed workers in MCE::Child. * Fix the _sprintf function, failing multiple arguments. OBS-URL: https://build.opensuse.org/request/show/1182897 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MCE?expand=0&rev=100
2024-06-27 18:10:52 +00:00
Provides: perl(MCE) = %{version}
Provides: perl(MCE::Candy) = %{version}
Provides: perl(MCE::Channel) = %{version}
Provides: perl(MCE::Channel::Mutex) = %{version}
Provides: perl(MCE::Channel::MutexFast) = %{version}
Provides: perl(MCE::Channel::Simple) = %{version}
Provides: perl(MCE::Channel::SimpleFast) = %{version}
Provides: perl(MCE::Channel::Threads) = %{version}
Provides: perl(MCE::Channel::ThreadsFast) = %{version}
Provides: perl(MCE::Child) = %{version}
Provides: perl(MCE::Core) = %{version}
Accepting request 1182897 from devel:languages:perl:autoupdate - updated to 1.897.0 (1.897) see /usr/share/doc/packages/perl-MCE/Changes 1.897 * In scalar context, the init function in MCE Child and models Flow, Grep, Loop, Map, Step, and Stream returns a guard to call finish automatically upon leaving the { scope i.e. omitting finish }. * Add out_iter_callback to MCE::Candy. 1.896 * Weaken internal core MCE reference to reap workers automatically upon leaving the { scope i.e. omitting shutdown }. Note: No change to MCE models Flow, Grep, Loop, Map, Step, and Stream. Call finish explicitly to reap workers. This resolves the case when omitting calling either one of $mce->run(), $mce->run(1), or $mce->shutdown() inside a scope, causing workers to linger around until completion of the script. 1.895 * Revert back to calling CORE::rand() to set the internal seed. MCE and MCE::Child cannot assume the srand or setter function used by the application for predictability. 1. https://perlmonks.org/?node_id=11159834 2. https://perlmonks.org/?node_id=11159827 * Add class methods MCE->seed and MCE::Child->seed to retrieve the seed. 1.894 * Improve support for PDL. 1.893 * Preserve functionality for older Perl, non-threads. 1.892 * Remove check if spinning threads i.e. use_threads. Predictable output matches non-threads for CORE, Math::Prime::Util, and Math::Random::MT::Auto. https://perlmonks.org/?node_id=11159834 1.891 * Apply workaround for PDL::srand in MCE and MCE::Child. Thank you, PerlMonks. https://www.perlmonks.org/?node_id=11159773 * Add PDL::srand (v2.062 ~ v2.089) and PDL::srandom (v2.089_01+). * Call CORE::srand inside child processes, only. 1.890 * Improve reaping completed workers in MCE::Child. * Fix the _sprintf function, failing multiple arguments. OBS-URL: https://build.opensuse.org/request/show/1182897 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MCE?expand=0&rev=100
2024-06-27 18:10:52 +00:00
Provides: perl(MCE::Core::Input::Generator) = %{version}
Provides: perl(MCE::Core::Input::Handle) = %{version}
Provides: perl(MCE::Core::Input::Iterator) = %{version}
Provides: perl(MCE::Core::Input::Request) = %{version}
Provides: perl(MCE::Core::Input::Sequence) = %{version}
Provides: perl(MCE::Core::Manager) = %{version}
Provides: perl(MCE::Core::Validation) = %{version}
Provides: perl(MCE::Core::Worker) = %{version}
Provides: perl(MCE::Flow) = %{version}
Provides: perl(MCE::Grep) = %{version}
Provides: perl(MCE::Loop) = %{version}
Provides: perl(MCE::Map) = %{version}
Provides: perl(MCE::Mutex) = %{version}
Provides: perl(MCE::Mutex::Channel) = %{version}
Provides: perl(MCE::Mutex::Channel2) = %{version}
Provides: perl(MCE::Mutex::Flock) = %{version}
Provides: perl(MCE::Queue) = %{version}
Provides: perl(MCE::Relay) = %{version}
Provides: perl(MCE::Signal) = %{version}
Provides: perl(MCE::Step) = %{version}
Provides: perl(MCE::Stream) = %{version}
Provides: perl(MCE::Subs) = %{version}
Provides: perl(MCE::Util) = %{version}
%undefine __perllib_provides
Recommends: perl(Sereal::Decoder) >= 3.015
Recommends: perl(Sereal::Encoder) >= 3.015
%{perl_requires}
%description
MCE spawns a pool of workers and therefore does not fork a new process per
each element of data. Instead, MCE follows a bank queuing model. Imagine
the line being the data and bank-tellers the parallel workers. MCE enhances
that model by adding the ability to chunk the next n elements from the
input stream to the next available worker.
%prep
%autosetup -n %{cpan_name}-%{cpan_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 Credits README.md
%license Copying LICENSE
%changelog