# # spec file for package perl-Text-Xslate # # Copyright (c) 2021 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 Text-Xslate Name: perl-Text-Xslate Version: 3.5.9 Release: 0 Summary: Scalable template engine for Perl5 License: Artistic-1.0 OR GPL-1.0-or-later URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SK/SKAJI/%{cpan_name}-v%{version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Data::MessagePack) >= 0.38 BuildRequires: perl(Devel::PPPort) >= 3.33 BuildRequires: perl(Encode) >= 2.26 BuildRequires: perl(File::Copy::Recursive) BuildRequires: perl(File::Path) >= 2.070000 BuildRequires: perl(Module::Build) >= 0.400500 BuildRequires: perl(Module::Build::XSUtil) BuildRequires: perl(Mouse) >= v2.5.0 BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Test::Requires) BuildRequires: perl(parent) >= 0.221 BuildRequires: perl(version) >= 0.9913 Requires: perl(Data::MessagePack) >= 0.38 Requires: perl(Encode) >= 2.26 Requires: perl(Mouse) >= v2.5.0 Requires: perl(parent) >= 0.221 %{perl_requires} %description *Xslate* is a template engine, tuned for persistent applications, safe as an HTML generator, and with rich features. There are a lot of template engines in CPAN, for example Template-Toolkit, Text::MicroTemplate, HTML::Template, and so on, but all of them have some weak points: a full-featured template engine may be slow, while a fast template engine may be too simple to use. This is why Xslate is developed, which is the best template engine for web applications. The concept of Xslate is strongly influenced by Text::MicroTemplate and Template-Toolkit 2, but the central philosophy of Xslate is different from them. That is, the philosophy is *sandboxing* that the template logic should not have no access outside the template beyond your permission. Other remarkable features are as follows: %prep %autosetup -n %{cpan_name}-v%{version} %build perl Build.PL installdirs=vendor optimize="%{optflags}" ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %doc Changes example HACKING minil.toml README.md %license LICENSE %changelog