1 | %define real_name Thread-Conveyor-Monitored |
---|
2 | |
---|
3 | Summary: Monitor a belt for specific content |
---|
4 | Name: perl-Thread-Conveyor-Monitored |
---|
5 | Version: 0.14 |
---|
6 | Release: 2%{?_dist_release} |
---|
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-Monitored-%{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::Conveyor) >= 0.15 |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | |
---|
23 | %description |
---|
24 | The Thread::Conveyor::Monitored module implements a single worker |
---|
25 | thread that takes of boxes of values from a belt created with |
---|
26 | Thread::Conveyor and which checks the boxes for specific content. |
---|
27 | |
---|
28 | It can be used for simply logging actions that are placed on the belt. |
---|
29 | Or only output warnings if a certain value is encountered in a box. Or |
---|
30 | create a safe sandbox for Perl modules that are not thread-safe yet. |
---|
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, -) |
---|
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.14-2 |
---|
64 | - rebuilt with perl 5.16.3 |
---|
65 | |
---|
66 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.14-1 |
---|
67 | - initial build for Vine Linux |
---|