1
0
Files
perl-Pod-Abstract/perl-Pod-Abstract.spec

98 lines
3.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Pod-Abstract
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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-Abstract
Name: perl-Pod-Abstract
Version: 0.260.0
Release: 0
# 0.26 -> normalize -> 0.260.0
%define cpan_version 0.26
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Abstract document tree for Perl POD documents
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BL/BLILBURNE/%{cpan_name}-%{cpan_version}.tar.gz
2025-08-12 18:16:34 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(IO::String)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Pod::Parser)
BuildRequires: perl(Task::Weaken)
Requires: perl(IO::String)
Requires: perl(Module::Pluggable)
Requires: perl(Pod::Parser)
Requires: perl(Task::Weaken)
Provides: perl(Pod::Abstract) = %{version}
Provides: perl(Pod::Abstract::BuildNode) = %{version}
Provides: perl(Pod::Abstract::Filter) = %{version}
Provides: perl(Pod::Abstract::Filter::add_podcmds) = %{version}
Provides: perl(Pod::Abstract::Filter::clear_podcmds) = %{version}
Provides: perl(Pod::Abstract::Filter::cut) = %{version}
Provides: perl(Pod::Abstract::Filter::find) = %{version}
Provides: perl(Pod::Abstract::Filter::number_sections) = %{version}
Provides: perl(Pod::Abstract::Filter::overlay) = %{version}
Provides: perl(Pod::Abstract::Filter::ptree) = %{version}
Provides: perl(Pod::Abstract::Filter::sort) = %{version}
Provides: perl(Pod::Abstract::Filter::summary) = %{version}
Provides: perl(Pod::Abstract::Filter::uncut) = %{version}
Provides: perl(Pod::Abstract::Filter::unoverlay) = %{version}
Provides: perl(Pod::Abstract::Node) = %{version}
Provides: perl(Pod::Abstract::Parser) = %{version}
Provides: perl(Pod::Abstract::Path) = %{version}
Provides: perl(Pod::Abstract::Serial) = %{version}
Provides: perl(Pod::Abstract::Tree) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
'Pod::Abstract' provides a means to load a POD document without direct
reference to it's syntax, and perform manipulations on the abstract syntax
tree.
This can be used to support additional features for POD, to format output,
to compile into alternative formats, etc.
POD documents are not a natural tree, but do have a logical nesting
structure. 'Pod::Abstract' makes this explicit - '=head*' commands create
nested sections, =over and =back create nested lists, etc.
The "paf summary" command provides easy visualisation of the created tree.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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
%changelog