2011-06-15 22:09:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Dancer
|
|
|
|
#
|
2024-08-24 22:59:10 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-06-15 22:09:56 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-03 09:48:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-15 22:09:56 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-02-15 17:26:09 +00:00
|
|
|
%define cpan_name Dancer
|
2010-09-22 21:38:08 +00:00
|
|
|
Name: perl-Dancer
|
2024-08-24 22:59:10 +00:00
|
|
|
Version: 1.352.100
|
2010-12-07 13:59:56 +00:00
|
|
|
Release: 0
|
2024-08-24 22:59:10 +00:00
|
|
|
# 1.3521 -> normalize -> 1.352.100
|
|
|
|
%define cpan_version 1.3521
|
2019-09-03 09:48:32 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-02-15 17:26:09 +00:00
|
|
|
Summary: Lightweight yet powerful web application framework
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-08-24 22:59:10 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YANICK/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-23 05:57:50 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:56 +02:00
|
|
|
Source100: README.md
|
2011-05-06 19:58:50 +00:00
|
|
|
BuildArch: noarch
|
2012-05-31 14:16:42 +00:00
|
|
|
BuildRequires: perl
|
2010-09-22 21:38:08 +00:00
|
|
|
BuildRequires: perl-macros
|
2019-09-03 09:48:32 +00:00
|
|
|
BuildRequires: perl(Data::Dump)
|
2015-04-14 06:06:30 +00:00
|
|
|
BuildRequires: perl(Devel::Hide)
|
|
|
|
BuildRequires: perl(HTTP::Body)
|
2019-09-03 09:48:32 +00:00
|
|
|
BuildRequires: perl(HTTP::CookieJar) >= 0.008
|
2015-04-14 06:06:30 +00:00
|
|
|
BuildRequires: perl(HTTP::Date)
|
|
|
|
BuildRequires: perl(HTTP::Headers)
|
|
|
|
BuildRequires: perl(HTTP::Request)
|
|
|
|
BuildRequires: perl(HTTP::Server::Simple::PSGI)
|
2019-09-03 09:48:32 +00:00
|
|
|
BuildRequires: perl(HTTP::Tiny) >= 0.014
|
2015-04-14 06:06:30 +00:00
|
|
|
BuildRequires: perl(Hash::Merge::Simple)
|
2019-09-03 09:48:32 +00:00
|
|
|
BuildRequires: perl(JSON) >= 2.90
|
2010-09-22 21:38:08 +00:00
|
|
|
BuildRequires: perl(MIME::Types)
|
2013-06-10 11:05:30 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2015-04-14 06:06:30 +00:00
|
|
|
BuildRequires: perl(Plack::Builder)
|
2023-02-15 17:26:09 +00:00
|
|
|
BuildRequires: perl(Test::LongString)
|
2015-09-21 04:47:47 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2015-04-14 06:06:30 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
BuildRequires: perl(URI)
|
|
|
|
BuildRequires: perl(URI::Escape)
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
Requires: perl(HTTP::Body)
|
|
|
|
Requires: perl(HTTP::Date)
|
|
|
|
Requires: perl(HTTP::Headers)
|
|
|
|
Requires: perl(HTTP::Server::Simple::PSGI)
|
2019-09-03 09:48:32 +00:00
|
|
|
Requires: perl(HTTP::Tiny) >= 0.014
|
2015-04-14 06:06:30 +00:00
|
|
|
Requires: perl(Hash::Merge::Simple)
|
2012-05-31 14:16:42 +00:00
|
|
|
Requires: perl(MIME::Types)
|
2013-06-10 11:05:30 +00:00
|
|
|
Requires: perl(Module::Runtime)
|
2023-02-15 17:26:09 +00:00
|
|
|
Requires: perl(Test::LongString)
|
2015-04-14 06:06:30 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
|
|
|
Requires: perl(URI)
|
|
|
|
Requires: perl(URI::Escape)
|
|
|
|
Requires: perl(parent)
|
2024-08-24 22:59:10 +00:00
|
|
|
Provides: perl(Dancer) = %{version}
|
|
|
|
Provides: perl(Dancer::App) = %{version}
|
|
|
|
Provides: perl(Dancer::Config) = %{version}
|
|
|
|
Provides: perl(Dancer::Config::Object) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Halted) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Route) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Route::ErrorSent) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Route::FileSent) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Route::Forwarded) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Route::Passed) = %{version}
|
|
|
|
Provides: perl(Dancer::Continuation::Route::Templated) = %{version}
|
|
|
|
Provides: perl(Dancer::Cookie) = %{version}
|
|
|
|
Provides: perl(Dancer::Cookies) = %{version}
|
|
|
|
Provides: perl(Dancer::Deprecation) = %{version}
|
|
|
|
Provides: perl(Dancer::Engine) = %{version}
|
|
|
|
Provides: perl(Dancer::Error) = %{version}
|
|
|
|
Provides: perl(Dancer::Exception) = %{version}
|
|
|
|
Provides: perl(Dancer::Exception::Base) = %{version}
|
|
|
|
Provides: perl(Dancer::Factory::Hook) = %{version}
|
|
|
|
Provides: perl(Dancer::FileUtils) = %{version}
|
|
|
|
Provides: perl(Dancer::GetOpt) = %{version}
|
|
|
|
Provides: perl(Dancer::HTTP) = %{version}
|
|
|
|
Provides: perl(Dancer::Handler) = %{version}
|
|
|
|
Provides: perl(Dancer::Handler::Debug) = %{version}
|
|
|
|
Provides: perl(Dancer::Handler::PSGI) = %{version}
|
|
|
|
Provides: perl(Dancer::Handler::Standalone) = %{version}
|
|
|
|
Provides: perl(Dancer::Hook) = %{version}
|
|
|
|
Provides: perl(Dancer::Hook::Properties) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Abstract) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Capture) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Capture::Trap) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Console) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Diag) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::File) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Note) = %{version}
|
|
|
|
Provides: perl(Dancer::Logger::Null) = %{version}
|
|
|
|
Provides: perl(Dancer::MIME) = %{version}
|
|
|
|
Provides: perl(Dancer::ModuleLoader) = %{version}
|
|
|
|
Provides: perl(Dancer::Object) = %{version}
|
|
|
|
Provides: perl(Dancer::Object::Singleton) = %{version}
|
|
|
|
Provides: perl(Dancer::Plugin) = %{version}
|
|
|
|
Provides: perl(Dancer::Plugin::Ajax) = %{version}
|
|
|
|
Provides: perl(Dancer::Renderer) = %{version}
|
|
|
|
Provides: perl(Dancer::Request) = %{version}
|
|
|
|
Provides: perl(Dancer::Request::Upload) = %{version}
|
|
|
|
Provides: perl(Dancer::Response) = %{version}
|
|
|
|
Provides: perl(Dancer::Route) = %{version}
|
|
|
|
Provides: perl(Dancer::Route::Cache) = %{version}
|
|
|
|
Provides: perl(Dancer::Route::Registry) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::Abstract) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::Dumper) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::JSON) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::JSONP) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::Mutable) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::XML) = %{version}
|
|
|
|
Provides: perl(Dancer::Serializer::YAML) = %{version}
|
|
|
|
Provides: perl(Dancer::Session) = %{version}
|
|
|
|
Provides: perl(Dancer::Session::Abstract) = %{version}
|
|
|
|
Provides: perl(Dancer::Session::Simple) = %{version}
|
|
|
|
Provides: perl(Dancer::Session::YAML) = %{version}
|
|
|
|
Provides: perl(Dancer::SharedData) = %{version}
|
|
|
|
Provides: perl(Dancer::Template) = %{version}
|
|
|
|
Provides: perl(Dancer::Template::Abstract) = %{version}
|
|
|
|
Provides: perl(Dancer::Template::Simple) = %{version}
|
|
|
|
Provides: perl(Dancer::Template::TemplateToolkit) = %{version}
|
|
|
|
Provides: perl(Dancer::Test) = %{version}
|
|
|
|
Provides: perl(Dancer::Timer) = %{version}
|
|
|
|
Provides: perl(HTTP::Tiny::NoProxy) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2019-09-03 09:48:32 +00:00
|
|
|
Recommends: perl(MIME::Types) >= 2.17
|
2015-04-14 06:06:30 +00:00
|
|
|
Recommends: perl(YAML)
|
2019-09-03 09:48:32 +00:00
|
|
|
Recommends: perl(YAML::XS)
|
2012-05-31 14:16:42 +00:00
|
|
|
%{perl_requires}
|
2010-09-22 21:38:08 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Dancer is a web application framework designed to be as effortless as
|
|
|
|
possible for the developer, taking care of the boring bits as easily as
|
|
|
|
possible, yet staying out of your way and letting you get on with writing
|
|
|
|
your code.
|
2012-05-31 14:16:42 +00:00
|
|
|
|
2011-04-14 21:42:30 +00:00
|
|
|
Dancer aims to provide the simplest way for writing web applications, and
|
|
|
|
offers the flexibility to scale between a very simple lightweight web
|
|
|
|
service consisting of a few lines of code in a single file, all the way up
|
|
|
|
to a more complex fully-fledged web application with session support,
|
|
|
|
templates for views and layouts, etc.
|
2012-05-31 14:16:42 +00:00
|
|
|
|
2011-04-14 21:42:30 +00:00
|
|
|
If you don't want to write CGI scripts by hand, and find Catalyst too big
|
|
|
|
or cumbersome for your project, Dancer is what you need.
|
2012-05-31 14:16:42 +00:00
|
|
|
|
2011-04-14 21:42:30 +00:00
|
|
|
Dancer has few pre-requisites, so your Dancer webapps will be easy to
|
|
|
|
deploy.
|
2012-05-31 14:16:42 +00:00
|
|
|
|
2015-04-14 06:06:30 +00:00
|
|
|
Dancer apps can be used with an embedded web server (great for easy
|
2011-04-14 21:42:30 +00:00
|
|
|
testing), and can run under PSGI/Plack for easy deployment in a variety of
|
|
|
|
webserver environments.
|
2010-09-22 21:38:08 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-24 22:59:10 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2023-02-15 17:26:09 +00:00
|
|
|
|
2024-08-24 22:59:10 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-09-22 21:38:08 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-03 09:48:32 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-02-15 17:26:09 +00:00
|
|
|
%make_build
|
2012-05-31 14:16:42 +00:00
|
|
|
|
|
|
|
%check
|
2019-09-03 09:48:32 +00:00
|
|
|
make test
|
2011-06-15 22:09:56 +00:00
|
|
|
|
2010-09-22 21:38:08 +00:00
|
|
|
%install
|
|
|
|
%perl_make_install
|
2011-04-14 21:42:30 +00:00
|
|
|
%perl_process_packlist
|
2012-05-31 14:16:42 +00:00
|
|
|
%perl_gen_filelist
|
2011-04-14 21:42:30 +00:00
|
|
|
|
2012-05-31 14:16:42 +00:00
|
|
|
%files -f %{name}.files
|
2020-02-03 12:04:07 +00:00
|
|
|
%doc AUTHORS Changes CONTRIBUTORS doap.xml examples README
|
2019-09-03 09:48:32 +00:00
|
|
|
%license LICENSE
|
2010-09-22 21:38:08 +00:00
|
|
|
|
2011-06-15 22:09:56 +00:00
|
|
|
%changelog
|