Files
perl-Text-Template-Simple/perl-Text-Template-Simple.spec
2025-08-12 18:18:07 +02:00

82 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-Text-Template-Simple
#
# 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 Text-Template-Simple
Name: perl-Text-Template-Simple
Version: 0.910.0
Release: 0
# 0.91 -> normalize -> 0.910.0
%define cpan_version 0.91
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Simple text template engine
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BU/BURAK/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Text::Template::Simple) = %{version}
Provides: perl(Text::Template::Simple::Base::Compiler) = %{version}
Provides: perl(Text::Template::Simple::Base::Examine) = %{version}
Provides: perl(Text::Template::Simple::Base::Include) = %{version}
Provides: perl(Text::Template::Simple::Base::Parser) = %{version}
Provides: perl(Text::Template::Simple::Cache) = %{version}
Provides: perl(Text::Template::Simple::Cache::ID) = %{version}
Provides: perl(Text::Template::Simple::Caller) = %{version}
Provides: perl(Text::Template::Simple::Compiler) = %{version}
Provides: perl(Text::Template::Simple::Compiler::Safe) = %{version}
Provides: perl(Text::Template::Simple::Constants) = %{version}
Provides: perl(Text::Template::Simple::Dummy) = %{version}
Provides: perl(Text::Template::Simple::IO) = %{version}
Provides: perl(Text::Template::Simple::Tokenizer) = %{version}
Provides: perl(Text::Template::Simple::Util) = %{version}
%undefine __perllib_provides
Recommends: perl(Devel::Size) >= 0.770
Recommends: perl(Perl::Tidy)
Recommends: perl(Text::Table) >= 1.107
%{perl_requires}
%description
This is a simple template module. There is no extra template/mini language.
Instead, it uses Perl as the template language. Templates can be cached on
disk or inside the memory via the internal cache manager. It is also
possible to use static/dynamic includes, pass parameters to includes and
apply filters on them. Also see Text::Template::Simple::API for the full
'API' reference.
%prep
%autosetup -n %{cpan_name}-%{cpan_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 Changes TODO
%license LICENSE
%changelog