[packages/perl-Devel-LexAlias] - pl, added tests
qboosh
qboosh at pld-linux.org
Tue May 31 22:43:11 CEST 2022
commit 6ba6b5c21facddeb9b149052180cfe14ca88f458
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue May 31 22:44:19 2022 +0200
- pl, added tests
perl-Devel-LexAlias.spec | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/perl-Devel-LexAlias.spec b/perl-Devel-LexAlias.spec
index d8d045d..fc98f88 100644
--- a/perl-Devel-LexAlias.spec
+++ b/perl-Devel-LexAlias.spec
@@ -1,7 +1,11 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
%define pdir Devel
%define pnam LexAlias
Summary: Devel::LexAlias - alias lexical variables
-#Summary(pl.UTF-8):
+Summary(pl.UTF-8): Devel::LexAlias - aliasy dla zmiennych leksykalnych
Name: perl-Devel-LexAlias
Version: 0.05
Release: 12
@@ -9,15 +13,26 @@ License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 1a4f70dff1a47b3eb96bdeac50db2ec5
-URL: http://search.cpan.org/dist/Devel-LexAlias/
+URL: https://metacpan.org/dist/Devel-LexAlias
+BuildRequires: perl-ExtUtils-MakeMaker
+%if %{with tests}
+BuildRequires: perl-Devel-Caller >= 0.03
+BuildRequires: perl-Test-Simple
+%endif
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+Requires: perl-Devel-Caller >= 0.03
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Devel::LexAlias provides the ability to alias a lexical variable in a
subroutines scope to one of your choosing.
+%description
+Devel::LexAlias umożliwia tworzenie wybranych aliasów w kontekście
+procedury dla zmiennych leksykalnych.
+
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
@@ -42,7 +57,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes
-%{perl_vendorarch}/Devel/*.pm
+%{perl_vendorarch}/Devel/LexAlias.pm
%dir %{perl_vendorarch}/auto/Devel/LexAlias
-%attr(755,root,root) %{perl_vendorarch}/auto/Devel/LexAlias/*.so
-%{_mandir}/man3/*
+%attr(755,root,root) %{perl_vendorarch}/auto/Devel/LexAlias/LexAlias.so
+%{_mandir}/man3/Devel::LexAlias.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Devel-LexAlias.git/commitdiff/6ba6b5c21facddeb9b149052180cfe14ca88f458
More information about the pld-cvs-commit
mailing list