9
0
Files
perl-Mojolicious/perl-Mojolicious.spec

177 lines
5.9 KiB
RPMSpec
Raw Normal View History

#
# 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/
#
Name: perl-Mojolicious
Version: 2.40
Release: 0
Summary: The Web In A Box!
Source: http://search.cpan.org/CPAN/authors/id/S/SR/SRI/Mojolicious-%{version}.tar.gz
Url: http://search.cpan.org/dist/Mojolicious
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl >= 5.10.1
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)
%if 0%{?suse_version} >= 1120
BuildRequires: perl(IO::Socket::SSL) >= 1.43
%endif
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)
%if 0%{?suse_version} >= 1120
Recommends: perl(IO::Socket::SSL) >= 1.43
%endif
%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
find . -type f -exec %__chmod 0644 {} \;
%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
%{_bindir}/morbo
%{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 %{_mandir}/man1/morbo.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}
%changelog