1 | %define real_name Thread-Serialize |
---|
2 | |
---|
3 | Summary: serialize data-structures between threads |
---|
4 | Name: perl-Thread-Serialize |
---|
5 | Version: 0.11 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | Source: http://search.cpan.org/CPAN/authors/id/E/EL/ELIZABETH/Thread-Serialize-%{version}.tar.gz |
---|
10 | URL: http://search.cpan.org/dist/Thread-Serialize/ |
---|
11 | BuildArch: noarch |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
13 | |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
15 | BuildRequires: perl(Storable) |
---|
16 | BuildRequires: perl(load) >= 0.10 |
---|
17 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
18 | Requires: perl(Storable) |
---|
19 | Requires: perl(load) >= 0.10 |
---|
20 | |
---|
21 | %description |
---|
22 | The Thread::Serialize module is a library for centralizing the |
---|
23 | routines used to serialize data-structures between threads. |
---|
24 | Because of this central location, other modules such as |
---|
25 | Thread::Conveyor, Thread::Pool or Thread::Tie can benefit from |
---|
26 | the same optimizations that may take place here in the future. |
---|
27 | |
---|
28 | This module only functions on Perl versions 5.8.0 and later. |
---|
29 | And then only when threads are enabled with -Dusethreads. It |
---|
30 | is of no use with any version of Perl before 5.8.0 or without |
---|
31 | threads enabled. |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q -n %{real_name}-%{version} |
---|
35 | |
---|
36 | %build |
---|
37 | %{expand: %%define optflags %{optflags} -fPIC} |
---|
38 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
39 | make %{?_smp_mflags} |
---|
40 | |
---|
41 | %install |
---|
42 | rm -rf %{buildroot} |
---|
43 | make pure_install DESTDIR=%{buildroot} |
---|
44 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
45 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
46 | %{_fixperms} %{buildroot} |
---|
47 | |
---|
48 | %clean |
---|
49 | %{__rm} -rf %{buildroot} |
---|
50 | |
---|
51 | %files |
---|
52 | %defattr(-, root, root, 0755) |
---|
53 | %doc MANIFEST README CHANGELOG TODO |
---|
54 | %doc %{_mandir}/man3/Thread::Serialize.3pm* |
---|
55 | %dir %{perl_vendorlib}/Thread/ |
---|
56 | %{perl_vendorlib}/Thread/Serialize.pm |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.11-1 |
---|
60 | - initial build for Vine Linux |
---|