commit 2f5a169f35a3a61bf47c45986ae85a98f4b7b972 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Jan 31 12:57:57 2014 +0100 1.01 bump .gitignore | 1 + perl-Log-Report.spec | 74 +++++++++++++++++++++++++++---------------------- sources | 2 +- 3 files changed, 43 insertions(+), 34 deletions(-) --- diff --git a/.gitignore b/.gitignore index 21d2487..5691921 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /Log-Report-0.998.tar.gz +/Log-Report-1.01.tar.gz diff --git a/perl-Log-Report.spec b/perl-Log-Report.spec index 0f10d7b..ee15cff 100644 --- a/perl-Log-Report.spec +++ b/perl-Log-Report.spec @@ -1,5 +1,5 @@ Name: perl-Log-Report -Version: 0.998 +Version: 1.01 Release: 1%{?dist} Summary: Report a problem with exceptions and translation support License: GPL+ or Artistic @@ -11,41 +11,40 @@ BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) # Run-time: BuildRequires: perl(base) -BuildRequires: perl(constant) BuildRequires: perl(Devel::GlobalDestruction) >= 0.09 BuildRequires: perl(Encode) >= 2.00 BuildRequires: perl(Exporter) -# Fcntl not used at tests +BuildRequires: perl(Fcntl) BuildRequires: perl(File::Basename) -BuildRequires: perl(File::Find) BuildRequires: perl(File::Spec) -# Getopt::Long not used at tests BuildRequires: perl(IO::File) BuildRequires: perl(List::Util) BuildRequires: perl(locale) -# Locale::gettext not used at tests BuildRequires: perl(Log::Dispatch) >= 2.00 BuildRequires: perl(Log::Log4perl) +BuildRequires: perl(Log::Report::Minimal::Domain) +BuildRequires: perl(Log::Report::Util) +# Mojo tests are optional +BuildRequires: perl(Mojo::Base) +BuildRequires: perl(Mojo::Log) BuildRequires: perl(overload) BuildRequires: perl(POSIX) -BuildRequires: perl(PPI) +BuildRequires: perl(Scalar::Util) +# String::Print is not used BuildRequires: perl(strict) BuildRequires: perl(Sys::Syslog) >= 0.27 BuildRequires: perl(vars) BuildRequires: perl(warnings) -# Win32::TieRegistry used only from Log::Report::Win32Locale which we drop # Tests: BuildRequires: perl(Carp) -BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(constant) +BuildRequires: perl(Data::Dumper) BuildRequires: perl(File::Temp) BuildRequires: perl(lib) -BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.86 -BuildRequires: perl(utf8) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Devel::GlobalDestruction) >= 0.09 Requires: perl(Encode) >= 2.00 -Requires: perl(Sys::Syslog) >= 0.27 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Devel::GlobalDestruction|Encode|Sys::Syslog)\\)$ @@ -72,24 +71,29 @@ Requires: perl-Log-Report = %{?epoch:%epoch:}%{version}-%{release} %description Dispatcher-LogDispatch This is an optional Log::Dispatch back-end for Log::Report logging framework. -%package Extract -Summary: Collect translatable strings for Log::Report +%package Dispatcher-Syslog +Summary: Sys::Syslog back-end for Log::Report +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl-Log-Report = %{?epoch:%epoch:}%{version}-%{release} +Requires: perl(Encode) >= 2.00 +Requires: perl(Sys::Syslog) >= 0.27 + +%description Dispatcher-Syslog +This is an optional Sys::Syslog back-end for Log::Report logging framework. + +%package Mojo +Summary: Divert log messages into Log::Report Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl-Log-Report = %{?epoch:%epoch:}%{version}-%{release} +Requires: perl(Mojo::Log) -%description Extract -Log::Report logging framework supports localizing messages. This package -provides tools for collecting translatable strings from Perl code that uses -the Log::Report framework. +%description Mojo +Mojo likes to log messages directly into a file, by default. This is a Mojo +extension that can route Mojo messages into Log::Report logging framework. %prep %setup -q -n Log-Report-%{version} -# Remove Win32 specific code requiring Win32 specific modules -rm lib/Log/Report/Win32Locale.p* -sed -i -e '\|^lib/Log/Report/Win32Locale.p|d' MANIFEST -# Correct shebang -sed -i -e '/^#!/ c#!%{__perl}' bin/xgettext-perl %build perl Makefile.PL INSTALLDIRS=vendor @@ -108,13 +112,13 @@ make test %{perl_vendorlib}/* %exclude %{perl_vendorlib}/Log/Report/Dispatcher/Log4perl.* %exclude %{perl_vendorlib}/Log/Report/Dispatcher/LogDispatch.* -%exclude %{perl_vendorlib}/Log/Report/Extract.* -%exclude %{perl_vendorlib}/Log/Report/Extract +%exclude %{perl_vendorlib}/Log/Report/Dispatcher/Syslog.* +%exclude %{perl_vendorlib}/MojoX %{_mandir}/man3/* %exclude %{_mandir}/man3/Log::Report::Dispatcher::Log4perl.* %exclude %{_mandir}/man3/Log::Report::Dispatcher::LogDispatch.* -%exclude %{_mandir}/man3/Log::Report::Extract.* -%exclude %{_mandir}/man3/Log::Report::Extract::* +%exclude %{_mandir}/man3/Log::Report::Dispatcher::Syslog.* +%exclude %{_mandir}/man3/MojoX::Log::Report.* %files Dispatcher-Log4perl %{perl_vendorlib}/Log/Report/Dispatcher/Log4perl.* @@ -124,13 +128,17 @@ make test %{perl_vendorlib}/Log/Report/Dispatcher/LogDispatch.* %{_mandir}/man3/Log::Report::Dispatcher::LogDispatch.* -%files Extract -%{_bindir}/* -%{perl_vendorlib}/Log/Report/Extract.* -%{perl_vendorlib}/Log/Report/Extract -%{_mandir}/man3/Log::Report::Extract.* -%{_mandir}/man3/Log::Report::Extract::* +%files Dispatcher-Syslog +%{perl_vendorlib}/Log/Report/Dispatcher/Syslog.* +%{_mandir}/man3/Log::Report::Dispatcher::Syslog.* + +%files Mojo +%{perl_vendorlib}/MojoX +%{_mandir}/man3/MojoX::Log::Report.* %changelog +* Mon Jan 27 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 1.01-1 +- 1.01 bump + * Wed Nov 20 2013 Petr Pisar <ppisar@xxxxxxxxxx> 0.998-1 - Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index f15db57..ecbe670 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -045036c9a8f064bde959604d69972af0 Log-Report-0.998.tar.gz +21a979d4996298d4eb1a0b1b3767f8dc Log-Report-1.01.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel