8
0
Files
perl-Exception-Class/perl-Exception-Class.spec
Stephan Kulow 23f9f7dc04 - update to 1.32
- Removed Test::Most dependency, which was causing a circular dependency
   chain. Reported by Burak Gursoy. RT #58889.
 - Made it possible to use Exception::Class::Base without loading
   Exception::Class. Reported by Alex Peters. RT #57269.
 - Added the ability to create light weight exceptions, which don't record a
   stack trace or any other context info (time, pid, etc.). This is done by
   setting $class->NoContextInfo to a true value for the exception class. Based
   on a patch by Graham Barr. RT #54826.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Exception-Class?expand=0&rev=16
2011-11-20 12:22:37 +00:00

89 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-Exception-Class
#
# Copyright (c) 2011 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
Name: perl-Exception-Class
%define cpan_name Exception-Class
Summary: A Module That Allows You to Declare Real Exception Classes in Perl
Version: 1.32
Release: 1
License: GPL/Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Exception-Class
Source: %{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
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(Scalar::Util)
Requires: perl(Class::Data::Inheritable) >= 0.02
Requires: perl(Devel::StackTrace) >= 1.20
%description
Exception::Class allows you to declare exception hierarchies in your modules in
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.
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 <autarch@urth.org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(0644,root,root,0755)
%doc Changes LICENSE SIGNATURE
%changelog