1 |
%define upstream_name Mojolicious |
2 |
%define upstream_version 4.18 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
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/T/TE/TEMPIRE/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(ExtUtils::MakeMaker) |
15 |
BuildArch: noarch |
16 |
|
17 |
%description |
18 |
Back in the early day of the web there was this wonderful Perl library |
19 |
called CGI, many people only learned Perl because of it. It was simple |
20 |
enough to get started without knowing much about the language and powerful |
21 |
enough to keep you going, learning by doing was much fun. While most of the |
22 |
techniques used are outdated now, the idea behind it is not. Mojolicious is |
23 |
a new attempt at implementing this idea using state of the art technology. |
24 |
|
25 |
%prep |
26 |
%setup -q -n %{upstream_name}-%{upstream_version} |
27 |
|
28 |
%build |
29 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
30 |
%make |
31 |
|
32 |
%check |
33 |
make test |
34 |
|
35 |
%install |
36 |
%makeinstall_std |
37 |
|
38 |
%files |
39 |
%doc Changes LICENSE META.json META.yml MYMETA.yml examples |
40 |
%{_bindir}/mojo |
41 |
%{_bindir}/hypnotoad |
42 |
%{perl_vendorlib}/* |
43 |
%{_mandir}/man1/* |
44 |
%{_mandir}/man3/* |
45 |
%_bindir/morbo |