1 |
%define upstream_name Mojolicious-Plugin-RenderFile |
2 |
%define upstream_version 0.12 |
3 |
|
4 |
%{?perl_default_filter} |
5 |
|
6 |
Name: perl-%{upstream_name} |
7 |
Version: %perl_convert_version %{upstream_version} |
8 |
Release: %mkrel 3 |
9 |
|
10 |
Summary: "render_file" helper for Mojolicious |
11 |
License: GPL+ or Artistic |
12 |
Group: Development/Perl |
13 |
Url: http://search.cpan.org/dist/%{upstream_name} |
14 |
Source0: http://www.cpan.org/modules/by-module/Mojolicious/%{upstream_name}-%{upstream_version}.tar.gz |
15 |
|
16 |
BuildRequires: perl(ExtUtils::MakeMaker) |
17 |
BuildRequires: perl(Mojolicious) >= 5.780.0 |
18 |
BuildArch: noarch |
19 |
|
20 |
%description |
21 |
the Mojolicious::Plugin::RenderFile manpage is a the Mojolicious manpage |
22 |
plugin that adds "render_file" helper. It does not read file in memory and |
23 |
just streaming it to a client. |
24 |
|
25 |
%prep |
26 |
%setup -q -n %{upstream_name}-%{upstream_version} |
27 |
|
28 |
%build |
29 |
%__perl Makefile.PL INSTALLDIRS=vendor |
30 |
|
31 |
%make |
32 |
|
33 |
%check |
34 |
%make test |
35 |
|
36 |
%install |
37 |
%make_install |
38 |
|
39 |
%files |
40 |
%doc Changes META.json META.yml MYMETA.yml |
41 |
%{_mandir}/man3/* |
42 |
%{perl_vendorlib}/* |