2013-09-28 11:19:08 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Dancer2
|
|
|
|
#
|
2024-07-29 13:08:48 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-09-28 11:19:08 +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-08-30 12:22:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-28 11:19:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-27 16:17:10 +00:00
|
|
|
%define cpan_name Dancer2
|
2013-09-28 11:19:08 +00:00
|
|
|
Name: perl-Dancer2
|
2025-01-09 16:29:46 +00:00
|
|
|
Version: 1.1.2
|
2013-09-28 11:19:08 +00:00
|
|
|
Release: 0
|
2019-08-30 12:22:39 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-03-26 08:19:45 +00:00
|
|
|
Summary: Lightweight yet powerful web application framework
|
2020-05-28 22:37:35 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2019-08-30 12:22:39 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CR/CROMEDOME/%{cpan_name}-%{version}.tar.gz
|
2015-04-17 18:31:43 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:57 +02:00
|
|
|
Source100: README.md
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2021-08-25 16:15:08 +00:00
|
|
|
BuildRequires: perl(CLI::Osprey)
|
2025-01-09 16:29:46 +00:00
|
|
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(Capture::Tiny) >= 0.12
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(Clone)
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(Config::Any)
|
|
|
|
BuildRequires: perl(Digest::SHA)
|
2016-06-12 14:25:36 +00:00
|
|
|
BuildRequires: perl(Exporter::Tiny)
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(File::Share)
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(File::ShareDir::Install) >= 0.06
|
2021-08-25 16:15:08 +00:00
|
|
|
BuildRequires: perl(File::Which)
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(HTTP::Cookies)
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(HTTP::Date)
|
|
|
|
BuildRequires: perl(HTTP::Headers)
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(HTTP::Headers::Fast) >= 0.21
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(HTTP::Tiny)
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(Hash::Merge::Simple)
|
2016-06-12 14:25:36 +00:00
|
|
|
BuildRequires: perl(Hash::MultiValue)
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(Import::Into)
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(JSON::MaybeXS)
|
|
|
|
BuildRequires: perl(List::Util) >= 1.29
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(MIME::Base64) >= 3.13
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(Module::Metadata)
|
2025-01-09 16:29:46 +00:00
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2016-06-12 14:25:36 +00:00
|
|
|
BuildRequires: perl(Moo) >= 2.000000
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(Moo::Role)
|
2021-08-25 16:15:08 +00:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(Plack) >= 1.0040
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(Plack::Middleware::FixMissingBodyInRedirect)
|
|
|
|
BuildRequires: perl(Plack::Middleware::RemoveRedundantBody)
|
2021-08-25 16:15:08 +00:00
|
|
|
BuildRequires: perl(Pod::Simple::SimpleTree)
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(Ref::Util)
|
2021-01-27 16:17:10 +00:00
|
|
|
BuildRequires: perl(parent)
|
2021-03-22 16:35:49 +00:00
|
|
|
#BuildRequires: perl(Role::Tiny) >= 2.000000
|
2015-04-17 18:31:43 +00:00
|
|
|
BuildRequires: perl(Safe::Isa)
|
|
|
|
BuildRequires: perl(Sub::Quote)
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(Template)
|
|
|
|
BuildRequires: perl(Template::Tiny)
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(Test::EOL)
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.92
|
2019-08-30 12:22:39 +00:00
|
|
|
BuildRequires: perl(Type::Tiny) >= 1.000006
|
|
|
|
BuildRequires: perl(Types::Standard)
|
2013-09-28 11:19:08 +00:00
|
|
|
BuildRequires: perl(URI::Escape)
|
2016-06-12 14:25:36 +00:00
|
|
|
BuildRequires: perl(YAML) >= 0.86
|
2021-08-25 16:15:08 +00:00
|
|
|
Requires: perl(CLI::Osprey)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(Clone)
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(Config::Any)
|
|
|
|
Requires: perl(Digest::SHA)
|
2016-06-12 14:25:36 +00:00
|
|
|
Requires: perl(Exporter::Tiny)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(File::Share)
|
2021-08-25 16:15:08 +00:00
|
|
|
Requires: perl(File::Which)
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(HTTP::Date)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(HTTP::Headers::Fast) >= 0.21
|
2015-04-17 18:31:43 +00:00
|
|
|
Requires: perl(HTTP::Tiny)
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(Hash::Merge::Simple)
|
2016-06-12 14:25:36 +00:00
|
|
|
Requires: perl(Hash::MultiValue)
|
2015-04-17 18:31:43 +00:00
|
|
|
Requires: perl(Import::Into)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(JSON::MaybeXS)
|
|
|
|
Requires: perl(List::Util) >= 1.29
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(MIME::Base64) >= 3.13
|
2025-01-09 16:29:46 +00:00
|
|
|
Requires: perl(Module::Pluggable)
|
2015-04-17 18:31:43 +00:00
|
|
|
Requires: perl(Module::Runtime)
|
2016-06-12 14:25:36 +00:00
|
|
|
Requires: perl(Moo) >= 2.000000
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(Moo::Role)
|
2021-08-25 16:15:08 +00:00
|
|
|
Requires: perl(Path::Tiny)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(Plack) >= 1.0040
|
2015-04-17 18:31:43 +00:00
|
|
|
Requires: perl(Plack::Middleware::FixMissingBodyInRedirect)
|
|
|
|
Requires: perl(Plack::Middleware::RemoveRedundantBody)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(Ref::Util)
|
2021-01-27 16:17:10 +00:00
|
|
|
Requires: perl(parent)
|
2021-03-22 16:35:49 +00:00
|
|
|
#Requires: perl(Role::Tiny) >= 2.000000
|
2015-04-17 18:31:43 +00:00
|
|
|
Requires: perl(Safe::Isa)
|
|
|
|
Requires: perl(Sub::Quote)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(Template)
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(Template::Tiny)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(Test::More) >= 0.92
|
|
|
|
Requires: perl(Type::Tiny) >= 1.000006
|
|
|
|
Requires: perl(Types::Standard)
|
2013-09-28 11:19:08 +00:00
|
|
|
Requires: perl(URI::Escape)
|
2019-08-30 12:22:39 +00:00
|
|
|
Requires: perl(YAML) >= 0.86
|
2013-09-28 11:19:08 +00:00
|
|
|
Recommends: perl(CGI::Deurl::XS)
|
2019-08-30 12:22:39 +00:00
|
|
|
Recommends: perl(Class::XSAccessor)
|
|
|
|
Recommends: perl(Cpanel::JSON::XS)
|
2013-09-28 11:19:08 +00:00
|
|
|
Recommends: perl(Crypt::URandom)
|
2024-07-29 13:08:48 +00:00
|
|
|
Recommends: perl(HTTP::XSCookies) >= 0.0.15
|
2019-08-30 12:22:39 +00:00
|
|
|
Recommends: perl(HTTP::XSHeaders)
|
2013-09-28 11:19:08 +00:00
|
|
|
Recommends: perl(Math::Random::ISAAC::XS)
|
2019-08-30 12:22:39 +00:00
|
|
|
Recommends: perl(MooX::TypeTiny)
|
2013-09-28 11:19:08 +00:00
|
|
|
Recommends: perl(Pod::Simple::Search)
|
|
|
|
Recommends: perl(Pod::Simple::SimpleTree)
|
2016-06-12 14:25:36 +00:00
|
|
|
Recommends: perl(Type::Tiny::XS)
|
2013-09-28 11:19:08 +00:00
|
|
|
Recommends: perl(URL::Encode::XS)
|
2023-02-15 17:20:33 +00:00
|
|
|
Recommends: perl(Unicode::UTF8)
|
2019-08-30 12:22:39 +00:00
|
|
|
Recommends: perl(YAML::XS)
|
2013-09-28 11:19:08 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-06-12 14:25:36 +00:00
|
|
|
Dancer2 is the new generation of Dancer, the lightweight web-framework for
|
|
|
|
Perl. Dancer2 is a complete rewrite based on Moo.
|
2013-09-28 11:19:08 +00:00
|
|
|
|
2015-04-17 18:31:43 +00:00
|
|
|
Dancer2 can optionally use XS modules for speed, but at its core remains
|
2016-06-12 14:25:36 +00:00
|
|
|
fatpackable (packable by App::FatPacker) so you could easily deploy Dancer2
|
|
|
|
applications on hosts that do not support custom CPAN modules.
|
2015-04-17 18:31:43 +00:00
|
|
|
|
2013-09-28 11:19:08 +00:00
|
|
|
Dancer2 is easy and fun:
|
|
|
|
|
|
|
|
use Dancer2;
|
|
|
|
get '/' => sub { "Hello World" };
|
|
|
|
dance;
|
|
|
|
|
|
|
|
This is the main module for the Dancer2 distribution. It contains logic for
|
|
|
|
creating a new Dancer2 application.
|
|
|
|
|
|
|
|
%prep
|
2021-01-27 16:17:10 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2023-02-15 17:20:33 +00:00
|
|
|
|
2023-10-19 11:28:53 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2013-09-28 11:19:08 +00:00
|
|
|
|
|
|
|
%build
|
2019-08-30 12:22:39 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-01-27 16:17:10 +00:00
|
|
|
%make_build
|
2013-09-28 11:19:08 +00:00
|
|
|
|
|
|
|
%check
|
2019-08-30 12:22:39 +00:00
|
|
|
make test
|
2013-09-28 11:19:08 +00:00
|
|
|
|
|
|
|
%install
|
2016-06-12 14:25:36 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-09-28 11:19:08 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2024-07-29 13:08:48 +00:00
|
|
|
%doc AUTHORS Changes CODE_OF_CONDUCT.md CONTRIBUTING.md examples README.md Releasing-Dancer2.md SECURITY.md
|
2019-08-30 12:22:39 +00:00
|
|
|
%license LICENSE
|
2013-09-28 11:19:08 +00:00
|
|
|
|
|
|
|
%changelog
|