1 |
%define upstream_name Eval-Compile |
2 |
%define upstream_version 0.10 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: No summary found |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/Eval/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(ExtUtils::MakeMaker) |
15 |
BuildRequires: perl-devel |
16 |
|
17 |
%description |
18 |
Faster replacement for string evals. It takes evaled strings and compiles |
19 |
into specific perl sub with some data, and do it once for any given string |
20 |
So next execution take a fraction of first eval to execute. |
21 |
|
22 |
%prep |
23 |
%setup -q -n %{upstream_name}-%{upstream_version} |
24 |
|
25 |
%build |
26 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
27 |
|
28 |
%make |
29 |
|
30 |
%check |
31 |
%make test |
32 |
|
33 |
%install |
34 |
%makeinstall_std |
35 |
|
36 |
%files |
37 |
%doc Changes README META.yml |
38 |
%{_mandir}/man3/* |
39 |
%perl_vendorlib/* |
40 |
|
41 |
|