Files
perl-Log-Fast/perl-Log-Fast.spec

91 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Log-Fast
#
# Copyright (c) 2014 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-Log-Fast
Version: 1.0.6
Release: 0
%define cpan_name Log-Fast
Summary: Fast and flexible logger
License: MIT
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Log-Fast/
Source: http://www.cpan.org/authors/id/P/PO/POWERMAN/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Sys::Syslog) >= 0.29
BuildRequires: perl(Test::Exception)
BuildRequires: perl(version)
#BuildRequires: perl(a)
#BuildRequires: perl(a::b)
#BuildRequires: perl(CPANPLUS::Backend)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(JSON)
#BuildRequires: perl(Log::Fast)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::AutoInstall)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Test::Perl::Critic)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(Sys::Syslog) >= 0.29
Requires: perl(version)
Recommends: perl(Pod::Coverage) >= 0.18
Recommends: perl(Test::CheckManifest) >= 0.9
Recommends: perl(Test::Perl::Critic)
Recommends: perl(Test::Pod) >= 1.22
Recommends: perl(Test::Pod::Coverage) >= 1.08
%{perl_requires}
%description
This is very fast logger, designed for use in applications with thousands
high-level events/operations per second (like network servers with
thousands clients or web spiders which download hundreds url per second).
For example, on Core2Duo sending about 5000 messages to log on enabled log
levels or 20000 messages on disabled log levels in _one second_ will slow
down your application only by 2-3%.
Comparing to some other CPAN modules, this one (in average): faster than
the Log::Dispatch manpage in about 45 times, faster than the Log::Handler
manpage in about 15 times, faster than the Sys::Syslog manpage in about 7
times, and slower than the Log::Syslog::Fast manpage in about 2 times.
%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 README
%changelog