Files
perl-Tatsumaki/perl-Tatsumaki.spec
2025-08-12 18:17:29 +02:00

101 lines
3.3 KiB
RPMSpec

#
# spec file for package perl-Tatsumaki
#
# 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 Tatsumaki
Name: perl-Tatsumaki
Version: 0.101.300
Release: 0
%define cpan_version 0.1013
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Non-blocking web framework based on Plack and AnyEvent
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Any::Moose)
BuildRequires: perl(AnyEvent) >= 5.2
BuildRequires: perl(AnyEvent::HTTP)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(JSON)
BuildRequires: perl(Mouse) >= 0.34
BuildRequires: perl(Plack) >= 0.9913
BuildRequires: perl(Text::MicroTemplate)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Twiggy)
BuildRequires: perl(parent)
Requires: perl(Any::Moose)
Requires: perl(AnyEvent) >= 5.2
Requires: perl(AnyEvent::HTTP)
Requires: perl(JSON)
Requires: perl(Mouse) >= 0.34
Requires: perl(Plack) >= 0.9913
Requires: perl(Text::MicroTemplate)
Requires: perl(Try::Tiny)
Requires: perl(Twiggy)
Requires: perl(parent)
Provides: perl(Tatsumaki) = %{version}
Provides: perl(Tatsumaki::Application)
Provides: perl(Tatsumaki::Error)
Provides: perl(Tatsumaki::Error::ClientDisconnect)
Provides: perl(Tatsumaki::Error::HTTP)
Provides: perl(Tatsumaki::HTTPClient)
Provides: perl(Tatsumaki::Handler)
Provides: perl(Tatsumaki::MessageQueue)
Provides: perl(Tatsumaki::Request)
Provides: perl(Tatsumaki::Response)
Provides: perl(Tatsumaki::Server)
Provides: perl(Tatsumaki::Service)
Provides: perl(Tatsumaki::Template)
Provides: perl(Tatsumaki::Template::Micro)
%undefine __perllib_provides
%{perl_requires}
%description
Tatsumaki is a toy port of Tornado for Perl using Plack (with non-blocking
extensions) and AnyEvent.
It allows you to write a web application that does a immediate response
with template rendering, IO-bound delayed response (like fetching third
party API or XML feeds), server push streaming and long-poll Comet in a
clean unified API.
%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_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog