107 lines
3.9 KiB
RPMSpec
107 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Log-Report
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Log-Report
|
|
Name: perl-Log-Report
|
|
Version: 1.400.0
|
|
Release: 0
|
|
# 1.40 -> normalize -> 1.400.0
|
|
%define cpan_version 1.40
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Report a problem, pluggable handlers and language support
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Devel::GlobalDestruction) >= 0.90.0
|
|
BuildRequires: perl(Log::Report::Optional) >= 1.70.0
|
|
BuildRequires: perl(String::Print) >= 0.910
|
|
BuildRequires: perl(Sys::Syslog) >= 0.27
|
|
BuildRequires: perl(Test::More) >= 0.86
|
|
Requires: perl(Devel::GlobalDestruction) >= 0.90.0
|
|
Requires: perl(Log::Report::Optional) >= 1.70.0
|
|
Requires: perl(String::Print) >= 0.910
|
|
Requires: perl(Sys::Syslog) >= 0.27
|
|
Requires: perl(Test::More) >= 0.86
|
|
Provides: perl(DB)
|
|
Provides: perl(Dancer2::Logger::LogReport) = %{version}
|
|
Provides: perl(Dancer2::Plugin::LogReport) = %{version}
|
|
Provides: perl(Dancer2::Plugin::LogReport::Message) = %{version}
|
|
Provides: perl(Dancer::Logger::LogReport) = %{version}
|
|
Provides: perl(Log::Report) = %{version}
|
|
Provides: perl(Log::Report::DBIC::Profiler) = %{version}
|
|
Provides: perl(Log::Report::Die) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::Callback) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::File) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::Log4perl) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::LogDispatch) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::Perl) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::Syslog) = %{version}
|
|
Provides: perl(Log::Report::Dispatcher::Try) = %{version}
|
|
Provides: perl(Log::Report::Domain) = %{version}
|
|
Provides: perl(Log::Report::Exception) = %{version}
|
|
Provides: perl(Log::Report::Message) = %{version}
|
|
Provides: perl(Log::Report::Translator) = %{version}
|
|
Provides: perl(MojoX::Log::Report) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Get messages to users and logs. 'Log::Report' combines three tasks which
|
|
are closely related in one:
|
|
|
|
* . logging (like Log::Log4Perl and syslog), and
|
|
|
|
* . exceptions (like error and info), with
|
|
|
|
* . translations (like 'gettext' and Locale::TextDomain)
|
|
|
|
You *do not need* to use this module for all three reasons: pick what you
|
|
need now, maybe extend the usage later. Read more about how and why in the
|
|
DETAILS section, below. Especially, you should *read about the REASON
|
|
parameter*.
|
|
|
|
Also, you can study this module swiftly via the article published in the
|
|
German Perl '$foo-magazine'. English version:
|
|
_http://perl.overmeer.net/log-report/papers/201306-PerlMagazine-article-en.
|
|
html_
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc ChangeLog examples README README.md
|
|
|
|
%changelog
|