Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Log-Any-App
perl-Log-Any-App.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Log-Any-App.spec of Package perl-Log-Any-App
# # spec file for package perl-Log-Any-App # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # Name: perl-Log-Any-App Version: 0.540 Release: 0 %define cpan_name Log-Any-App Summary: An easy way to use Log::Any in applications License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Data::Dump) BuildRequires: perl(File::HomeDir) BuildRequires: perl(File::Path) >= 2.070000 BuildRequires: perl(File::Slurper) BuildRequires: perl(File::Write::Rotate) >= 0.29 BuildRequires: perl(IO::Socket::UNIX::Util) BuildRequires: perl(JSON::MaybeXS) BuildRequires: perl(Log::Any::Adapter) >= 0.07 BuildRequires: perl(Log::Any::Adapter::Log4perl) >= 0.06 BuildRequires: perl(Log::Any::IfLOG) >= 0.07 BuildRequires: perl(Log::Dispatch::ArrayWithLimits) BuildRequires: perl(Log::Dispatch::Dir) >= 0.10 BuildRequires: perl(Log::Dispatch::FileWriteRotate) >= 0.04 BuildRequires: perl(Log::Dispatch::Syslog) >= 2.29 BuildRequires: perl(Log::Log4perl) >= 1.36 Requires: perl(Data::Dump) Requires: perl(File::HomeDir) Requires: perl(File::Path) >= 2.070000 Requires: perl(File::Write::Rotate) >= 0.29 Requires: perl(IO::Socket::UNIX::Util) Requires: perl(JSON::MaybeXS) Requires: perl(Log::Any::Adapter) >= 0.07 Requires: perl(Log::Any::Adapter::Log4perl) >= 0.06 Requires: perl(Log::Any::IfLOG) >= 0.07 Requires: perl(Log::Dispatch::ArrayWithLimits) Requires: perl(Log::Dispatch::Dir) >= 0.10 Requires: perl(Log::Dispatch::FileWriteRotate) >= 0.04 Requires: perl(Log::Dispatch::Syslog) >= 2.29 Requires: perl(Log::Log4perl) >= 1.36 %{perl_requires} %description IMPORTANT: Please read "ROAD TO 1.0" on some incompatibilities in the near future, before 1.0 is released. Log::Any::App is a convenient combo for Log::Any and Log::Log4perl (although alternative backends beside Log4perl might be considered in the future). To use Log::Any::App you need to be sold on the idea of Log::Any first, so please do a read up on that first. The goal of Log::Any::App is to provide developers an easy and concise way to add logging to their _*applications*_. That is, instead of modules; modules remain using Log::Any to produce logs. Applications can upgrade to full Log4perl later when necessary, although in my experience, they usually don't. With Log::Any::App, you can replace this code in your application: use Log::Any '$log'; use Log::Any::Adapter; use Log::Log4perl; my $log4perl_config = ' some long multiline config...'; Log::Log4perl->init(\$log4perl_config); Log::Any::Adapter->set('Log4perl'); with just this: use Log::Any::App '$log'; # plus some other options when necessary Most of the time you don't need to configure anything as Log::Any::App will construct the most appropriate default Log4perl configuration for your application. %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes Changes.OLD README %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor