8
0

Accepting request 348094 from devel:languages:perl

1

OBS-URL: https://build.opensuse.org/request/show/348094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MooseX-Log-Log4perl?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2015-12-13 08:39:51 +00:00
committed by Git OBS Bridge
5 changed files with 54 additions and 32 deletions

View File

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

View File

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

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Dec 9 09:24:31 UTC 2015 - coolo@suse.com
- updated to 0.47
see /usr/share/doc/packages/perl-MooseX-Log-Log4perl/Changes
* RT#82888: Refactor to use Moo instead of Any::Moose (Alexander Hartmaier)
-------------------------------------------------------------------
Wed Jun 5 18:56:04 UTC 2013 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-Log-Log4perl
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -17,47 +17,33 @@
Name: perl-MooseX-Log-Log4perl
Version: 0.46
Version: 0.47
Release: 0
%define cpan_name MooseX-Log-Log4perl
Summary: A Logging Role for Moose based on Log::Log4perl
Summary: Logging Role for Moose based on Log::Log4perl
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-Log-Log4perl/
Source: http://www.cpan.org/authors/id/L/LA/LAMMEL/%{cpan_name}-%{version}.tar.gz
Source0: http://www.cpan.org/authors/id/L/LA/LAMMEL/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Any::Moose) >= 0.12
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(Log::Log4perl) >= 1.13
BuildRequires: perl(Moose) >= 0.65
#BuildRequires: perl(CPANPLUS::Backend)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(JSON)
#BuildRequires: perl(Log::Log4perl::Appender::TestBuffer)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::AutoInstall)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(MooseX::Log::Log4perl)
#BuildRequires: perl(MooseX::Log::Log4perl::Easy)
#BuildRequires: perl(Parent)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Test::Perl::Critic)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(Any::Moose) >= 0.12
BuildRequires: perl(Moo) >= 1.000007
Requires: perl(Log::Log4perl) >= 1.13
Requires: perl(Moo) >= 1.000007
Recommends: perl(Moose) >= 0.65
%{perl_requires}
%description
A logging role building a very lightweight wrapper to the Log::Log4perl
manpage for use with your the Moose manpage classes. The initialization of
the Log4perl instance must be performed prior to logging the first log
message. Otherwise the default initialization will happen, probably not
doing the things you expect.
A logging role building a very lightweight wrapper to Log::Log4perl for use
with your Moose or Moo classes. The initialization of the Log4perl instance
must be performed prior to logging the first log message. Otherwise the
default initialization will happen, probably not doing the things you
expect.
For compatibility the 'logger' attribute can be accessed to use a common
interface for application logging.
@@ -67,7 +53,7 @@ Using the logger within a class is as simple as consuming a role:
package MyClass;
use Moose;
with 'MooseX::Log::Log4perl';
sub dummy {
my $self = shift;
$self->log->info("Dummy log entry");
@@ -79,9 +65,9 @@ the main application:
package main;
use Log::Log4perl qw(:easy);
use MyClass;
BEGIN { Log::Log4perl->easy_init() };
my $myclass = MyClass->new();
$myclass->log->info("In my class"); # Access the log of the object
$myclass->dummy; # Will log "Dummy log entry"