[5875] | 1 | %define real_name Thread-Conveyor |
---|
| 2 | |
---|
| 3 | Summary: Transport of any data-structure between threads |
---|
| 4 | Name: perl-Thread-Conveyor |
---|
| 5 | Version: 0.19 |
---|
[9128] | 6 | Release: 2%{?_dist_release} |
---|
[5875] | 7 | License: Artistic or GPL+ |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | URL: http://search.cpan.org/dist/Thread-Conveyor/ |
---|
| 10 | Source: http://www.cpan.org/modules/by-module/Thread/Thread-Conveyor-%{version}.tar.gz |
---|
| 11 | BuildArch: noarch |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 13 | |
---|
| 14 | BuildRequires: perl |
---|
| 15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 16 | BuildRequires: perl(load) |
---|
| 17 | BuildRequires: perl(Thread::Tie) >= 0.09 |
---|
| 18 | BuildRequires: perl(Thread::Serialize) |
---|
| 19 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | The Thread::Conveyor object is a thread-safe data structure that |
---|
| 26 | mimics the behaviour of a conveyor belt. One or more worker threads |
---|
| 27 | can put boxes with frozen values and references on one end of the belt |
---|
| 28 | to be taken off by one or more worker threads on the other end of the |
---|
| 29 | belt to be thawed and returned. |
---|
| 30 | |
---|
| 31 | A box may consist of any combination of scalars and references to |
---|
| 32 | scalars, arrays (lists) and hashes. Freezing and thawing is currently |
---|
| 33 | done with the Thread::Serialize module, but that may change in the |
---|
| 34 | future. Objects and code references are currently not allowed. |
---|
| 35 | |
---|
| 36 | By default, the maximum number of boxes on the belt is limited to 50. |
---|
| 37 | Putting of boxes on the belt is halted if the maximum number of boxes |
---|
| 38 | is exceeded. This throttling feature was added because it was found |
---|
| 39 | that excessive memory usage could be caused by having the belt growing |
---|
| 40 | too large. Throttling can be disabled if so desired. |
---|
| 41 | |
---|
| 42 | This module only functions on Perl versions 5.8.0 and later. |
---|
| 43 | And then only when threads are enabled with -Dusethreads. It |
---|
| 44 | is of no use with any version of Perl before 5.8.0 or without |
---|
| 45 | threads enabled. |
---|
| 46 | %prep |
---|
| 47 | %setup -q -n %{real_name}-%{version} |
---|
| 48 | |
---|
| 49 | %build |
---|
| 50 | %{expand: %%define optflags %{optflags} -fPIC} |
---|
| 51 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
| 52 | make %{?_smp_mflags} |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | rm -rf %{buildroot} |
---|
| 56 | make pure_install DESTDIR=%{buildroot} |
---|
| 57 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 58 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 59 | %{_fixperms} %{buildroot} |
---|
| 60 | |
---|
| 61 | %check |
---|
| 62 | make test |
---|
| 63 | |
---|
| 64 | %clean |
---|
| 65 | rm -rf %{buildroot} |
---|
| 66 | |
---|
| 67 | %files |
---|
| 68 | %defattr(-, root, root, -) |
---|
| 69 | %doc MANIFEST README CHANGELOG TODO |
---|
| 70 | %{perl_vendorlib}/* |
---|
| 71 | %{_mandir}/man3/* |
---|
| 72 | |
---|
| 73 | %changelog |
---|
[9128] | 74 | * Mon Dec 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.19-2 |
---|
| 75 | - rebuilt with perl 5.16.3 |
---|
| 76 | |
---|
[5875] | 77 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.19-1 |
---|
| 78 | - initial build for Vine Linux |
---|