From ddf189412294a559aae6e46f3876ebeeca6d814ea1b61131ffb5a2a9eac1f95c Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Sat, 11 May 2013 20:09:23 +0000 Subject: [PATCH] - update to 1.37: + I now recommend you use Throwable instead of this module. It has a nicer, more modern interface. + Fixed various bugs and confusion in the docs. + fixed some tests + added Class::Data::Inheritable dependency + fixed declaration of prereqs - fix build with old Test::More version - build parallel OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Exception-Class?expand=0&rev=22 --- Exception-Class-1.32.tar.gz | 3 --- Exception-Class-1.37.tar.gz | 3 +++ perl-Exception-Class.changes | 13 ++++++++++++ perl-Exception-Class.spec | 39 ++++++++++++++++++++---------------- 4 files changed, 38 insertions(+), 20 deletions(-) delete mode 100644 Exception-Class-1.32.tar.gz create mode 100644 Exception-Class-1.37.tar.gz diff --git a/Exception-Class-1.32.tar.gz b/Exception-Class-1.32.tar.gz deleted file mode 100644 index 8cb054f..0000000 --- a/Exception-Class-1.32.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bd0945929b0e2f5511eba3851265cd2ec7f1dc7412967755b5dc4b80fde9478 -size 23702 diff --git a/Exception-Class-1.37.tar.gz b/Exception-Class-1.37.tar.gz new file mode 100644 index 0000000..7556bb4 --- /dev/null +++ b/Exception-Class-1.37.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:838b93c90a0bbd73d819dc7d3d854559880120b6878976fe2ab90a141d10cedc +size 26457 diff --git a/perl-Exception-Class.changes b/perl-Exception-Class.changes index 2eba5c3..d3a54d0 100644 --- a/perl-Exception-Class.changes +++ b/perl-Exception-Class.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat May 11 20:02:50 UTC 2013 - lars@linux-schulserver.de + +- update to 1.37: + + I now recommend you use Throwable instead of this module. + It has a nicer, more modern interface. + + Fixed various bugs and confusion in the docs. + + fixed some tests + + added Class::Data::Inheritable dependency + + fixed declaration of prereqs +- fix build with old Test::More version +- build parallel + ------------------------------------------------------------------- Tue Dec 20 08:37:16 UTC 2011 - cfarrell@suse.com diff --git a/perl-Exception-Class.spec b/perl-Exception-Class.spec index 6560f1e..98be316 100644 --- a/perl-Exception-Class.spec +++ b/perl-Exception-Class.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Exception-Class # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products 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,11 +17,11 @@ Name: perl-Exception-Class -%define cpan_name Exception-Class +%define cpan_name Exception-Class Summary: A Module That Allows You to Declare Real Exception Classes in Perl License: Artistic-2.0 Group: Development/Libraries/Perl -Version: 1.32 +Version: 1.37 Release: 0 Url: http://search.cpan.org/dist/Exception-Class Source: %{cpan_name}-%{version}.tar.gz @@ -35,37 +35,42 @@ BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.46 BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 -Requires: perl(Scalar::Util) Requires: perl(Class::Data::Inheritable) >= 0.02 Requires: perl(Devel::StackTrace) >= 1.20 +Requires: perl(Scalar::Util) %description Exception::Class allows you to declare exception hierarchies in your modules in - a "Java-esque" manner. +a "Java-esque" manner. It features a simple interface allowing programmers to 'declare' exception - classes at compile time. It also has a base exception class, - Exception::Class::Base, that can be easily extended. +classes at compile time. It also has a base exception class, +Exception::Class::Base, that can be easily extended. It is designed to make structured exception handling simpler and better by - encouraging people to use hierarchies of exceptions in their applications, - as opposed to a single catch-all exception class. +encouraging people to use hierarchies of exceptions in their applications, as +opposed to a single catch-all exception class. -This module does not implement any try/catch syntax. Please see the - "OTHER EXCEPTION MODULES (try/catch syntax)" section for more information on - how to get this syntax. +This module does not implement any try/catch syntax. Please see the "OTHER +EXCEPTION MODULES (try/catch syntax)" section for more information on how to +get this syntax. You will also want to look at the documentation for Exception::Class::Base, - which is the default base class for all exception objects created - by this module. +which is the default base class for all exception objects created by this +module. - Author: Dave Rolsky %prep %setup -q -n %{cpan_name}-%{version} +# old Test::More on SLE-11: +%if 0%{?suse_version} < 1130 +sed -i "s|use Test::More;|use Test::More qw(no_plan);|g; \ + s|use Test::More 0.88;|use Test::More qw(no_plan);|g; \ + s|done_testing();|\#|g" t/*.t +%endif %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -%{__make} +%{__make} %{?_smp_mflags} %check %{__make} test @@ -81,6 +86,6 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %files -f %{name}.files # normally you only need to check for doc files %defattr(0644,root,root,0755) -%doc Changes LICENSE SIGNATURE +%doc Changes LICENSE README %changelog