From 1dc058701fed51f773e9fb6eac6df2d88d0f58b6ab8c3c8d9382ceeb43676391 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 14 Apr 2011 07:51:19 +0000 Subject: [PATCH] initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Catalyst-Log-Log4perl?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + Catalyst-Log-Log4perl-1.04.tar.gz | 3 + perl-Catalyst-Log-Log4perl.changes | 6 ++ perl-Catalyst-Log-Log4perl.spec | 96 ++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Catalyst-Log-Log4perl-1.04.tar.gz create mode 100644 perl-Catalyst-Log-Log4perl.changes create mode 100644 perl-Catalyst-Log-Log4perl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Catalyst-Log-Log4perl-1.04.tar.gz b/Catalyst-Log-Log4perl-1.04.tar.gz new file mode 100644 index 0000000..df14d93 --- /dev/null +++ b/Catalyst-Log-Log4perl-1.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfb7add6856d1d9893afdb48efb7839cd1a43ca3534db04dcec5b44294ac94b2 +size 27678 diff --git a/perl-Catalyst-Log-Log4perl.changes b/perl-Catalyst-Log-Log4perl.changes new file mode 100644 index 0000000..12f56bc --- /dev/null +++ b/perl-Catalyst-Log-Log4perl.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Thu Apr 14 07:51:14 UTC 2011 - coolo@opensuse.org + +- initial package 1.04 + * created by cpanspec 1.78.04 + diff --git a/perl-Catalyst-Log-Log4perl.spec b/perl-Catalyst-Log-Log4perl.spec new file mode 100644 index 0000000..aeb46e1 --- /dev/null +++ b/perl-Catalyst-Log-Log4perl.spec @@ -0,0 +1,96 @@ +# +# spec file for package perl-Catalyst-Log-Log4perl (Version 1.04) +# +# Copyright (c) 2010 SUSE LINUX Products 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 http://bugs.opensuse.org/ +# + +Name: perl-Catalyst-Log-Log4perl +Version: 1.04 +Release: 1 +License: GPL+ or Artistic +%define cpan_name Catalyst-Log-Log4perl +Summary: Log::Log4perl logging for Catalyst +Url: http://search.cpan.org/dist/Catalyst-Log-Log4perl/ +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Catalyst) >= 5.60 +BuildRequires: perl(Data::Dump) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Log::Log4perl) >= 1.04 +BuildRequires: perl(MRO::Compat) +BuildRequires: perl(Params::Validate) +Requires: perl(Catalyst) >= 5.60 +Requires: perl(Data::Dump) +Requires: perl(Log::Log4perl) >= 1.04 +Requires: perl(MRO::Compat) +Requires: perl(Params::Validate) +%{perl_requires} + +%description +This module provides a the Catalyst::Log manpage implementation that uses +the Log::Log4perl manpage as the underlying log mechanism. It provides all +the methods listed in the Catalyst::Log manpage, with the exception of: + + levels + enable + disable + +These methods simply return 0 and do nothing, as similar functionality is +already provided by the Log::Log4perl manpage. + +These methods will all instantiate a logger with the component set to the +package who called it. For example, if you were in the MyApp::C::Main +package, the following: + + package MyApp::C::Main; + + sub default : Private { + my ( $self, $c ) = @_; + my $logger = $c->log; + $logger->debug("Woot!"); + } + +Would send a message to the Myapp.C.Main the Log::Log4perl manpage +component. + +See the Log::Log4perl manpage for more information on how to configure +different logging mechanisms based on the component. + +%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 + +%clean +%{__rm} -rf %{buildroot} + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc %attr(644,-,-) Changes example.conf README + +%changelog