|
|
|
Name: perl-MCE
|
|
|
|
Version: 1.705
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Many-core Engine for Perl providing parallel processing capabilities
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/MCE/
|
|
|
|
Source0: http://www.cpan.org/authors/id/M/MA/MARIOROY/MCE-%{version}.tar.gz
|
|
|
|
Patch0: MCE-1.600-Fix-sharp-bang-line.patch
|
|
|
|
Patch1: MCE-1.700-provides.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
# Module Build
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Module Runtime
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Socket)
|
|
|
|
BuildRequires: perl(Storable) >= 2.04
|
|
|
|
BuildRequires: perl(Symbol)
|
|
|
|
BuildRequires: perl(threads::shared)
|
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
# Script Runtime
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
# Test Suite
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
# Dependencies
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
Requires: perl(IO::Handle)
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
Requires: perl(threads::shared)
|
|
|
|
|
|
|
|
# NCE would like to use Sereal if available
|
|
|
|
%if 0%{?fedora} > 23 || 0%{?rhel} > 6
|
|
|
|
BuildRequires: perl(Sereal)
|
|
|
|
Requires: perl(Sereal)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Many-core Engine (MCE) for Perl helps enable a new level of performance by
|
|
|
|
maximizing all available cores. 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.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Many-core Engine command line tools
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: grep
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package delivers command line tools like mce_grep(1) that utilize
|
|
|
|
the Many-core Engine (MCE) Perl library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n MCE-%{version}
|
|
|
|
|
|
|
|
# Fix sharp-bang line
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
# Avoid unversioned provide of perl(MCE)
|
|
|
|
%patch1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
MCE_INSTALL_TOOLS=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%if 0%{?_licensedir:1}
|
|
|
|
%license LICENSE Copying
|
|
|
|
%else
|
|
|
|
%doc LICENSE Copying
|
|
|
|
%endif
|
|
|
|
%doc Changes Credits README.md
|
|
|
|
%doc %{perl_vendorlib}/MCE.pod
|
|
|
|
%doc %{perl_vendorlib}/MCE/Core.pod
|
|
|
|
%doc %{perl_vendorlib}/MCE/Examples.pod
|
|
|
|
%dir %{perl_vendorlib}/MCE/
|
|
|
|
%dir %{perl_vendorlib}/MCE/Core/
|
|
|
|
%{perl_vendorlib}/MCE.pm
|
|
|
|
%{perl_vendorlib}/MCE/Candy.pm
|
|
|
|
%{perl_vendorlib}/MCE/Core/Input/
|
|
|
|
%{perl_vendorlib}/MCE/Core/Manager.pm
|
|
|
|
%{perl_vendorlib}/MCE/Core/Validation.pm
|
|
|
|
%{perl_vendorlib}/MCE/Core/Worker.pm
|
|
|
|
%{perl_vendorlib}/MCE/Flow.pm
|
|
|
|
%{perl_vendorlib}/MCE/Grep.pm
|
|
|
|
%{perl_vendorlib}/MCE/Loop.pm
|
|
|
|
%{perl_vendorlib}/MCE/Map.pm
|
|
|
|
%{perl_vendorlib}/MCE/Mutex.pm
|
|
|
|
%{perl_vendorlib}/MCE/Queue.pm
|
|
|
|
%{perl_vendorlib}/MCE/Relay.pm
|
|
|
|
%{perl_vendorlib}/MCE/Signal.pm
|
|
|
|
%{perl_vendorlib}/MCE/Step.pm
|
|
|
|
%{perl_vendorlib}/MCE/Stream.pm
|
|
|
|
%{perl_vendorlib}/MCE/Subs.pm
|
|
|
|
%{perl_vendorlib}/MCE/Util.pm
|
|
|
|
%{_mandir}/man3/MCE.3*
|
|
|
|
%{_mandir}/man3/MCE::Candy.3*
|
|
|
|
%{_mandir}/man3/MCE::Core.3*
|
|
|
|
%{_mandir}/man3/MCE::Examples.3*
|
|
|
|
%{_mandir}/man3/MCE::Flow.3*
|
|
|
|
%{_mandir}/man3/MCE::Grep.3*
|
|
|
|
%{_mandir}/man3/MCE::Loop.3*
|
|
|
|
%{_mandir}/man3/MCE::Map.3*
|
|
|
|
%{_mandir}/man3/MCE::Mutex.3*
|
|
|
|
%{_mandir}/man3/MCE::Queue.3*
|
|
|
|
%{_mandir}/man3/MCE::Relay.3*
|
|
|
|
%{_mandir}/man3/MCE::Signal.3*
|
|
|
|
%{_mandir}/man3/MCE::Step.3*
|
|
|
|
%{_mandir}/man3/MCE::Stream.3*
|
|
|
|
%{_mandir}/man3/MCE::Subs.3*
|
|
|
|
%{_mandir}/man3/MCE::Util.3*
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/mce_grep
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri Apr 15 2016 Paul Howarth <paul@city-fan.org> - 1.705-1
|
|
|
|
- Update to 1.705
|
|
|
|
- Bumped version for Test::More to 0.88
|
|
|
|
- BR:/R: perl(Sereal) where available
|
|
|
|
|
|
|
|
* Thu Apr 14 2016 Paul Howarth <paul@city-fan.org> - 1.704-1
|
|
|
|
- Update to 1.704
|
|
|
|
BUG FIXES
|
|
|
|
- Fixed restart on the Windows platform, bug introduced in 1.700
|
|
|
|
- Reached *stable* on all major platforms for MCE 1.7x
|
|
|
|
ENHANCEMENTS
|
|
|
|
- Enabled auto-destroy for MCE objects
|
|
|
|
- Enabled freeze callbacks for Sereal
|
|
|
|
- Switched bug tracking to Github
|
|
|
|
- Tweaked test scripts
|
|
|
|
|
|
|
|
* Sun Mar 20 2016 Paul Howarth <paul@city-fan.org> - 1.703-1
|
|
|
|
- Update to 1.703
|
|
|
|
- Completed IPC optimizations for 1.7
|
|
|
|
|
|
|
|
* Wed Mar 16 2016 Paul Howarth <paul@city-fan.org> - 1.702-1
|
|
|
|
- Update to 1.702
|
|
|
|
- Use a patch to fix unversioned provides of perl(MCE)
|
|
|
|
- Get rid of redundant provides/requires filters
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.608-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.608-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.608-2
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
|
|
|
* Fri Apr 10 2015 Petr Šabata <contyk@redhat.com> - 1.608-1
|
|
|
|
- 1.608 bump
|
|
|
|
|
|
|
|
* Thu Apr 09 2015 Petr Šabata <contyk@redhat.com> - 1.606-1
|
|
|
|
- 1.606 bump
|
|
|
|
|
|
|
|
* Wed Apr 08 2015 Petr Šabata <contyk@redhat.com> - 1.605-1
|
|
|
|
- 1.605 bump
|
|
|
|
|
|
|
|
* Mon Mar 23 2015 Petr Šabata <contyk@redhat.com> - 1.604-1
|
|
|
|
- 1.604 bump
|
|
|
|
|
|
|
|
* Wed Feb 11 2015 Petr Pisar <ppisar@redhat.com> - 1.600-3
|
|
|
|
- Move mce_grep tool into a separate sub-package
|
|
|
|
|
|
|
|
* Tue Feb 10 2015 Petr Pisar <ppisar@redhat.com> - 1.600-2
|
|
|
|
- Correct dependencies
|
|
|
|
|
|
|
|
* Wed Feb 04 2015 Petr Šabata <contyk@redhat.com> - 1.600-1
|
|
|
|
- 1.600 bump
|
|
|
|
|
|
|
|
* Mon Jan 05 2015 Petr Šabata <contyk@redhat.com> - 1.522-1
|
|
|
|
- 1.522 bump
|
|
|
|
|
|
|
|
* Wed Dec 17 2014 Petr Šabata <contyk@redhat.com> - 1.521-1
|
|
|
|
- 1.521 bump
|
|
|
|
|
|
|
|
* Tue Nov 11 2014 Petr Šabata <contyk@redhat.com> 1.520-1
|
|
|
|
- Initial packaging
|