2011-10-30 09:24:47 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-Mojolicious
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2011-02-18 22:40:02 +00:00
|
|
|
|
|
|
|
|
Name: perl-Mojolicious
|
2011-12-26 12:53:38 +00:00
|
|
|
Version: 2.40
|
2011-02-18 22:40:02 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: The Web In A Box!
|
2011-12-26 12:53:38 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/S/SR/SRI/Mojolicious-%{version}.tar.gz
|
2011-10-30 09:24:47 +00:00
|
|
|
Url: http://search.cpan.org/dist/Mojolicious
|
2011-02-18 22:40:02 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
License: Perl License
|
2011-10-30 09:24:47 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-18 22:40:02 +00:00
|
|
|
%{perl_requires}
|
2011-10-30 09:38:22 +00:00
|
|
|
BuildRequires: perl >= 5.10.1
|
2011-02-18 22:40:02 +00:00
|
|
|
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-05-17 23:35:25 +00:00
|
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.43
|
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-05-17 23:35:25 +00:00
|
|
|
Recommends: perl(IO::Socket::SSL) >= 1.43
|
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
|
|
|
|
|
|
2011-06-04 23:31:57 +00:00
|
|
|
find . -type f -exec %__chmod 0644 {} \;
|
|
|
|
|
|
2011-02-18 22:40:02 +00:00
|
|
|
%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
|
2011-10-30 09:24:47 +00:00
|
|
|
%{_bindir}/morbo
|
2011-02-18 22:40:02 +00:00
|
|
|
%{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}
|
2011-10-30 09:24:47 +00:00
|
|
|
%doc %{_mandir}/man1/morbo.1%{ext_man}
|
2011-02-18 22:40:02 +00:00
|
|
|
%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}
|
|
|
|
|
|
2011-10-30 09:24:47 +00:00
|
|
|
%changelog
|