From 037bcc35e13611d55c021e9db232387601a506b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Tue, 11 Nov 2014 15:00:55 +0100 Subject: [PATCH] Initial import (#1162531) --- .gitignore | 1 + perl-MCE.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 perl-MCE.spec diff --git a/.gitignore b/.gitignore index e69de29..165444b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MCE-1.520.tar.gz diff --git a/perl-MCE.spec b/perl-MCE.spec new file mode 100644 index 0000000..89f303c --- /dev/null +++ b/perl-MCE.spec @@ -0,0 +1,68 @@ +Name: perl-MCE +Version: 1.520 +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 +BuildArch: noarch +# Build +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime +BuildRequires: perl(base) +BuildRequires: perl(bytes) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) +BuildRequires: perl(File::Path) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Socket) +BuildRequires: perl(Storable) >= 2.04 +BuildRequires: perl(Symbol) +BuildRequires: perl(Time::HiRes) +# Tests only +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(Carp) +Requires: perl(File::Path) +Requires: perl(IO::Handle) +Requires: perl(Storable) >= 2.04 + +%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(Storable\\)$ +%global __provides_exclude %{?__provides_exclude|%__provides_exclude|}^perl\\(MCE\\)$ + +%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. + +%prep +%setup -q -n MCE-%{version} +chmod -c a-x examples/*pl + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} + +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%doc CHANGES CREDITS LICENSE README examples +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Nov 11 2014 Petr Ĺ abata 1.520-1 +- Initial packaging diff --git a/sources b/sources index e69de29..e36f326 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +94617aa3b35d739f889d0e071e2d2867 MCE-1.520.tar.gz