2008-08-04 02:49:02 +00:00
|
|
|
#
|
2011-11-17 15:32:14 +00:00
|
|
|
# spec file for package perl-Error
|
2008-08-04 02:49:02 +00:00
|
|
|
#
|
2020-01-29 14:52:45 +00:00
|
|
|
# Copyright (c) 2020 SUSE LINUX 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.
|
|
|
|
|
2018-11-08 09:52:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-08-04 02:49:02 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Error
|
2020-01-29 14:52:45 +00:00
|
|
|
Version: 0.17029
|
2013-06-04 11:26:15 +00:00
|
|
|
Release: 0
|
2012-02-13 14:22:30 +00:00
|
|
|
%define cpan_name Error
|
2019-08-25 08:42:52 +00:00
|
|
|
Summary: Error/exception handling in an OO-ish way
|
2018-05-24 09:55:36 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2012-02-13 14:22:30 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2018-11-08 09:52:46 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2017-08-08 08:06:23 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
2015-04-17 05:00:41 +00:00
|
|
|
Source1: cpanspec.yml
|
2013-06-04 11:26:15 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-26 16:20:10 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2018-05-24 09:55:36 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2012-02-13 14:22:30 +00:00
|
|
|
%{perl_requires}
|
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
|
|
|
|
|
|
|
%prep
|
2010-11-26 16:20:10 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-08-04 02:49:02 +00:00
|
|
|
|
|
|
|
%build
|
2018-11-08 09:52:46 +00:00
|
|
|
perl Build.PL installdirs=vendor
|
2010-11-26 16:20:10 +00:00
|
|
|
./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
|
2012-02-13 14:22:30 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-11-26 16:20:10 +00:00
|
|
|
%perl_gen_filelist
|
2008-08-04 02:49:02 +00:00
|
|
|
|
2010-11-26 16:20:10 +00:00
|
|
|
%files -f %{name}.files
|
2013-06-04 11:26:15 +00:00
|
|
|
%defattr(-,root,root,755)
|
2019-08-25 08:42:52 +00:00
|
|
|
%doc ChangeLog Changes examples README
|
2017-08-08 08:06:23 +00:00
|
|
|
%license LICENSE
|
2008-09-12 16:09:31 +00:00
|
|
|
|
2008-08-04 02:49:02 +00:00
|
|
|
%changelog
|