1 |
%define upstream_name Mojolicious |
2 |
%define upstream_version 5.39 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 2 |
7 |
|
8 |
Summary: A next generation web framework for Perl |
9 |
License: Artistic 2.0 |
10 |
Group: Development/Perl |
11 |
Url: http://mojolicious.org/ |
12 |
Source0: http://www.cpan.org/authors/id/S/SR/SRI/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(ExtUtils::MakeMaker) |
15 |
BuildRequires: perl(Pod::Simple) >= 3.90.0 |
16 |
BuildRequires: perl(Time::Local) >= 1.200.0 |
17 |
BuildArch: noarch |
18 |
|
19 |
%description |
20 |
Back in the early day of the web there was this wonderful Perl library |
21 |
called CGI, many people only learned Perl because of it. It was simple |
22 |
enough to get started without knowing much about the language and powerful |
23 |
enough to keep you going, learning by doing was much fun. While most of the |
24 |
techniques used are outdated now, the idea behind it is not. Mojolicious is |
25 |
a new attempt at implementing this idea using state of the art technology. |
26 |
|
27 |
%prep |
28 |
%setup -q -n %{upstream_name}-%{upstream_version} |
29 |
|
30 |
%build |
31 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
32 |
%make |
33 |
|
34 |
%check |
35 |
make test |
36 |
|
37 |
%install |
38 |
%makeinstall_std |
39 |
|
40 |
%files |
41 |
%doc Changes LICENSE META.json META.yml MYMETA.yml examples |
42 |
%{_bindir}/mojo |
43 |
%{_bindir}/hypnotoad |
44 |
%{perl_vendorlib}/* |
45 |
%{_mandir}/man1/* |
46 |
%{_mandir}/man3/* |
47 |
%_bindir/morbo |