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