diff --git a/Template-Tiny-1.14.tar.gz b/Template-Tiny-1.14.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..04c50deae6a077de38e61306735add11dcb4c953 Binary files /dev/null and b/Template-Tiny-1.14.tar.gz differ diff --git a/perl-Template-Tiny.spec b/perl-Template-Tiny.spec new file mode 100644 index 0000000000000000000000000000000000000000..7b80df26e2cdb9f91eae6947fe98144843f81a7f --- /dev/null +++ b/perl-Template-Tiny.spec @@ -0,0 +1,67 @@ +Name: perl-Template-Tiny +Version: 1.14 +Release: 1 +Summary: Template Toolkit re-implemented in as little code as possible +License: GPL-1.0-or-later or Artistic-1.0 +URL: https://metacpan.org/release/Template-Tiny +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Template-Tiny-1.14.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(Carp) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(overload) +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(vars) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Template::Tiny is a re-implementation of a partial subset of the Template +Toolkit, in as few lines of code as possible. It is intended for use in +light-usage, low-memory, or low-CPU templating situations, where you may +need to upgrade to the full feature set in the future, or if you want the +familiarity of TT-style templates. It is intended to have fully-compatible +template and stash usage, with a limited by similar Perl API. Unlike +Template Toolkit, Template::Tiny will process templates without a compile +phase (but despite this is still quicker, owing to heavy use of the Perl +regular expression engine. + +%package help +Summary: Help documents for %{name} + +%description help +This package contains all man files to use %{name} + +%prep +%setup -q -n Template-Tiny-1.14 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* + +%files help +%{_mandir}/man3/* + +%changelog +* Mon Jun 28 2021 Xu Jin - 1.14-1 +- Initial package for openEuler