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
|
|
|
#
|
2015-04-17 05:00:41 +00:00
|
|
|
# Copyright (c) 2015 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.
|
|
|
|
|
2008-08-04 02:49:02 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Error
|
2015-06-10 10:43:53 +00:00
|
|
|
Version: 0.17024
|
2013-06-04 11:26:15 +00:00
|
|
|
Release: 0
|
2012-02-13 14:22:30 +00:00
|
|
|
%define cpan_name Error
|
|
|
|
Summary: Error/exception handling in an OO-ish way
|
2013-06-04 11:26:15 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2012-02-13 14:22:30 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-04 11:26:15 +00:00
|
|
|
Url: http://search.cpan.org/dist/Error/
|
2015-04-17 05:00:41 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
|
|
|
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
|
2015-04-17 05:00:41 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280801
|
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
|
2013-06-04 11:26:15 +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)
|
2014-02-09 14:43:20 +00:00
|
|
|
%doc ChangeLog examples LICENSE README scripts
|
2008-09-12 16:09:31 +00:00
|
|
|
|
2008-08-04 02:49:02 +00:00
|
|
|
%changelog
|