-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperl-MCE.spec
66 lines (58 loc) · 1.99 KB
/
perl-MCE.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Name: perl-MCE
Version: 1.699
Release: 1%{?dist}
Summary: Many-Core Engine for Perl providing parallel processing capabilities
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/MCE/
Source0: http://www.cpan.org/authors/id/M/MA/MARIOROY/MCE-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Build
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.45
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(bytes)
Requires: perl(constant)
Requires: perl(Carp)
Requires: perl(Fcntl)
Requires: perl(File::Path)
Requires: perl(IO::Handle)
Requires: perl(Scalar::Util)
Requires: perl(Socket)
Requires: perl(Storable) >= 2.04
Requires: perl(Symbol)
Requires: perl(Time::HiRes)
Autoreq: no
%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
MCE_INSTALL_TOOLS=1 %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGES CREDITS LICENSE README examples
%{perl_vendorlib}/*
%{_bindir}/mce_grep
%{_mandir}/man3/*
%changelog
* Sun Mar 29 2015 Mario Roy 1.699-1
- 1.699 Release.