2015-04-17 11:59:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-MCE
|
|
|
|
#
|
2025-01-09 16:31:04 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2015-04-17 11:59:46 +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.
|
|
|
|
|
2019-01-27 11:02:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-17 11:59:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-11-26 13:46:34 +00:00
|
|
|
%define cpan_name MCE
|
2015-04-17 11:59:46 +00:00
|
|
|
Name: perl-MCE
|
2025-01-09 16:31:04 +00:00
|
|
|
Version: 1.901.0
|
2015-04-17 11:59:46 +00:00
|
|
|
Release: 0
|
2025-01-09 16:31:04 +00:00
|
|
|
# 1.901 -> normalize -> 1.901.0
|
|
|
|
%define cpan_version 1.901
|
2018-04-04 10:12:22 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-02-24 14:46:44 +00:00
|
|
|
Summary: Many-Core Engine for Perl providing parallel processing capabilities
|
2020-05-13 07:46:02 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-09-27 08:21:38 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARIOROY/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-03-11 21:28:38 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:23 +02:00
|
|
|
Source100: README.md
|
2016-03-11 21:28:38 +00:00
|
|
|
BuildArch: noarch
|
2015-04-17 11:59:46 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2016-05-10 05:02:33 +00:00
|
|
|
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}
|
2025-01-09 16:31:04 +00:00
|
|
|
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}
|
2024-03-08 22:41:58 +00:00
|
|
|
%undefine __perllib_provides
|
2017-03-13 06:19:10 +00:00
|
|
|
Recommends: perl(Sereal::Decoder) >= 3.015
|
|
|
|
Recommends: perl(Sereal::Encoder) >= 3.015
|
2015-04-17 11:59:46 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-03-11 21:28:38 +00:00
|
|
|
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.
|
2015-04-17 11:59:46 +00:00
|
|
|
|
|
|
|
%prep
|
2023-09-27 08:21:38 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2015-04-17 11:59:46 +00:00
|
|
|
|
|
|
|
%build
|
2019-01-27 11:02:42 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-11-26 13:46:34 +00:00
|
|
|
%make_build
|
2015-04-17 11:59:46 +00:00
|
|
|
|
|
|
|
%check
|
2019-01-27 11:02:42 +00:00
|
|
|
make test
|
2015-04-17 11:59:46 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-02-15 18:52:03 +00:00
|
|
|
%doc Changes Credits README.md
|
|
|
|
%license Copying LICENSE
|
2015-04-17 11:59:46 +00:00
|
|
|
|
|
|
|
%changelog
|