[packages/perl-Hook-LexWrap] - updated URLs, BR and docs

qboosh qboosh at pld-linux.org
Mon Jun 15 19:48:30 CEST 2026


commit 9ca23bee3bf19e488373fbb1220ff0d0f468796f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jun 15 19:48:53 2026 +0200

    - updated URLs, BR and docs

 perl-Hook-LexWrap.spec | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/perl-Hook-LexWrap.spec b/perl-Hook-LexWrap.spec
index 6bc4c0c..2d2bf24 100644
--- a/perl-Hook-LexWrap.spec
+++ b/perl-Hook-LexWrap.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	tests		# do not perform "make test"
+%bcond_without	tests		# unit tests
 #
 %define		pdir	Hook
 %define		pnam	LexWrap
@@ -12,11 +12,16 @@ Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/Hook/CHORNY/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0:	https://www.cpan.org/modules/by-module/Hook/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	5d022159b0c56d48d04ef9334309b488
-URL:		http://search.cpan.org/dist/Hook-LexWrap/
+URL:		https://metacpan.org/dist/Hook-LexWrap
+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)
 
@@ -41,9 +46,12 @@ obudowanej procedury.
 %build
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor
+
 %{__make}
 
-%{?with_tests:%{__make} test}
+%if %{with tests}
+%{__make} test
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -56,6 +64,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes
+%doc Changes README
 %{perl_vendorlib}/Hook/LexWrap.pm
 %{_mandir}/man3/Hook::LexWrap.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Hook-LexWrap.git/commitdiff/9ca23bee3bf19e488373fbb1220ff0d0f468796f



More information about the pld-cvs-commit mailing list