- updated to 1.31

see /usr/share/doc/packages/perl-Tree-Simple/Changelog.ini

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-Simple?expand=0&rev=8
This commit is contained in:
Stephan Kulow
2017-10-08 08:25:18 +00:00
committed by Git OBS Bridge
parent 97b34f78f1
commit ba7e56a037
5 changed files with 91 additions and 63 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a9cdfc4131401346fff9a933fc525b7292ca8661940db2f452c637038e359e1
size 44597

3
Tree-Simple-1.31.tgz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1745edd71b516cd570676fc1d63e1baa6019cd6132a37446b064592557500cc9
size 49287

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Oct 8 08:18:55 UTC 2017 - coolo@suse.com
- updated to 1.31
see /usr/share/doc/packages/perl-Tree-Simple/Changelog.ini
-------------------------------------------------------------------
Mon Oct 14 17:45:49 UTC 2013 - lars@linux-schulserver.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Tree-Simple
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,84 +17,78 @@
Name: perl-Tree-Simple
%define real_name Tree-Simple
Summary: A simple tree object t
License: Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/perldoc?Tree::Simple
Version: 1.22
Version: 1.31
Release: 0
Source: %{real_name}-%{version}.tar.gz
BuildRequires: perl-Test-Exception
BuildRequires: perl-Test-Memory-Cycle
BuildRequires: perl-Test-Pod
BuildRequires: perl-Test-Pod-Coverage
BuildRequires: perl-macros
%define cpan_name Tree-Simple
Summary: Simple Tree Object
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Tree-Simple/
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{version}.tgz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Exception) >= 0.150000
BuildRequires: perl(Test::More) >= 1.001002
%{perl_requires}
%description
This module in an fully object-oriented implementation of a simple n-ary tree.
It is built upon the concept of parent-child relationships, so therefore every
Tree::Simple object has both a parent and a set of children (who themselves may
have children, and so on). Every Tree::Simple object also has siblings, as they
are just the children of their immediate parent.
This module in an fully object-oriented implementation of a simple n-ary
tree. It is built upon the concept of parent-child relationships, so
therefore every *Tree::Simple* object has both a parent and a set of
children (who themselves may have children, and so on). Every
*Tree::Simple* object also has siblings, as they are just the children of
their immediate parent.
It is can be used to model hierarchal information such as a file-system, the
organizational structure of a company, an object inheritance hierarchy,
versioned files from a version control system or even an abstract syntax tree
for use in a parser. It makes no assumptions as to your intended usage, but
instead simply provides the structure and means of accessing and traversing
said structure.
It is can be used to model hierarchal information such as a file-system,
the organizational structure of a company, an object inheritance hierarchy,
versioned files from a version control system or even an abstract syntax
tree for use in a parser. It makes no assumptions as to your intended
usage, but instead simply provides the structure and means of accessing and
traversing said structure.
This module uses exceptions and a minimal Design By Contract style. All method
arguments are required unless specified in the documentation, if a required
argument is not defined an exception will usually be thrown. Many arguments are
also required to be of a specific type, for instance the $parent argument to
the constructor must be a Tree::Simple object or an object derived from
Tree::Simple, otherwise an exception is thrown. This may seems harsh to some,
but this allows me to have the confidence that my code works as I intend, and
for you to enjoy the same level of confidence when using this module. Note
however that this module does not use any Exception or Error module, the
exceptions are just strings thrown with die.
I consider this module to be production stable, it is based on a module which
has been in use on a few production systems for approx. 2 years now with no
issue. The only difference is that the code has been cleaned up a bit, comments
added and the thorough tests written for its public release. I am confident it
behaves as I would expect it to, and is (as far as I know) bug-free. I have not
stress-tested it under extreme duress, but I don't so much intend for it to be
used in that type of situation. If this module cannot keep up with your Tree
needs, i suggest switching to one of the modules listed in the "OTHER TREE
MODULES" section below.
Authors:
--------
Stevan Little, <stevan@iinteractive.com>
Rob Kinyon, <rob@iinteractive.com>
This module uses exceptions and a minimal Design By Contract style. All
method arguments are required unless specified in the documentation, if a
required argument is not defined an exception will usually be thrown. Many
arguments are also required to be of a specific type, for instance the
'$parent' argument to the constructor *must* be a *Tree::Simple* object or
an object derived from *Tree::Simple*, otherwise an exception is thrown.
This may seems harsh to some, but this allows me to have the confidence
that my code works as I intend, and for you to enjoy the same level of
confidence when using this module. Note however that this module does not
use any Exception or Error module, the exceptions are just strings thrown
with 'die'.
I consider this module to be production stable, it is based on a module
which has been in use on a few production systems for approx. 2 years now
with no issue. The only difference is that the code has been cleaned up a
bit, comments added and the thorough tests written for its public release.
I am confident it behaves as I would expect it to, and is (as far as I
know) bug-free. I have not stress-tested it under extreme duress, but I do
not so much intend for it to be used in that type of situation. If this
module cannot keep up with your Tree needs, i suggest switching to one of
the modules listed in the OTHER TREE MODULES section below.
%prep
%setup -n %{real_name}-%{version}
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
chmod -x %buildroot/%perl_vendorlib/Tree/*.pm
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog