[packages/perl-Log-Any] - pl, updated URLs and BR
qboosh
qboosh at pld-linux.org
Wed Jun 17 05:38:42 CEST 2026
commit 5b9ba238d8c64322ac4e6026ae9a495431d08687
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 17 05:39:03 2026 +0200
- pl, updated URLs and BR
perl-Log-Any.spec | 35 +++++++++++++++++++++++++++++------
1 file changed, 29 insertions(+), 6 deletions(-)
---
diff --git a/perl-Log-Any.spec b/perl-Log-Any.spec
index 3eaf928..26fa517 100644
--- a/perl-Log-Any.spec
+++ b/perl-Log-Any.spec
@@ -1,21 +1,27 @@
#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
%define pdir Log
%define pnam Any
Summary: Log::Any -- Bringing loggers and listeners together
+Summary(pl.UTF-8): Log::Any - połączenie mechanizmów logujących i nasłuchujących
Name: perl-Log-Any
Version: 1.720
Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: https://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0: https://www.cpan.org/modules/by-module/Log/PREACTION/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: d501159dea15564229a9cc85d62a9568
-URL: https://search.cpan.org/dist/Log-Any/
+URL: https://metacpan.org/dist/Log-Any
+BuildRequires: perl-ExtUtils-MakeMaker
BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+%endif
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,15 +39,32 @@ ever choose) a logging mechanism.
The application, in turn, may choose one or more logging mechanisms
via Log::Any::Adapter.
+%description -l pl.UTF-8
+Log::Any pozwala modułom CPAN bezpiecznie i wydajnie logować
+komunikaty, pozwalając aplikacjon wybrać mechanizm logujący (lub
+odmówić jego wyboru), jak np. Log::Dispatch lub Log::Log4perl.
+
+Log::Any ma bardzo mały narzut i brak zależności poza Perlem 5.6, co
+czyni go odpowiednim do użycia nawet w małych modułach CPAN. Domyślnie
+wybierana jest aktywność logowania "null", więc moduł może bezpiecznie
+logować bez obawy, czy aplikacja wybrała (lub kiedykolwiek wybierze)
+mechanizm logowania.
+
+Aplikacja z kolei może wybrać jeden lub więcej mechanizmów logowania
+poprzez Log::Any::Adapter.
+
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
+
%{__make}
-%{?with_tests:%{__make} test}
+%if %{with tests}
+%{__make} test
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -55,6 +78,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes README
-%{perl_vendorlib}/Log/*.pm
+%{perl_vendorlib}/Log/Any.pm
%{perl_vendorlib}/Log/Any
-%{_mandir}/man3/*
+%{_mandir}/man3/Log::Any*.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Log-Any.git/commitdiff/5b9ba238d8c64322ac4e6026ae9a495431d08687
More information about the pld-cvs-commit
mailing list