[packages/perl-Safe-Isa] - pl, test dependencies, updated docs
qboosh
qboosh at pld-linux.org
Sun Jun 14 13:21:42 CEST 2026
commit bfad829a83dd3ee6af76cc6946e30f54e0691beb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jun 14 13:22:01 2026 +0200
- pl, test dependencies, updated docs
perl-Safe-Isa.spec | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/perl-Safe-Isa.spec b/perl-Safe-Isa.spec
index a6d67d5..fe82639 100644
--- a/perl-Safe-Isa.spec
+++ b/perl-Safe-Isa.spec
@@ -5,19 +5,24 @@
%define pdir Safe
%define pnam Isa
Summary: Safe::Isa - Call isa, can, does and DOES safely on things that may not be objects
+Summary(pl.UTF-8): Safe::Isa - bezpieczne wywołania isa, can, does i DOES na rzeczach, które mogą nie być obiektami
Name: perl-Safe-Isa
Version: 1.000010
Release: 2
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/Safe/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0: https://www.cpan.org/modules/by-module/Safe/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: f68579f6acfeb2e19d7d9a65100399d8
URL: https://metacpan.org/dist/Safe-Isa
+BuildRequires: perl-ExtUtils-MakeMaker
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.745
%if %{with tests}
+BuildRequires: perl(Exporter) >= 5.57
+BuildRequires: perl-Scalar-List-Utils
+BuildRequires: perl-Test-Simple
%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,15 +38,29 @@ and then shortly afterwards cursing and changing it to:
Right. That's why this module exists.
+%description -l pl.UTF-8
+Jak często zdarzało nam się pisać:
+
+ if ($obj->isa('Something')) {
+
+a chwilę później, przeklinając, zmieniać to na:
+
+ if (Scalar::Util::blessed($obj) and $obj->isa('Something')) {
+
+No właśnie - dlatego istnieje ten moduł.
+
%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
@@ -54,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Changes README
-%dir %{perl_vendorlib}/Safe/
+%doc Changes
+%dir %{perl_vendorlib}/Safe
%{perl_vendorlib}/Safe/Isa.pm
-%{_mandir}/man3/*
+%{_mandir}/man3/Safe::Isa.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Safe-Isa.git/commitdiff/bfad829a83dd3ee6af76cc6946e30f54e0691beb
More information about the pld-cvs-commit
mailing list