2009-07-14 12:44:36 +02:00
|
|
|
#
|
2011-11-17 15:05:04 +01:00
|
|
|
# spec file for package perl-Exception-Class
|
2009-07-14 12:44:36 +02:00
|
|
|
#
|
2016-02-08 07:33:52 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-07-14 12:44:36 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Exception-Class
|
2016-02-08 07:33:52 +01:00
|
|
|
Version: 1.40
|
2011-12-14 13:22:25 +01:00
|
|
|
Release: 0
|
2015-04-16 21:24:47 +02:00
|
|
|
%define cpan_name Exception-Class
|
|
|
|
Summary: Module That Allows You to Declare Real Exception Classes in Perl
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Exception-Class/
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
2010-12-19 14:00:27 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-14 12:44:36 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
2015-04-16 21:24:47 +02:00
|
|
|
BuildRequires: perl(Devel::StackTrace) >= 2.00
|
2016-02-08 07:33:52 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2010-12-19 14:00:27 +01:00
|
|
|
Requires: perl(Class::Data::Inheritable) >= 0.02
|
2015-04-16 21:24:47 +02:00
|
|
|
Requires: perl(Devel::StackTrace) >= 2.00
|
|
|
|
%{perl_requires}
|
2007-11-01 18:22:31 +01:00
|
|
|
|
|
|
|
%description
|
2016-02-08 07:33:52 +01:00
|
|
|
*RECOMMENDATION 1*: If you are writing modern Perl code with Moose or Moo I
|
|
|
|
highly recommend using Throwable instead of this module.
|
2015-04-16 21:24:47 +02:00
|
|
|
|
2016-02-08 07:33:52 +01:00
|
|
|
*RECOMMENDATION 2*: Whether or not you use Throwable, you should use
|
|
|
|
Try::Tiny.
|
2015-04-16 21:24:47 +02:00
|
|
|
|
|
|
|
Exception::Class allows you to declare exception hierarchies in your
|
|
|
|
modules in a "Java-esque" manner.
|
2007-11-01 18:22:31 +01:00
|
|
|
|
2009-07-14 12:44:36 +02:00
|
|
|
It features a simple interface allowing programmers to 'declare' exception
|
2016-02-08 07:33:52 +01:00
|
|
|
classes at compile time. It also has a base exception class,
|
|
|
|
Exception::Class::Base, that can be easily extended.
|
2007-11-01 18:22:31 +01:00
|
|
|
|
2009-07-14 12:44:36 +02:00
|
|
|
It is designed to make structured exception handling simpler and better by
|
2015-04-16 21:24:47 +02:00
|
|
|
encouraging people to use hierarchies of exceptions in their applications,
|
|
|
|
as opposed to a single catch-all exception class.
|
2009-07-14 12:44:36 +02:00
|
|
|
|
2013-05-11 22:09:23 +02:00
|
|
|
This module does not implement any try/catch syntax. Please see the "OTHER
|
2015-04-16 21:24:47 +02:00
|
|
|
EXCEPTION MODULES (try/catch syntax)" section for more information on how
|
|
|
|
to get this syntax.
|
2009-07-14 12:44:36 +02:00
|
|
|
|
2016-02-08 07:33:52 +01:00
|
|
|
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.
|
2009-07-14 12:44:36 +02:00
|
|
|
|
2007-11-01 18:22:31 +01:00
|
|
|
%prep
|
2009-07-14 12:44:36 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-11-01 18:22:31 +01:00
|
|
|
|
|
|
|
%build
|
2015-04-16 21:24:47 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
2013-05-11 22:09:23 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-11-01 18:22:31 +01:00
|
|
|
|
2009-07-14 12:44:36 +02:00
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
2007-11-01 18:22:31 +01:00
|
|
|
%install
|
2009-07-14 12:44:36 +02:00
|
|
|
%perl_make_install
|
2007-11-01 18:22:31 +01:00
|
|
|
%perl_process_packlist
|
2009-07-14 12:44:36 +02:00
|
|
|
%perl_gen_filelist
|
2007-11-01 18:22:31 +01:00
|
|
|
|
2009-07-14 12:44:36 +02:00
|
|
|
%files -f %{name}.files
|
2015-04-16 21:24:47 +02:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes LICENSE README.md
|
2007-11-01 18:22:31 +01:00
|
|
|
|
|
|
|
%changelog
|