1 |
%define upstream_name Eval-Compile |
2 |
%define upstream_version 0.11 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 4 |
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 |
%description |
17 |
Faster replacement for string evals. It takes evaled strings and compiles |
18 |
into specific perl sub with some data, and do it once for any given string |
19 |
So next execution take a fraction of first eval to execute. |
20 |
|
21 |
%prep |
22 |
%setup -q -n %{upstream_name}-%{upstream_version} |
23 |
|
24 |
%build |
25 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
26 |
|
27 |
%make |
28 |
|
29 |
%check |
30 |
%make test |
31 |
|
32 |
%install |
33 |
%makeinstall_std |
34 |
|
35 |
%files |
36 |
%doc Changes META.json META.yml MYMETA.yml README |
37 |
%{_mandir}/man3/* |
38 |
%perl_vendorlib/* |