Files
perl-Pod-Loom/perl-Pod-Loom.spec
2025-08-12 18:16:36 +02:00

96 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-Pod-Loom
#
# 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 Pod-Loom
Name: perl-Pod-Loom
Version: 0.80.0
Release: 0
# 0.08 -> normalize -> 0.80.0
%define cpan_version 0.08
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Weave pseudo-POD into real POD
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Moose) >= 0.65
BuildRequires: perl(Moose::Role)
BuildRequires: perl(PPI)
BuildRequires: perl(Pod::Eventual)
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Moose) >= 0.65
Requires: perl(Moose::Role)
Requires: perl(PPI)
Requires: perl(Pod::Eventual)
Requires: perl(String::RewritePrefix)
Provides: perl(Pod::Loom) = %{version}
Provides: perl(Pod::Loom::Parser) = 0.50.0
Provides: perl(Pod::Loom::Role::Extender) = 0.30.0
Provides: perl(Pod::Loom::Template) = 0.70.0
Provides: perl(Pod::Loom::Template::Default) = 0.50.0
Provides: perl(Pod::Loom::Template::Identity) = 0.30.0
Provides: perl(Pod::Loom::_EventCounter)
%undefine __perllib_provides
%{perl_requires}
%description
Pod::Loom extracts all the POD sections from Perl code, passes the POD to a
template that may reformat it in various ways, and then returns a copy of
the code with the reformatted POD at the end.
A template may convert non-standard POD commands like '=method' and '=attr'
into standard POD, reorder sections, and generally do whatever it likes to
the POD.
The document being reformatted can specify the template to use with a line
like this:
=for Pod::Loom-template TEMPLATE_NAME
Otherwise, you can specify the template in the Pod::Loom constructor:
$loom = Pod::Loom->new(template => TEMPLATE_NAME);
TEMPLATE_NAME is automatically prefixed with 'Pod::Loom::Template::' to
form a class name. If you want to use a template outside that namespace,
prefix the class name with '=' to indicate that.
%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 README
%license LICENSE
%changelog