2010-05-06 23:04:27 +00:00
|
|
|
#
|
2015-04-15 07:38:47 +00:00
|
|
|
# spec file for package perl-Log-Dispatch-Perl
|
2010-05-06 23:04:27 +00:00
|
|
|
#
|
2015-04-15 07:38:47 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-05-06 23:04:27 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Log-Dispatch-Perl
|
2015-04-15 07:38:47 +00:00
|
|
|
Version: 0.04
|
|
|
|
Release: 0
|
|
|
|
%define cpan_name Log-Dispatch-Perl
|
2010-05-06 23:04:27 +00:00
|
|
|
Summary: Use core Perl functions for logging
|
2015-04-15 07:38:47 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-05-06 23:04:27 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Log-Dispatch-Perl/
|
2015-04-15 07:38:47 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/E/EL/ELIZABETH/%{cpan_name}-%{version}.tar.gz
|
2010-05-06 23:04:27 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Log::Dispatch) >= 1.16
|
|
|
|
Requires: perl(Log::Dispatch) >= 1.16
|
2015-04-15 07:38:47 +00:00
|
|
|
%{perl_requires}
|
2010-05-06 23:04:27 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The "Log::Dispatch::Perl" module offers a logging alternative using
|
|
|
|
standard Perl core functions. It allows you to fall back to the common Perl
|
|
|
|
alternatives for logging, such as "warn" and "cluck". It also adds the
|
|
|
|
possibility for a logging action to halt the current environment, such as
|
|
|
|
with "die" and "croak".
|
|
|
|
|
|
|
|
%prep
|
2015-04-15 07:38:47 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-05-06 23:04:27 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
2015-04-15 07:38:47 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-05-06 23:04:27 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2015-04-15 07:38:47 +00:00
|
|
|
%defattr(-,root,root,755)
|
2010-05-06 23:04:27 +00:00
|
|
|
%doc CHANGELOG README TODO VERSION
|
|
|
|
|
|
|
|
%changelog
|