Files
perl-Dancer/perl-Dancer.spec

188 lines
7.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Dancer
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Dancer
Name: perl-Dancer
Version: 1.352.100
Release: 0
# 1.3521 -> normalize -> 1.352.100
%define cpan_version 1.3521
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Lightweight yet powerful web application framework
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YANICK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:12:56 +02:00
Source100: README.md
BuildArch: noarch
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::Dump)
BuildRequires: perl(Devel::Hide)
BuildRequires: perl(HTTP::Body)
BuildRequires: perl(HTTP::CookieJar) >= 0.008
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Server::Simple::PSGI)
BuildRequires: perl(HTTP::Tiny) >= 0.014
BuildRequires: perl(Hash::Merge::Simple)
BuildRequires: perl(JSON) >= 2.90
BuildRequires: perl(MIME::Types)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::NoWarnings)
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)
Requires: perl(HTTP::Tiny) >= 0.014
Requires: perl(Hash::Merge::Simple)
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
Requires: perl(MIME::Types)
Requires: perl(Module::Runtime)
Requires: perl(Test::LongString)
Requires: perl(Try::Tiny)
Requires: perl(URI)
Requires: perl(URI::Escape)
Requires: perl(parent)
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
Recommends: perl(MIME::Types) >= 2.17
Recommends: perl(YAML)
Recommends: perl(YAML::XS)
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
%{perl_requires}
%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.
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +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.
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +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.
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
Dancer has few pre-requisites, so your Dancer webapps will be easy to
deploy.
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
Dancer apps can be used with an embedded web server (great for easy
testing), and can run under PSGI/Plack for easy deployment in a variety of
webserver environments.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
%check
make test
%install
%perl_make_install
%perl_process_packlist
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
%perl_gen_filelist
- updated to 1.3095 [ BUG FIXES ] * Small fix to skip tests when YAML is not available. (Sawyer X) [ ENHANCEMENTS ] * Added 'info' log level for messages that should always go to the logs but aren't really debug, warning or error messages (Ovid) [ BUG FIXES ] * GH #763: Fix exceptions in ajax routes clobbering layout (ilmari) * GH #748 & GH 647: Don't force override environment from PLACK_ENV (jwittkoski) * GH #762: fix param parsing lacking limit on split (leejo) * GH #758: Fix Dancer::Test: make sure the request is properly converted to a response. (Ovid) * GH #729: Fix dancer exception composition, and message pattern application (Damien Krotkine) * GH #752: Exceptions raised in hooks were not propagated back to the route code, but instead canceleld and replaced by a Dancer halt exception. That was wrong. Now it is fixed, exceptions raised in hooks can be properly caught in route code. (Damien Krotkine) * Be more flexible in single vs. mutliple values in key hiding. (Sam Kington) * Use isa() for checking relationships instead of ref() in Dancer::Test. (Ovid) [ ENHANCEMENTS ] * Added 'strict_config' option to have the config return an object instead of a hashref. (Ovid) * GH #708: Added support for query strings in dancer_request (Jacob Rideout) * It's possible for the user to set the environments directory using a new environment variable (DANCER_ENVDIR) or using `set envdir => $path` OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer?expand=0&rev=27
2012-05-31 14:16:42 +00:00
%files -f %{name}.files
%doc AUTHORS Changes CONTRIBUTORS doap.xml examples README
%license LICENSE
%changelog