diff --git a/Exception-Class-1.23.tar.bz2 b/Exception-Class-1.23.tar.bz2 deleted file mode 100644 index 7e2dccc..0000000 --- a/Exception-Class-1.23.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff3cb1e0e4743e6e88fe3eb64e6f5b0cd77e54e195ed0995080d835c3302b5eb -size 14647 diff --git a/Exception-Class-1.29.tar.bz2 b/Exception-Class-1.29.tar.bz2 new file mode 100644 index 0000000..30b6a4a --- /dev/null +++ b/Exception-Class-1.29.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8545d180241adedbcecf01a358e39b0430bb108b35b33b83c10af826f97c06a +size 22387 diff --git a/perl-Exception-Class.changes b/perl-Exception-Class.changes new file mode 100644 index 0000000..a6bb2ff --- /dev/null +++ b/perl-Exception-Class.changes @@ -0,0 +1,41 @@ +------------------------------------------------------------------- +Tue Jul 14 12:37:51 CEST 2009 - chris@computersalat.de + +- update to 1.29 + * Make sure that there is only one line that the toolchain can pick up + when looking for this module's $VERSION. +- 1.28 May 6, 2009 + * Removed Exception::Class::Base->do_trace and ->NoObjectRefs, both of + which have been undocumented for many years. + * Moved Exception::Class::Base to its own file, so it doesn't + overwrite the $VERSION in Exception::Class (and for general + sanity). Reported by Kirk Baucom. +- 1.27 May 4, 2009 + * The error message for an exception no longer defaults to $!. This + was a bad idea, and has bitten some people. Addresses RT #43600. + * I'm now only supporting Perl 5.8.1+. This module broke on 5.6.2 (and + 5.8.0) at some point and I don't really care enough to fix + it. Non-intrusive patches to make it work on 5.8.0 or less (again) + will be accepted. +- 1.26 Oct 25, 2008 + * No code changes, just bumped the Devel::StackTrace dependency to + 1.20. + * The changes in 1.25 exposed a bug in Devel::StackTrace which has now + been fixed. This caused HTML::Mason test failures, among other + things. Reported by Andreas Koenig. +- 1.25 Oct 21, 2008 + * The Exception::Class::Base constructor no longer looks at the + associated Devel::StackTrace object's frames. Avoiding looking at + the frames should make constructing exception objects much + faster. Instead the information based on the stack trace frames - + package(), file(), and line() - is only retrieved when it is + requested. Patch by Ruslan Zakirov. RT #40221. +- 1.24 Mar 30, 2008 + * Added a MaxArgLength class parameter to go along with the new + max_arg_length constructor param for Devel::StackTrace + objects. Patch by Ian Burrell. +- added perl-macros + o autogen filelist with perl_gen_filelist +- spec mods + o added header + o fixed deps diff --git a/perl-Exception-Class.spec b/perl-Exception-Class.spec index 2ef817c..90ea141 100644 --- a/perl-Exception-Class.spec +++ b/perl-Exception-Class.spec @@ -1,49 +1,108 @@ -%define modname Exception-Class -Name: perl-%{modname} -Version: 1.23 -Release: 1 +# +# spec file for package perl-Exception-Class +# +# Copyright (c) 2009 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 +# 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 http://bugs.opensuse.org/ +# + +# norootforbuild + +#Distribution: %dist +#Packager: %packager +#Vendor: %vendor + +Name: perl-Exception-Class +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: A Module That Allows You to Declare Real Exception Classes in Perl -Requires: perl = %{perl_version} -BuildRequires: perl perl-Class-Data-Inheritable perl-Devel-StackTrace -Requires: perl-Class-Data-Inheritable perl-Devel-StackTrace +Version: 1.29 +Release: 1 License: GPL/Artistic Group: Development/Libraries/Perl -Source: %{modname}-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/Exception-Class +Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +BuildRequires: perl(Test::More) >= 0.46 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Class::Data::Inheritable) >= 0.02 +BuildRequires: perl(Devel::StackTrace) >= 1.20 +Requires: perl = %{perl_version} +Requires: perl(Scalar::Util) +Requires: perl(Class::Data::Inheritable) >= 0.02 +Requires: perl(Devel::StackTrace) >= 1.20 +#------------------------------------------------------------------------------- %description -This module allows you to declare hierarchies of exception classes for use in -your code. It also provides a simple exception class that it uses as the -default base class for all other exceptions. +#------------------------------------------------------------------------------- +Exception::Class allows you to declare exception hierarchies in your modules in + a "Java-esque" manner. -Authors: --------- - Dave Rolsky +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. +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. + +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. + + Author: Dave Rolsky +-------------------------------------------------------------------------------- +#------------------------------------------------------------------------------- %prep -%setup -q -n %{modname}-%{version} +#------------------------------------------------------------------------------- +%setup -q -n %{cpan_name}-%{version} +#------------------------------------------------------------------------------- %build +#------------------------------------------------------------------------------- perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__make} +%check +%{__make} test + +#------------------------------------------------------------------------------- %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +#------------------------------------------------------------------------------- +%perl_make_install %perl_process_packlist +%perl_gen_filelist +#------------------------------------------------------------------------------- %clean -rm -rf %{buildroot} +#------------------------------------------------------------------------------- +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-, root, root) -%doc Changes LICENSE README -%doc %{_mandir}/man?/* -%{perl_vendorlib}/Exception -%{perl_vendorarch}/auto/Exception -/var/adm/perl-modules/%{name} +#------------------------------------------------------------------------------- +%files -f %{name}.files +#------------------------------------------------------------------------------- +# normally you only need to check for doc files +%defattr(0644,root,root,0755) +%doc Changes LICENSE SIGNATURE +#------------------------------------------------------------------------------- %changelog - +#------------------------------------------------------------------------------- * Thu Nov 01 2007 - James Oakley - 1.23-1 - Initial release