8
0
Files
perl-Tree-DAG_Node/perl-Tree-DAG_Node.spec

76 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Tree-DAG_Node
#
# Copyright (c) 2025 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 Tree-DAG_Node
Name: perl-Tree-DAG_Node
Accepting request 1279810 from devel:languages:perl:autoupdate - updated to 1.350.0 (1.35) see /usr/share/doc/packages/perl-Tree-DAG_Node/Changelog.ini [V 1.35] Date=2025-05-12T17:00:00 Comments= <<EOT - Change sub hashref2string() line 726 so it does not generate an error or warning when the node or node name is '' (empty string), undef or 0 (zero). - Change test data so that when stringifying a tree, node names without attributes are output as (e.g.) 'lexeme: Attributes{}' rather than as just 'lexeme'. This was alleged to have been done as per the last dot point under v 1.34 below, but was not done properly. - This last point also affects the related module Data::RenderAsTree, which ships with a range of test programs and sample scripts which futher exercise these features. The point of these latter samples is so you can use them without having to fiddle about removing the test code in the corresponding test scripts. EOT [V 1.34] Date=2025-04-23T17:01:00 Comments= <<EOT - Thanx to Shawn Laffan for reporting a problem with line-endings in files read and written, by both Tree::DAG_Node and t/read.tree.t, when he tests under Strawberry Perl. - The 2 test files t/tree.with*.txt ship as ISO-8859-1 while t/tree.utf8.attributes.txt ships as UTF-8. So... - Don't explicitly use UTF-8 encoding in DAG_Node.pm's sub read_tree(). Rather, use a regexp to standardize line endings after reading. Likewise, in t/read.tree.t, do the same. - I have un-commented the 2 extra tests at the end of t/read.tree.t. Specifically, line 50 was 'for (qw/utf8/)# with without/)'. It now says 'for (qw/utf8 with without/)' - Reformat test data files t/tree.*.attributes.txt This was done with the new files share/read.write.tree.(pl, sh). And it was done because some of the test data files had been written by old code with slightly different indenting. - Add a new test data file, t/metag.cooked.tree.txt It's a copy of MarpaX::Grammar::Parser's share/metag.cooked.tree. The test program t/read.tree.t was edited to include this new file. - Patch tree::DAG_Node.format_node() to output 'Attributes: {}' and not just 'Attributes:' when the user does not want attributes reported. This makes the code match the sample trees shipped in t/. EOT OBS-URL: https://build.opensuse.org/request/show/1279810 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=33
2025-05-24 16:13:45 +00:00
Version: 1.350.0
Accepting request 177506 from home:coolo:update-perl - updated to 1.11 - Correct the date (2012 -> 2013) in this file used for V 1.10. - Correct the text at L<Tree::DAG_Node/AUTHOR> so it refers to Artistic License 2.0, which now matches what it says in Build.PL and Makefile.PL. Resolves RT#83088. - Change t/pod.t to look for Test::Pod 1.45, but comment out Test::Pod in Build.PL and Makefile.PL. This means Test::Pod is not used at all if it is not installed. As per RT#83077. - For pre-reqs such as strict, warnings, etc, which ship with Perl, set the version # to 0. Reported as RT#80663 by Father Chrysostomos for Tree::DAG_Node. - New maintainer: Ron Savage - Pre-emptive apologies for any changes which are not back-compat. No such problems are expected, but the introduction of new methods may disconcert some viewers. - Fix RT#78858, reported by Gene Boggs. Audit code for similar problems. - Fix RT#79506. reported by Ron Savage. - Rename ChangeLog to CHANGES, and add Changelog.ini. - Replace all uses of cyclicity_fault() and Carp::croak with die. - Remove unused methods: decommission_root(), cyclicity_allowed(), cyclicity_fault(), inaugurate_root(), no_cyclicity() and _update_links(). OK - cyclicity_fault() was called once. It just died. - Add methods: format_node(), hashref2string(), is_root(), node2string(), tree2string(). tree2string($opts, $node) - unlike draw_ascii_tree() - can optionally print the tree starting at any node. Override format_node(), hashref2string(), and node2string() if desired. - Reformat the POD big-time. - Add Build.PL. - Re-write Makefile.PL. - Remove use vars(@ISA $Debug $VERSION). Replace latter 2 with 'our ...'. - Rename t/00_about_verbose.t to t/about.perl.t. - Add scripts/cut.and.paste.subtrees.pl. Warning: Some trees get into an infinite loop. - Add t/cut.and.paste.subtrees.t. Warning: Some trees get into an infinite loop. - Document the options (discouraged by Sean) supported in the call to new($hashref). OBS-URL: https://build.opensuse.org/request/show/177506 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=15
2013-06-04 15:35:07 +00:00
Release: 0
Accepting request 1279810 from devel:languages:perl:autoupdate - updated to 1.350.0 (1.35) see /usr/share/doc/packages/perl-Tree-DAG_Node/Changelog.ini [V 1.35] Date=2025-05-12T17:00:00 Comments= <<EOT - Change sub hashref2string() line 726 so it does not generate an error or warning when the node or node name is '' (empty string), undef or 0 (zero). - Change test data so that when stringifying a tree, node names without attributes are output as (e.g.) 'lexeme: Attributes{}' rather than as just 'lexeme'. This was alleged to have been done as per the last dot point under v 1.34 below, but was not done properly. - This last point also affects the related module Data::RenderAsTree, which ships with a range of test programs and sample scripts which futher exercise these features. The point of these latter samples is so you can use them without having to fiddle about removing the test code in the corresponding test scripts. EOT [V 1.34] Date=2025-04-23T17:01:00 Comments= <<EOT - Thanx to Shawn Laffan for reporting a problem with line-endings in files read and written, by both Tree::DAG_Node and t/read.tree.t, when he tests under Strawberry Perl. - The 2 test files t/tree.with*.txt ship as ISO-8859-1 while t/tree.utf8.attributes.txt ships as UTF-8. So... - Don't explicitly use UTF-8 encoding in DAG_Node.pm's sub read_tree(). Rather, use a regexp to standardize line endings after reading. Likewise, in t/read.tree.t, do the same. - I have un-commented the 2 extra tests at the end of t/read.tree.t. Specifically, line 50 was 'for (qw/utf8/)# with without/)'. It now says 'for (qw/utf8 with without/)' - Reformat test data files t/tree.*.attributes.txt This was done with the new files share/read.write.tree.(pl, sh). And it was done because some of the test data files had been written by old code with slightly different indenting. - Add a new test data file, t/metag.cooked.tree.txt It's a copy of MarpaX::Grammar::Parser's share/metag.cooked.tree. The test program t/read.tree.t was edited to include this new file. - Patch tree::DAG_Node.format_node() to output 'Attributes: {}' and not just 'Attributes:' when the user does not want attributes reported. This makes the code match the sample trees shipped in t/. EOT OBS-URL: https://build.opensuse.org/request/show/1279810 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=33
2025-05-24 16:13:45 +00:00
# 1.35 -> normalize -> 1.350.0
%define cpan_version 1.35
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: An N-ary tree
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{cpan_version}.tgz
Source1: cpanspec.yml
2025-08-12 18:18:16 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.7
BuildRequires: perl(File::Slurper) >= 0.14.0
BuildRequires: perl(File::Spec) >= 3.4
BuildRequires: perl(File::Temp) >= 0.19
BuildRequires: perl(Test::More) >= 1.001002
Requires: perl(ExtUtils::MakeMaker) >= 7.7
Requires: perl(File::Slurper) >= 0.14.0
Provides: perl(Tree::DAG_Node) = %{version}
%undefine __perllib_provides
Accepting request 177506 from home:coolo:update-perl - updated to 1.11 - Correct the date (2012 -> 2013) in this file used for V 1.10. - Correct the text at L<Tree::DAG_Node/AUTHOR> so it refers to Artistic License 2.0, which now matches what it says in Build.PL and Makefile.PL. Resolves RT#83088. - Change t/pod.t to look for Test::Pod 1.45, but comment out Test::Pod in Build.PL and Makefile.PL. This means Test::Pod is not used at all if it is not installed. As per RT#83077. - For pre-reqs such as strict, warnings, etc, which ship with Perl, set the version # to 0. Reported as RT#80663 by Father Chrysostomos for Tree::DAG_Node. - New maintainer: Ron Savage - Pre-emptive apologies for any changes which are not back-compat. No such problems are expected, but the introduction of new methods may disconcert some viewers. - Fix RT#78858, reported by Gene Boggs. Audit code for similar problems. - Fix RT#79506. reported by Ron Savage. - Rename ChangeLog to CHANGES, and add Changelog.ini. - Replace all uses of cyclicity_fault() and Carp::croak with die. - Remove unused methods: decommission_root(), cyclicity_allowed(), cyclicity_fault(), inaugurate_root(), no_cyclicity() and _update_links(). OK - cyclicity_fault() was called once. It just died. - Add methods: format_node(), hashref2string(), is_root(), node2string(), tree2string(). tree2string($opts, $node) - unlike draw_ascii_tree() - can optionally print the tree starting at any node. Override format_node(), hashref2string(), and node2string() if desired. - Reformat the POD big-time. - Add Build.PL. - Re-write Makefile.PL. - Remove use vars(@ISA $Debug $VERSION). Replace latter 2 with 'our ...'. - Rename t/00_about_verbose.t to t/about.perl.t. - Add scripts/cut.and.paste.subtrees.pl. Warning: Some trees get into an infinite loop. - Add t/cut.and.paste.subtrees.t. Warning: Some trees get into an infinite loop. - Document the options (discouraged by Sean) supported in the call to new($hashref). OBS-URL: https://build.opensuse.org/request/show/177506 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=15
2013-06-04 15:35:07 +00:00
%{perl_requires}
%description
Accepting request 177506 from home:coolo:update-perl - updated to 1.11 - Correct the date (2012 -> 2013) in this file used for V 1.10. - Correct the text at L<Tree::DAG_Node/AUTHOR> so it refers to Artistic License 2.0, which now matches what it says in Build.PL and Makefile.PL. Resolves RT#83088. - Change t/pod.t to look for Test::Pod 1.45, but comment out Test::Pod in Build.PL and Makefile.PL. This means Test::Pod is not used at all if it is not installed. As per RT#83077. - For pre-reqs such as strict, warnings, etc, which ship with Perl, set the version # to 0. Reported as RT#80663 by Father Chrysostomos for Tree::DAG_Node. - New maintainer: Ron Savage - Pre-emptive apologies for any changes which are not back-compat. No such problems are expected, but the introduction of new methods may disconcert some viewers. - Fix RT#78858, reported by Gene Boggs. Audit code for similar problems. - Fix RT#79506. reported by Ron Savage. - Rename ChangeLog to CHANGES, and add Changelog.ini. - Replace all uses of cyclicity_fault() and Carp::croak with die. - Remove unused methods: decommission_root(), cyclicity_allowed(), cyclicity_fault(), inaugurate_root(), no_cyclicity() and _update_links(). OK - cyclicity_fault() was called once. It just died. - Add methods: format_node(), hashref2string(), is_root(), node2string(), tree2string(). tree2string($opts, $node) - unlike draw_ascii_tree() - can optionally print the tree starting at any node. Override format_node(), hashref2string(), and node2string() if desired. - Reformat the POD big-time. - Add Build.PL. - Re-write Makefile.PL. - Remove use vars(@ISA $Debug $VERSION). Replace latter 2 with 'our ...'. - Rename t/00_about_verbose.t to t/about.perl.t. - Add scripts/cut.and.paste.subtrees.pl. Warning: Some trees get into an infinite loop. - Add t/cut.and.paste.subtrees.t. Warning: Some trees get into an infinite loop. - Document the options (discouraged by Sean) supported in the call to new($hashref). OBS-URL: https://build.opensuse.org/request/show/177506 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=15
2013-06-04 15:35:07 +00:00
This class encapsulates/makes/manipulates objects that represent nodes in a
tree structure. The tree structure is not an object itself, but is emergent
from the linkages you create between nodes. This class provides the methods
for making linkages that can be used to build up a tree, while preventing
you from ever making any kinds of linkages which are not allowed in a tree
(such as having a node be its own mother or ancestor, or having a node have
two mothers).
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
Accepting request 1279810 from devel:languages:perl:autoupdate - updated to 1.350.0 (1.35) see /usr/share/doc/packages/perl-Tree-DAG_Node/Changelog.ini [V 1.35] Date=2025-05-12T17:00:00 Comments= <<EOT - Change sub hashref2string() line 726 so it does not generate an error or warning when the node or node name is '' (empty string), undef or 0 (zero). - Change test data so that when stringifying a tree, node names without attributes are output as (e.g.) 'lexeme: Attributes{}' rather than as just 'lexeme'. This was alleged to have been done as per the last dot point under v 1.34 below, but was not done properly. - This last point also affects the related module Data::RenderAsTree, which ships with a range of test programs and sample scripts which futher exercise these features. The point of these latter samples is so you can use them without having to fiddle about removing the test code in the corresponding test scripts. EOT [V 1.34] Date=2025-04-23T17:01:00 Comments= <<EOT - Thanx to Shawn Laffan for reporting a problem with line-endings in files read and written, by both Tree::DAG_Node and t/read.tree.t, when he tests under Strawberry Perl. - The 2 test files t/tree.with*.txt ship as ISO-8859-1 while t/tree.utf8.attributes.txt ships as UTF-8. So... - Don't explicitly use UTF-8 encoding in DAG_Node.pm's sub read_tree(). Rather, use a regexp to standardize line endings after reading. Likewise, in t/read.tree.t, do the same. - I have un-commented the 2 extra tests at the end of t/read.tree.t. Specifically, line 50 was 'for (qw/utf8/)# with without/)'. It now says 'for (qw/utf8 with without/)' - Reformat test data files t/tree.*.attributes.txt This was done with the new files share/read.write.tree.(pl, sh). And it was done because some of the test data files had been written by old code with slightly different indenting. - Add a new test data file, t/metag.cooked.tree.txt It's a copy of MarpaX::Grammar::Parser's share/metag.cooked.tree. The test program t/read.tree.t was edited to include this new file. - Patch tree::DAG_Node.format_node() to output 'Attributes: {}' and not just 'Attributes:' when the user does not want attributes reported. This makes the code match the sample trees shipped in t/. EOT OBS-URL: https://build.opensuse.org/request/show/1279810 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=33
2025-05-24 16:13:45 +00:00
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
Accepting request 177506 from home:coolo:update-perl - updated to 1.11 - Correct the date (2012 -> 2013) in this file used for V 1.10. - Correct the text at L<Tree::DAG_Node/AUTHOR> so it refers to Artistic License 2.0, which now matches what it says in Build.PL and Makefile.PL. Resolves RT#83088. - Change t/pod.t to look for Test::Pod 1.45, but comment out Test::Pod in Build.PL and Makefile.PL. This means Test::Pod is not used at all if it is not installed. As per RT#83077. - For pre-reqs such as strict, warnings, etc, which ship with Perl, set the version # to 0. Reported as RT#80663 by Father Chrysostomos for Tree::DAG_Node. - New maintainer: Ron Savage - Pre-emptive apologies for any changes which are not back-compat. No such problems are expected, but the introduction of new methods may disconcert some viewers. - Fix RT#78858, reported by Gene Boggs. Audit code for similar problems. - Fix RT#79506. reported by Ron Savage. - Rename ChangeLog to CHANGES, and add Changelog.ini. - Replace all uses of cyclicity_fault() and Carp::croak with die. - Remove unused methods: decommission_root(), cyclicity_allowed(), cyclicity_fault(), inaugurate_root(), no_cyclicity() and _update_links(). OK - cyclicity_fault() was called once. It just died. - Add methods: format_node(), hashref2string(), is_root(), node2string(), tree2string(). tree2string($opts, $node) - unlike draw_ascii_tree() - can optionally print the tree starting at any node. Override format_node(), hashref2string(), and node2string() if desired. - Reformat the POD big-time. - Add Build.PL. - Re-write Makefile.PL. - Remove use vars(@ISA $Debug $VERSION). Replace latter 2 with 'our ...'. - Rename t/00_about_verbose.t to t/about.perl.t. - Add scripts/cut.and.paste.subtrees.pl. Warning: Some trees get into an infinite loop. - Add t/cut.and.paste.subtrees.t. Warning: Some trees get into an infinite loop. - Document the options (discouraged by Sean) supported in the call to new($hashref). OBS-URL: https://build.opensuse.org/request/show/177506 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-DAG_Node?expand=0&rev=15
2013-06-04 15:35:07 +00:00
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README SECURITY.md
%license LICENSE
%changelog