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
|
|
|
#
|
2021-05-04 11:31:39 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2021-05-04 11:31:39 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-07-14 12:44:36 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-05-04 11:31:39 +02:00
|
|
|
%define cpan_name Exception-Class
|
2009-07-14 12:44:36 +02:00
|
|
|
Name: perl-Exception-Class
|
2021-05-04 11:31:39 +02:00
|
|
|
Version: 1.45
|
2011-12-14 13:22:25 +01:00
|
|
|
Release: 0
|
2021-05-04 11:31:39 +02:00
|
|
|
Summary: Module that allows you to declare real exception classes in Perl
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-07-11 11:48:40 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 21:24:47 +02:00
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
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
|
2021-05-04 11:31:39 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-11-01 18:22:31 +01:00
|
|
|
|
|
|
|
%build
|
2021-05-04 11:31:39 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2007-11-01 18:22:31 +01:00
|
|
|
|
2009-07-14 12:44:36 +02:00
|
|
|
%check
|
2021-05-04 11:31:39 +02:00
|
|
|
make test
|
2009-07-14 12:44:36 +02:00
|
|
|
|
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
|
2021-05-04 11:31:39 +02:00
|
|
|
%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md precious.toml README.md
|
2017-07-11 11:48:40 +02:00
|
|
|
%license LICENSE
|
2007-11-01 18:22:31 +01:00
|
|
|
|
|
|
|
%changelog
|