[5875] | 1 | %define real_name Thread-Serialize |
---|
| 2 | |
---|
| 3 | Summary: serialize data-structures between threads |
---|
| 4 | Name: perl-Thread-Serialize |
---|
[9004] | 5 | Version: 1.01 |
---|
[5875] | 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) |
---|
[9004] | 16 | BuildRequires: perl(Test::More) >= 0.88 |
---|
[5875] | 17 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 18 | Requires: perl(Storable) |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | The Thread::Serialize module is a library for centralizing the |
---|
| 22 | routines used to serialize data-structures between threads. |
---|
| 23 | Because of this central location, other modules such as |
---|
| 24 | Thread::Conveyor, Thread::Pool or Thread::Tie can benefit from |
---|
| 25 | the same optimizations that may take place here in the future. |
---|
| 26 | |
---|
| 27 | This module only functions on Perl versions 5.8.0 and later. |
---|
| 28 | And then only when threads are enabled with -Dusethreads. It |
---|
| 29 | is of no use with any version of Perl before 5.8.0 or without |
---|
| 30 | threads enabled. |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n %{real_name}-%{version} |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | %{expand: %%define optflags %{optflags} -fPIC} |
---|
| 37 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
| 38 | make %{?_smp_mflags} |
---|
| 39 | |
---|
| 40 | %install |
---|
| 41 | rm -rf %{buildroot} |
---|
| 42 | make pure_install DESTDIR=%{buildroot} |
---|
| 43 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 44 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 45 | %{_fixperms} %{buildroot} |
---|
| 46 | |
---|
| 47 | %clean |
---|
| 48 | %{__rm} -rf %{buildroot} |
---|
| 49 | |
---|
[9004] | 50 | %check |
---|
| 51 | make test |
---|
| 52 | |
---|
[5875] | 53 | %files |
---|
| 54 | %defattr(-, root, root, 0755) |
---|
[9004] | 55 | %doc MANIFEST README CHANGELOG |
---|
[5875] | 56 | %doc %{_mandir}/man3/Thread::Serialize.3pm* |
---|
| 57 | %dir %{perl_vendorlib}/Thread/ |
---|
| 58 | %{perl_vendorlib}/Thread/Serialize.pm |
---|
| 59 | |
---|
| 60 | %changelog |
---|
[9004] | 61 | * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.01-1 |
---|
| 62 | - updated to 1.01 |
---|
| 63 | - build with perl 5.16.3 |
---|
| 64 | |
---|
[5875] | 65 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.11-1 |
---|
| 66 | - initial build for Vine Linux |
---|