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 5 |
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 |
%{?perl_default_filter} |
20 |
|
21 |
%description |
22 |
Back in the early day of the web there was this wonderful Perl library |
23 |
called CGI, many people only learned Perl because of it. It was simple |
24 |
enough to get started without knowing much about the language and powerful |
25 |
enough to keep you going, learning by doing was much fun. While most of the |
26 |
techniques used are outdated now, the idea behind it is not. Mojolicious is |
27 |
a new attempt at implementing this idea using state of the art technology. |
28 |
|
29 |
%prep |
30 |
%setup -q -n %{upstream_name}-%{upstream_version} |
31 |
|
32 |
%build |
33 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
34 |
%make |
35 |
|
36 |
%check |
37 |
make test |
38 |
|
39 |
%install |
40 |
%makeinstall_std |
41 |
|
42 |
%files |
43 |
%doc Changes LICENSE META.json META.yml MYMETA.yml examples |
44 |
%{_bindir}/mojo |
45 |
%{_bindir}/hypnotoad |
46 |
%{perl_vendorlib}/* |
47 |
%{_mandir}/man1/* |
48 |
%{_mandir}/man3/* |
49 |
%_bindir/morbo |