Files
perl-Log-Fast/perl-Log-Fast.spec
2025-08-12 18:15:09 +02:00

74 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Log-Fast
#
# Copyright (c) 2018 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
# 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: 2.0.1
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/
Source0: https://cpan.metacpan.org/authors/id/P/PO/POWERMAN/%{cpan_name}-v%{version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: perl(Sys::Syslog) >= 0.29
BuildRequires: perl(Test::Exception)
Requires: perl(Sys::Syslog) >= 0.29
%{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
Log::Dispatch in about 45 times, faster than Log::Handler in about 15
times, faster than Sys::Syslog in about 7 times, and slower than
Log::Syslog::Fast in about 2 times.
%prep
%setup -q -n %{cpan_name}-v%{version}
%build
%{__perl} Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog