2011-10-10 05:38:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Text-NeatTemplate
|
|
|
|
#
|
2024-03-12 17:20:22 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-10-10 05:38:51 +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-08-08 14:10:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-10 05:38:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-04 14:23:54 +00:00
|
|
|
%define cpan_name Text-NeatTemplate
|
2011-10-10 05:38:51 +00:00
|
|
|
Name: perl-Text-NeatTemplate
|
2024-03-12 17:20:22 +00:00
|
|
|
Version: 0.160.0
|
2015-04-15 09:41:29 +00:00
|
|
|
Release: 0
|
2024-03-12 17:20:22 +00:00
|
|
|
%define cpan_version 0.1600
|
2019-08-08 14:10:03 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-01-31 13:54:31 +00:00
|
|
|
Summary: Fast, middleweight template engine
|
2021-01-04 14:23:54 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-03-12 17:20:22 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RUBYKAT/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-01-07 11:41:06 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:05 +02:00
|
|
|
Source100: README.md
|
2011-10-10 05:38:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2023-01-31 13:54:31 +00:00
|
|
|
BuildRequires: perl(File::Slurper)
|
2024-03-12 17:20:22 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.28
|
2023-01-31 13:54:31 +00:00
|
|
|
BuildRequires: perl(YAML::Any)
|
|
|
|
Requires: perl(File::Slurper)
|
|
|
|
Requires: perl(YAML::Any)
|
2024-03-12 17:20:22 +00:00
|
|
|
Provides: perl(Text::NeatTemplate) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-10-10 05:38:51 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides a simple, middleweight but fast template engine, for
|
|
|
|
when you need speed rather than complex features, yet need more features
|
|
|
|
than simple variable substitution.
|
|
|
|
|
|
|
|
%prep
|
2024-03-12 17:20:22 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-10-10 05:38:51 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-12 17:20:22 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-10-10 05:38:51 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2024-03-12 17:20:22 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-10-10 05:38:51 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-08-08 14:10:03 +00:00
|
|
|
%doc Changes OldChanges README README.mkdn
|
|
|
|
%license LICENSE
|
2011-10-10 05:38:51 +00:00
|
|
|
|
|
|
|
%changelog
|