From dace2128732632407102d8fcb6f96c7da253f0a91b4c7dc5d9771cab68fcfab6 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Wed, 9 Dec 2015 12:47:03 +0000 Subject: [PATCH] Accepting request 348021 from devel:languages:perl:autoupdate automatic update OBS-URL: https://build.opensuse.org/request/show/348021 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-Log-Log4perl?expand=0&rev=10 --- MooseX-Log-Log4perl-0.46.tar.gz | 3 --- MooseX-Log-Log4perl-0.47.tar.gz | 3 +++ cpanspec.yml | 28 ++++++++++++++++++++ perl-MooseX-Log-Log4perl.changes | 8 ++++++ perl-MooseX-Log-Log4perl.spec | 44 +++++++++++--------------------- 5 files changed, 54 insertions(+), 32 deletions(-) delete mode 100644 MooseX-Log-Log4perl-0.46.tar.gz create mode 100644 MooseX-Log-Log4perl-0.47.tar.gz create mode 100644 cpanspec.yml diff --git a/MooseX-Log-Log4perl-0.46.tar.gz b/MooseX-Log-Log4perl-0.46.tar.gz deleted file mode 100644 index 00d9ead..0000000 --- a/MooseX-Log-Log4perl-0.46.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fea8c015242430442c7c51ddefbb8c93ea2a3875404ada41adcce94bfa165f6c -size 32858 diff --git a/MooseX-Log-Log4perl-0.47.tar.gz b/MooseX-Log-Log4perl-0.47.tar.gz new file mode 100644 index 0000000..2b680ce --- /dev/null +++ b/MooseX-Log-Log4perl-0.47.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da0be319762066ef0546f54ecf42b0da6d2463a932a55e06e6161678e21078d3 +size 33366 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..76ad4a4 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/perl-MooseX-Log-Log4perl.changes b/perl-MooseX-Log-Log4perl.changes index e63198e..6608d83 100644 --- a/perl-MooseX-Log-Log4perl.changes +++ b/perl-MooseX-Log-Log4perl.changes @@ -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 diff --git a/perl-MooseX-Log-Log4perl.spec b/perl-MooseX-Log-Log4perl.spec index 9ff5c11..5935831 100644 --- a/perl-MooseX-Log-Log4perl.spec +++ b/perl-MooseX-Log-Log4perl.spec @@ -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"