File perl-Template-Caribou.spec of Package perl-Template-Caribou
#
# spec file for package perl-Template-Caribou
#
# Copyright (c) 2023 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 Template-Caribou
Name: perl-Template-Caribou
Version: 1.2.2
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Class-based HTML-centric templating system
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YANICK/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Load)
BuildRequires: perl(Exporter::Tiny)
BuildRequires: perl(List::AllUtils)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Ref::Util)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Text::MultiMarkdown)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(XML::Writer)
BuildRequires: perl(experimental)
BuildRequires: perl(parent)
Requires: perl(Class::Load)
Requires: perl(Exporter::Tiny)
Requires: perl(List::AllUtils)
Requires: perl(Module::Runtime)
Requires: perl(Moose::Exporter)
Requires: perl(Moose::Role)
Requires: perl(Moose::Util)
Requires: perl(MooseX::Role::Parameterized)
Requires: perl(Path::Tiny)
Requires: perl(Ref::Util)
Requires: perl(Text::MultiMarkdown)
Requires: perl(Try::Tiny)
Requires: perl(XML::Writer)
Requires: perl(experimental)
Requires: perl(parent)
%{perl_requires}
%description
WARNING: Codebase is alpha with extreme prejudice. Assume that bugs are
teeming and that the API is subject to change.
Template::Caribou is a Moose-based, class-centric templating system mostly
aimed at producing sgml-like outputs, mostly HTML, but also XML, SVG, etc.
It is heavily inspired by Template::Declare.
For a manual on how to use 'Template::Caribou', have a peek at
Template::Caribou::Manual.
When 'use'd within a namespace, 'Template::Caribou' will apply the role
Template::Caribou::Role to it (and auto-turn the namespace into Moose class
if it wasn't a Moose class or role already), as well as import the keywords
'template' and 'attr' (the latter from Template::Caribou::Tags), as well as
load Template::Caribou::Utils.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
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 AUTHOR_PLEDGE Changes CODE_OF_CONDUCT.md CONTRIBUTORS doap.xml examples README.mkdn
%license LICENSE
%changelog