2008-08-04 02:49:02 +00:00
|
|
|
#
|
2010-11-26 16:20:10 +00:00
|
|
|
# spec file for package perl-Error (Version 0.17016)
|
2008-08-04 02:49:02 +00:00
|
|
|
#
|
2010-01-12 12:53:29 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-04 02:49:02 +00:00
|
|
|
#
|
2008-09-12 16:09:31 +00: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.
|
|
|
|
|
2008-08-04 02:49:02 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-11-26 16:20:10 +00:00
|
|
|
%bcond_with pod
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
Name: perl-Error
|
2010-11-26 16:20:10 +00:00
|
|
|
%define cpan_name Error
|
|
|
|
Summary: Error/exception handling in an OO-ish way
|
|
|
|
Version: 0.17016
|
2011-11-11 11:17:36 +00:00
|
|
|
Release: 7
|
2010-11-26 16:20:10 +00:00
|
|
|
License: GPL+ or Artistic
|
2008-08-04 02:49:02 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-11-26 16:20:10 +00:00
|
|
|
Url: http://search.cpan.org/dist/Error/
|
|
|
|
#Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-0.17016.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
2008-08-04 02:49:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:04:16 +00:00
|
|
|
%{perl_requires}
|
2010-11-26 16:20:10 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%if %{with pod}
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
Requires: perl(warnings)
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-26 16:20:10 +00:00
|
|
|
The 'Error' package provides two interfaces. Firstly 'Error' provides a
|
|
|
|
procedural interface to exception handling. Secondly 'Error' is a base
|
|
|
|
class for errors/exceptions that can either be thrown, for subsequent
|
|
|
|
catch, or can simply be recorded.
|
2008-08-04 02:49:02 +00:00
|
|
|
|
2010-11-26 16:20:10 +00:00
|
|
|
Errors in the class 'Error' should not be thrown directly, but the user
|
|
|
|
should throw errors from a sub-class of 'Error'.
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Graham Barr <gbarr@pobox.com>
|
|
|
|
|
|
|
|
%prep
|
2010-11-26 16:20:10 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
%build
|
2010-11-26 16:20:10 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
%check
|
2010-11-26 16:20:10 +00:00
|
|
|
./Build test
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
%install
|
2010-11-26 16:20:10 +00:00
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
%perl_gen_filelist
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
%clean
|
2010-11-26 16:20:10 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2008-08-04 02:49:02 +00:00
|
|
|
|
2010-11-26 16:20:10 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ChangeLog examples README
|
2008-09-12 16:09:31 +00:00
|
|
|
|
2008-08-04 02:49:02 +00:00
|
|
|
%changelog
|