2011-02-18 22:40:02 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
|
|
|
|
|
Name: perl-Mojolicious
|
2011-05-08 20:30:29 +00:00
|
|
|
Version: 1.31
|
2011-02-18 22:40:02 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: The Web In A Box!
|
2011-05-08 20:30:29 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/K/KR/KRAIH/Mojolicious-%{version}.tar.gz
|
2011-02-18 22:40:02 +00:00
|
|
|
URL: http://search.cpan.org/dist/Mojolicious
|
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
License: Perl License
|
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
|
%{perl_requires}
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
|
BuildRequires: perl(Test::Builder)
|
|
|
|
|
BuildRequires: perl(I18N::LangTags)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(Errno)
|
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(MIME::QuotedPrint)
|
|
|
|
|
BuildRequires: perl(B)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(Locale::Maketext)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
|
BuildRequires: perl(IO::Poll)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(Test::Harness)
|
|
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(MIME::Base64)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(Sys::Hostname)
|
2011-03-11 00:52:23 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-03-11 00:47:38 +00:00
|
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.37
|
2011-03-11 00:52:23 +00:00
|
|
|
%endif
|
2011-02-18 22:40:02 +00:00
|
|
|
Requires: perl(Storable)
|
|
|
|
|
Requires: perl(Encode)
|
|
|
|
|
Requires: perl(List::Util)
|
|
|
|
|
Requires: perl(I18N::LangTags)
|
|
|
|
|
Requires: perl(File::Path)
|
|
|
|
|
Requires: perl(Errno)
|
|
|
|
|
Requires: perl(File::Copy)
|
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
|
Requires: perl(IO::File)
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
Requires: perl(MIME::QuotedPrint)
|
|
|
|
|
Requires: perl(B)
|
|
|
|
|
Requires: perl(IO::Socket)
|
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
|
Requires: perl(Locale::Maketext)
|
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
|
Requires: perl(FindBin)
|
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
|
Requires: perl(Digest::MD5)
|
|
|
|
|
Requires: perl(IO::Poll)
|
|
|
|
|
Requires: perl(File::Spec::Functions)
|
|
|
|
|
Requires: perl(Time::HiRes)
|
|
|
|
|
Requires: perl(Exporter)
|
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
Requires: perl(MIME::Base64)
|
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
|
Requires: perl(Cwd)
|
|
|
|
|
Requires: perl(Sys::Hostname)
|
2011-03-11 00:52:23 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-03-11 00:47:38 +00:00
|
|
|
Recommends: perl(IO::Socket::SSL) >= 1.37
|
2011-03-11 00:52:23 +00:00
|
|
|
%endif
|
2011-02-18 22:40:02 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Back in the early days of the web there was this wonderful Perl library
|
|
|
|
|
called CGI, many people only learned Perl because of it. It was simple
|
|
|
|
|
enough to get started without knowing much about the language and powerful
|
|
|
|
|
enough to keep you going, learning by doing was much fun. While most of
|
|
|
|
|
the techniques used are outdated now, the idea behind it is not.
|
|
|
|
|
Mojolicious is a new attempt at implementing this idea using state of the
|
|
|
|
|
art technology.
|
|
|
|
|
Features
|
|
|
|
|
* An amazing MVC web framework supporting a simplified single file mode
|
|
|
|
|
through Mojolicious::Lite.
|
|
|
|
|
* Powerful out of the box with RESTful routes, plugins, Perl-ish templates,
|
|
|
|
|
session management, signed cookies, testing framework, static file server,
|
|
|
|
|
I18N, first class unicode support and much more for you to discover.
|
|
|
|
|
* Very clean, portable and Object Oriented pure Perl API without any
|
|
|
|
|
hidden magic and no requirements besides Perl 5.8.7.
|
|
|
|
|
* Full stack HTTP 1.1 and WebSocket client/server implementation with TLS,
|
|
|
|
|
Bonjour, IDNA, Comet (long polling), chunking and multipart support.
|
|
|
|
|
* Builtin async IO web server supporting epoll, kqueue, UNIX domain
|
|
|
|
|
sockets and hot deployment, perfect for embedding.
|
|
|
|
|
* Automatic CGI, FastCGI and PSGI detection.
|
|
|
|
|
* JSON and XML/HTML5 parser with CSS3 selector support.
|
|
|
|
|
* Fresh code based upon years of experience developing Catalyst.
|
|
|
|
|
|
|
|
|
|
For more documentation see Mojolicious::Guides and the tutorial in
|
|
|
|
|
Mojolicious::Lite!
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n "Mojolicious-%{version}"
|
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc Changes LICENSE README.pod
|
|
|
|
|
%{_bindir}/hypnotoad
|
|
|
|
|
%{_bindir}/mojo
|
|
|
|
|
%{perl_vendorlib}/Mojo.pm
|
|
|
|
|
%{perl_vendorlib}/Mojolicious.pm
|
|
|
|
|
%{perl_vendorlib}/Mojo
|
|
|
|
|
%{perl_vendorlib}/Mojolicious
|
|
|
|
|
%dir %{perl_vendorlib}/Test
|
|
|
|
|
%{perl_vendorlib}/Test/Mojo.pm
|
|
|
|
|
%{perl_vendorlib}/ojo.pm
|
|
|
|
|
%doc %{_mandir}/man1/hypnotoad.1%{ext_man}
|
|
|
|
|
%doc %{_mandir}/man1/mojo.1%{ext_man}
|
|
|
|
|
%doc %{perl_man3dir}/Mojo*.%{perl_man3ext}%{ext_man}
|
|
|
|
|
%doc %{perl_man3dir}/Test::Mojo.%{perl_man3ext}%{ext_man}
|
|
|
|
|
%doc %{perl_man3dir}/ojo.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|
|
|
|
|
%exclude %{perl_vendorlib}/README.pod
|
|
|
|
|
%exclude %{perl_man3dir}/README.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|