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

95 lines
3.4 KiB
RPMSpec

#
# spec file for package perl-Pod-Tree
#
# 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-Tree
Name: perl-Pod-Tree
Version: 1.310.0
Release: 0
# 1.31 -> normalize -> 1.310.0
%define cpan_version 1.31
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Create a static syntax tree for a POD
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Code::TidyAll)
BuildRequires: perl(HTML::Stream) >= 1.49
BuildRequires: perl(IO::String) >= 1
BuildRequires: perl(Path::Tiny) >= 0.105
BuildRequires: perl(Perl::Tidy)
BuildRequires: perl(Pod::Escapes) >= 1.02
BuildRequires: perl(Test::Compile) >= 1.2.1
BuildRequires: perl(Test::More) >= 1
BuildRequires: perl(Text::Template) >= 1
Requires: perl(Code::TidyAll)
Requires: perl(HTML::Stream) >= 1.49
Requires: perl(IO::String) >= 1
Requires: perl(Perl::Tidy)
Requires: perl(Pod::Escapes) >= 1.02
Requires: perl(Text::Template) >= 1
Provides: perl(Pod::Tree) = %{version}
Provides: perl(Pod::Tree::BitBucket) = %{version}
Provides: perl(Pod::Tree::HTML) = %{version}
Provides: perl(Pod::Tree::HTML::LinkMap) = %{version}
Provides: perl(Pod::Tree::HTML::PerlTop) = %{version}
Provides: perl(Pod::Tree::Node) = %{version}
Provides: perl(Pod::Tree::PerlBin) = %{version}
Provides: perl(Pod::Tree::PerlDist) = %{version}
Provides: perl(Pod::Tree::PerlFunc) = %{version}
Provides: perl(Pod::Tree::PerlLib) = %{version}
Provides: perl(Pod::Tree::PerlMap) = %{version}
Provides: perl(Pod::Tree::PerlPod) = %{version}
Provides: perl(Pod::Tree::PerlTop) = %{version}
Provides: perl(Pod::Tree::PerlUtil) = %{version}
Provides: perl(Pod::Tree::Pod) = %{version}
Provides: perl(Pod::Tree::StrStream) = %{version}
Provides: perl(Pod::Tree::Stream) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
'Pod::Tree' parses a POD into a static syntax tree. Applications walk the
tree to recover the structure and content of the POD. See 'Pod::Tree::Node'
for a description of the tree.
%prep
%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
%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 mod2html perl2html pod.css pods2html podtree2html README skeleton ToDo ToDo.Not
%changelog