Files
perl-Forest/perl-Forest.spec
2025-08-12 18:14:16 +02:00

92 lines
3.4 KiB
RPMSpec

#
# spec file for package perl-Forest
#
# 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 Forest
Name: perl-Forest
Version: 0.100.0
Release: 0
# 0.10 -> normalize -> 0.100.0
%define cpan_version 0.10
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Collection of n-ary tree related modules
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/ST/STEVAN/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(Moose) >= 2.0000
BuildRequires: perl(MooseX::Clone) >= 0.05
BuildRequires: perl(Path::Class)
BuildRequires: perl(Test::Exception)
Requires: perl(Moose) >= 2.0000
Requires: perl(MooseX::Clone) >= 0.05
Provides: perl(Forest) = %{version}
Provides: perl(Forest::Tree) = %{version}
Provides: perl(Forest::Tree::Builder) = %{version}
Provides: perl(Forest::Tree::Builder::Callback) = %{version}
Provides: perl(Forest::Tree::Builder::SimpleTextFile) = %{version}
Provides: perl(Forest::Tree::Constructor) = %{version}
Provides: perl(Forest::Tree::Indexer) = %{version}
Provides: perl(Forest::Tree::Indexer::SimpleUIDIndexer) = %{version}
Provides: perl(Forest::Tree::Loader) = %{version}
Provides: perl(Forest::Tree::Loader::SimpleUIDLoader) = %{version}
Provides: perl(Forest::Tree::Pure) = %{version}
Provides: perl(Forest::Tree::Reader) = %{version}
Provides: perl(Forest::Tree::Reader::SimpleTextFile) = %{version}
Provides: perl(Forest::Tree::Roles::HasNodeFormatter) = %{version}
Provides: perl(Forest::Tree::Roles::JSONable) = %{version}
Provides: perl(Forest::Tree::Roles::LoadWithMetaData) = %{version}
Provides: perl(Forest::Tree::Roles::MetaData) = %{version}
Provides: perl(Forest::Tree::Writer) = %{version}
Provides: perl(Forest::Tree::Writer::ASCIIWithBranches) = %{version}
Provides: perl(Forest::Tree::Writer::SimpleASCII) = %{version}
Provides: perl(Forest::Tree::Writer::SimpleHTML) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Forest is intended to be a replacement for the Tree::Simple family of
modules, and fixes many of the issues that have always bothered me about
them. It is by no means a complete replacement yet, but should eventually
grow to become that.
For more information please refer to the individual module documentation,
starting with Forest::Tree.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 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