2010-04-22 11:00:06 +00:00
|
|
|
#
|
2011-11-21 11:49:05 +00:00
|
|
|
# spec file for package perl-Text-Template
|
2010-04-22 11:00:06 +00:00
|
|
|
#
|
2022-05-11 16:34:08 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2010-04-22 11:00:06 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-15 06:40:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-04-22 11:00:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-09-07 16:43:55 +00:00
|
|
|
%define cpan_name Text-Template
|
2010-04-22 11:00:06 +00:00
|
|
|
Name: perl-Text-Template
|
2022-05-11 16:34:08 +00:00
|
|
|
Version: 1.61
|
2013-06-04 15:34:28 +00:00
|
|
|
Release: 0
|
2018-03-06 09:09:26 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-05-11 16:34:08 +00:00
|
|
|
Summary: Expand template text with embedded Perl
|
2020-07-09 13:05:08 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-02-28 14:19:43 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSCHOUT/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:07 +02:00
|
|
|
Source100: README.md
|
2010-04-22 11:00:06 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2018-05-18 18:15:20 +00:00
|
|
|
BuildRequires: perl(Test::More::UTF8)
|
2018-03-06 09:09:26 +00:00
|
|
|
BuildRequires: perl(Test::Warnings)
|
2013-06-04 15:34:28 +00:00
|
|
|
%{perl_requires}
|
2010-04-22 11:00:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a library for generating form letters, building HTML pages, or
|
2013-06-04 15:34:28 +00:00
|
|
|
filling in templates generally. A `template' is a piece of text that has
|
|
|
|
little Perl programs embedded in it here and there. When you `fill in' a
|
|
|
|
template, you evaluate the little programs and replace them with their
|
|
|
|
values.
|
|
|
|
|
|
|
|
You can store a template in a file outside your program. People can modify
|
|
|
|
the template without modifying the program. You can separate the formatting
|
|
|
|
details from the main code, and put the formatting parts of the program
|
|
|
|
into the template. That prevents code bloat and encourages functional
|
|
|
|
separation.
|
2010-04-22 11:00:06 +00:00
|
|
|
|
|
|
|
%prep
|
2021-09-07 16:43:55 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2020-07-09 13:05:08 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-04-22 11:00:06 +00:00
|
|
|
|
|
|
|
%build
|
2019-01-15 06:40:39 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-09-07 16:43:55 +00:00
|
|
|
%make_build
|
2010-04-22 11:00:06 +00:00
|
|
|
|
|
|
|
%check
|
2019-01-15 06:40:39 +00:00
|
|
|
make test
|
2010-04-22 11:00:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2013-06-04 15:34:28 +00:00
|
|
|
%perl_process_packlist
|
2010-04-22 11:00:06 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-02-28 14:19:43 +00:00
|
|
|
%doc Changes README
|
2018-02-16 08:48:53 +00:00
|
|
|
%license LICENSE
|
2010-04-22 11:00:06 +00:00
|
|
|
|
|
|
|
%changelog
|