2009-06-19 14:45:42 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Class-ErrorHandler
|
2011-11-17 14:03:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-06-19 14:45:42 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Class-ErrorHandler
|
2011-11-17 14:03:21 +00:00
|
|
|
%define cpan_name Class-ErrorHandler
|
2009-06-19 14:45:42 +00:00
|
|
|
Summary: Base class for error handling
|
2006-10-31 15:05:44 +00:00
|
|
|
Version: 0.01
|
|
|
|
Release: 1
|
|
|
|
License: GPL/Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
2009-06-19 14:45:42 +00:00
|
|
|
Url: http://www.cpan.org
|
2011-11-17 15:22:36 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2009-06-19 14:45:42 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 13:57:12 +00:00
|
|
|
%{perl_requires}
|
2009-06-19 14:45:42 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2006-10-31 15:05:44 +00:00
|
|
|
|
|
|
|
%description
|
2011-11-17 14:03:21 +00:00
|
|
|
|
2009-06-19 14:45:42 +00:00
|
|
|
%{cpan_name} module for perl
|
|
|
|
|
2006-10-31 15:05:44 +00:00
|
|
|
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>
|
|
|
|
|
|
|
|
%prep
|
2009-06-19 14:45:42 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2006-10-31 15:05:44 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2009-06-19 14:45:42 +00:00
|
|
|
%{__make}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2006-10-31 15:05:44 +00:00
|
|
|
|
|
|
|
%install
|
2009-06-19 14:45:42 +00:00
|
|
|
%perl_make_install
|
2006-10-31 15:05:44 +00:00
|
|
|
%perl_process_packlist
|
2009-06-19 14:45:42 +00:00
|
|
|
%perl_gen_filelist
|
2006-10-31 15:05:44 +00:00
|
|
|
|
|
|
|
%clean
|
2009-06-19 14:45:42 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2006-10-31 15:05:44 +00:00
|
|
|
|
2009-06-19 14:45:42 +00:00
|
|
|
%files -f %{name}.files
|
2006-10-31 15:05:44 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README Changes
|
|
|
|
|
|
|
|
%changelog
|