1 |
%define upstream_name Mojolicious |
2 |
%define upstream_version 2.31 |
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/K/KR/KRAIH/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(B) |
15 |
BuildRequires: perl(Carp) |
16 |
BuildRequires: perl(Config) |
17 |
BuildRequires: perl(Cwd) |
18 |
BuildRequires: perl(Data::Dumper) |
19 |
BuildRequires: perl(Digest::MD5) |
20 |
BuildRequires: perl(Digest::SHA) |
21 |
BuildRequires: perl(Encode) |
22 |
BuildRequires: perl(Errno) |
23 |
BuildRequires: perl(Exporter) |
24 |
BuildRequires: perl(ExtUtils::MakeMaker) |
25 |
BuildRequires: perl(Fcntl) |
26 |
BuildRequires: perl(File::Basename) |
27 |
BuildRequires: perl(File::Copy) |
28 |
BuildRequires: perl(File::Find) |
29 |
BuildRequires: perl(File::Path) |
30 |
BuildRequires: perl(File::Spec) |
31 |
BuildRequires: perl(File::Temp) |
32 |
BuildRequires: perl(FindBin) |
33 |
BuildRequires: perl(Getopt::Long) |
34 |
BuildRequires: perl(I18N::LangTags) |
35 |
BuildRequires: perl(I18N::LangTags::Detect) |
36 |
BuildRequires: perl(IO::File) |
37 |
BuildRequires: perl(IO::Poll) |
38 |
BuildRequires: perl(IO::Socket) |
39 |
BuildRequires: perl(IO::Socket::INET) |
40 |
BuildRequires: perl(List::Util) |
41 |
BuildRequires: perl(Locale::Maketext) |
42 |
BuildRequires: perl(MIME::Base64) |
43 |
BuildRequires: perl(MIME::QuotedPrint) |
44 |
BuildRequires: perl(POSIX) |
45 |
BuildRequires: perl(Pod::Simple::HTML) |
46 |
BuildRequires: perl(Pod::Simple::Search) |
47 |
BuildRequires: perl(Scalar::Util) |
48 |
BuildRequires: perl(Socket) |
49 |
BuildRequires: perl(Sys::Hostname) |
50 |
BuildRequires: perl(Test::Harness) |
51 |
BuildRequires: perl(Test::More) |
52 |
BuildRequires: perl(Time::HiRes) |
53 |
BuildRequires: perl(re) |
54 |
BuildArch: noarch |
55 |
|
56 |
%description |
57 |
Back in the early day of the web there was this wonderful Perl library |
58 |
called CGI, many people only learned Perl because of it. It was simple |
59 |
enough to get started without knowing much about the language and powerful |
60 |
enough to keep you going, learning by doing was much fun. While most of the |
61 |
techniques used are outdated now, the idea behind it is not. Mojolicious is |
62 |
a new attempt at implementing this idea using state of the art technology. |
63 |
|
64 |
%prep |
65 |
%setup -q -n %{upstream_name}-%{upstream_version} |
66 |
|
67 |
%build |
68 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
69 |
%make |
70 |
|
71 |
%check |
72 |
make test |
73 |
|
74 |
%install |
75 |
%makeinstall_std |
76 |
|
77 |
%files |
78 |
%doc Changes LICENSE META.json META.yml examples |
79 |
%{_bindir}/mojo |
80 |
%{_bindir}/hypnotoad |
81 |
%{perl_vendorlib}/* |
82 |
%{_mandir}/man1/* |
83 |
%{_mandir}/man3/* |
84 |
%_bindir/morbo |