1 |
%define upstream_name Role-Tiny |
2 |
%define upstream_version 1.003003 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 2 |
7 |
|
8 |
Summary: Minimal try/catch with proper localization of $@ |
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-authors/id/M/MS/MSTROUT/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Exporter) >= 5.570.0 |
15 |
BuildRequires: perl(Test::Fatal) >= 0.3.0 |
16 |
BuildRequires: perl(Test::More) >= 0.960.0 |
17 |
BuildArch: noarch |
18 |
|
19 |
%description |
20 |
'Role::Tiny' is a minimalist role composition tool. |
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 META.json META.yml MYMETA.yml README |
38 |
%{_mandir}/man3/* |
39 |
%perl_vendorlib/* |