# # spec file for package perl-Catalyst-View-Component-SubInclude # # 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 Catalyst-View-Component-SubInclude Name: perl-Catalyst-View-Component-SubInclude Version: 0.100.0 Release: 0 # 0.10 -> normalize -> 0.100.0 %define cpan_version 0.10 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Use subincludes in your Catalyst views URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Catalyst::Action::RenderView) BuildRequires: perl(Catalyst::Plugin::SubRequest) BuildRequires: perl(Catalyst::Runtime) >= 5.800.140 BuildRequires: perl(Catalyst::View::TT) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Role) BuildRequires: perl(MooseX::Types) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(URI) BuildRequires: perl(namespace::clean) Requires: perl(Catalyst::Action::RenderView) Requires: perl(Catalyst::Plugin::SubRequest) Requires: perl(Catalyst::Runtime) >= 5.800.140 Requires: perl(Catalyst::View::TT) Requires: perl(LWP::UserAgent) Requires: perl(List::MoreUtils) Requires: perl(Moose) Requires: perl(Moose::Role) Requires: perl(MooseX::Types) Requires: perl(Test::More) >= 0.88 Requires: perl(URI) Requires: perl(namespace::clean) Provides: perl(Catalyst::View::Component::SubInclude) = %{version} Provides: perl(Catalyst::View::Component::SubInclude::ESI) = 0.70.300 Provides: perl(Catalyst::View::Component::SubInclude::HTTP) = 0.10.0 Provides: perl(Catalyst::View::Component::SubInclude::SSI) = %{version} Provides: perl(Catalyst::View::Component::SubInclude::SubRequest) = 0.70.300 Provides: perl(Catalyst::View::Component::SubInclude::Visit) = 0.70.300 %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN # https://rt.cpan.org/Ticket/Display.html?id=81574 BuildRequires: perl(File::Copy::Recursive) Requires: perl(File::Copy::Recursive) # MANUAL END %description 'Catalyst::View::Component::SubInclude' allows you to include content in your templates (or, more generally, somewhere in your view's 'render' processing) which comes from another action in your application. It's implemented as a Moose::Role, so using Moose in your view is required. Simply put, it's a way to include the output of a Catalyst sub-request somewhere in your page. It's built in an extensible way so that you're free to use sub-requests, Varnish ESI (http://www.catalystframework.org/calendar/2008/17) or any other sub-include plugin you might want to implement. %prep %autosetup -n %{cpan_name}-%{cpan_version} %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