[packages/perl-IO-Socket-INET6] - updated URL and macros, added tests
qboosh
qboosh at pld-linux.org
Thu May 20 17:42:31 CEST 2021
commit a16a106c301d24b424251d5f63aab9dc45873fa3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu May 20 17:44:53 2021 +0200
- updated URL and macros, added tests
perl-IO-Socket-INET6.spec | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/perl-IO-Socket-INET6.spec b/perl-IO-Socket-INET6.spec
index c6468cf..b9c4241 100644
--- a/perl-IO-Socket-INET6.spec
+++ b/perl-IO-Socket-INET6.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build
+%bcond_without tests # unit tests
+
%define pdir IO
%define pnam Socket-INET6
Summary: IO::Socket::INET6 - Object interface for AF_INET|AF_INET6 domain sockets
@@ -10,9 +14,14 @@ License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 510ddc1bd75a8340ca7226123fb545c1
-URL: http://search.cpan.org/dist/IO-Socket-INET6/
-BuildRequires: rpm-perlprov >= 4.1-13
+URL: https://metacpan.org/release/IO-Socket-INET6
+%if %{with tests}
+BuildRequires: perl-Socket6 >= 0.12
+BuildRequires: perl-Test-Simple
+%endif
BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,6 +45,10 @@ definiowane przez IO::Socket.
INSTALLDIRS=vendor
%{__make}
+%if %{with test}
+%{__make} test
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -49,4 +62,4 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc ChangeLog README
%{perl_vendorlib}/IO/Socket/INET6.pm
-%{_mandir}/man3/*
+%{_mandir}/man3/IO::Socket::INET6.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-IO-Socket-INET6.git/commitdiff/a16a106c301d24b424251d5f63aab9dc45873fa3
More information about the pld-cvs-commit
mailing list