| 1 | %define real_name Thread-Pool |
|---|
| 2 | |
|---|
| 3 | Summary: Group of threads for performing similar jobs |
|---|
| 4 | Name: perl-Thread-Pool |
|---|
| 5 | Version: 0.33 |
|---|
| 6 | Release: 2%{?_dist_release} |
|---|
| 7 | License: Artistic |
|---|
| 8 | Group: Development/Libraries |
|---|
| 9 | URL: http://search.cpan.org/dist/Thread-Pool/ |
|---|
| 10 | |
|---|
| 11 | Source: http://www.cpan.org/modules/by-module/Thread/Thread-Pool-%{version}.tar.gz |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 13 | |
|---|
| 14 | BuildArch: noarch |
|---|
| 15 | BuildRequires: perl |
|---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker) |
|---|
| 17 | BuildRequires: perl(load) |
|---|
| 18 | BuildRequires: perl(Thread::Conveyor) >= 0.15 |
|---|
| 19 | BuildRequires: perl(Thread::Conveyor::Monitored) >= 0.11 |
|---|
| 20 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
|---|
| 21 | |
|---|
| 22 | Vendor: Project Vine |
|---|
| 23 | Distribution: Vine Linux |
|---|
| 24 | |
|---|
| 25 | %description |
|---|
| 26 | The Thread::Pool allows you to set up a group of (worker) threads to |
|---|
| 27 | execute a (large) number of similar jobs that need to be executed |
|---|
| 28 | asynchronously. The routine that actually performs the job (the "do" |
|---|
| 29 | routine), must be specified as a name or a reference to a (anonymous) |
|---|
| 30 | subroutine. |
|---|
| 31 | |
|---|
| 32 | This module only functions on Perl versions 5.8.0 and later. |
|---|
| 33 | And then only when threads are enabled with -Dusethreads. It |
|---|
| 34 | is of no use with any version of Perl before 5.8.0 or without |
|---|
| 35 | threads enabled. |
|---|
| 36 | %prep |
|---|
| 37 | %setup -q -n %{real_name}-%{version} |
|---|
| 38 | |
|---|
| 39 | %build |
|---|
| 40 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
|---|
| 41 | make %{?_smp_mflags} |
|---|
| 42 | |
|---|
| 43 | %install |
|---|
| 44 | rm -rf %{buildroot} |
|---|
| 45 | make pure_install DESTDIR=%{buildroot} |
|---|
| 46 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
|---|
| 47 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
|---|
| 48 | %{_fixperms} %{buildroot} |
|---|
| 49 | |
|---|
| 50 | %check |
|---|
| 51 | make test |
|---|
| 52 | |
|---|
| 53 | %clean |
|---|
| 54 | %{__rm} -rf %{buildroot} |
|---|
| 55 | |
|---|
| 56 | %files |
|---|
| 57 | %defattr(-, root, root, 0755) |
|---|
| 58 | %doc MANIFEST README CHANGELOG TODO |
|---|
| 59 | %{perl_vendorlib}/* |
|---|
| 60 | %{_mandir}/man3/* |
|---|
| 61 | |
|---|
| 62 | %changelog |
|---|
| 63 | * Mon Dec 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.33-2 |
|---|
| 64 | - rebuilt with perl 5.16.3 |
|---|
| 65 | |
|---|
| 66 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.33-1 |
|---|
| 67 | - initial build for Vine Linux |
|---|