8
0

- updated to 0.03

- minl migrate
  - Re-packaging without auto_install().  (ANDK)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-ErrorHandler?expand=0&rev=13
This commit is contained in:
Stephan Kulow
2013-11-26 14:40:37 +00:00
committed by Git OBS Bridge
parent 8c9d1b513e
commit a4186bef4b
4 changed files with 40 additions and 31 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:488dd0d539641c213451b72513557438e3586ceccb5836c07e209840b3643f20
size 15254

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f95bff52f60ee325a67c87bd1ce6b21eb2fefad7ddbdff7e1724d834f626e130
size 10061

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 26 14:39:47 UTC 2013 - coolo@suse.com
- updated to 0.03
- minl migrate
- Re-packaging without auto_install(). (ANDK)
-------------------------------------------------------------------
Tue Nov 30 19:19:55 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Class-ErrorHandler
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@@ -15,56 +15,58 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Class-ErrorHandler
Version: 0.03
Release: 0
%define cpan_name Class-ErrorHandler
Summary: Base class for error handling
Version: 0.01
Release: 1
License: GPL/Artistic
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://www.cpan.org
Source: %{cpan_name}-%{version}.tar.gz
Url: http://search.cpan.org/dist/Class-ErrorHandler/
Source: http://www.cpan.org/authors/id/T/TO/TOKUHIROM/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Module::Build) >= 0.38
#BuildRequires: perl(Class::ErrorHandler)
%{perl_requires}
%description
_Class::ErrorHandler_ provides an error-handling mechanism that's generic
enough to be used as the base class for a variety of OO classes. Subclasses
inherit its two error-handling methods, _error_ and _errstr_, to
communicate error messages back to the calling program.
%{cpan_name} module for perl
On failure (for whatever reason), a subclass should call _error_ and return
to the caller; _error_ itself sets the error message internally, then
returns 'undef'. This has the effect of the method that failed returning
'undef' to the caller. The caller should check for errors by checking for a
return value of 'undef', and calling _errstr_ to get the value of the error
message on an error.
Class::ErrorHandler provides an error-handling mechanism that's generic enough
to be used as the base class for a variety of OO classes. Subclasses inherit
its two error-handling methods, error and errstr, to communicate error messages
back to the calling program.
Authors:
--------
Benjamin Trott <cpan@stupidfool.org>
As demonstrated in the the SYNOPSIS manpage, _error_ and _errstr_ work as
both class methods and object methods.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make}
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
%{__make} test
./Build test
%install
%perl_make_install
%perl_process_packlist
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-, root, root)
%doc README Changes
%defattr(-,root,root,755)
%doc Changes cpanfile LICENSE README.md
%changelog