From: Arkadiusz Miƛkiewicz Date: Fri, 11 Dec 2020 09:15:32 +0000 (+0100) Subject: - initial X-Git-Tag: auto/th/perl-PerlIO-via-Timeout-0.32-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=84613bd78c1f3105769a46b349989d4080db8fd1;p=packages%2Fperl-PerlIO-via-Timeout.git - initial --- 84613bd78c1f3105769a46b349989d4080db8fd1 diff --git a/perl-PerlIO-via-Timeout.spec b/perl-PerlIO-via-Timeout.spec new file mode 100644 index 0000000..f25e943 --- /dev/null +++ b/perl-PerlIO-via-Timeout.spec @@ -0,0 +1,67 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir PerlIO +%define pnam via-Timeout +Summary: PerlIO::via::Timeout - a PerlIO layer that adds read & write timeout to a handle +#Summary(pl.UTF-8): +Name: perl-PerlIO-via-Timeout +Version: 0.32 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/PerlIO/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: f18328a39a5eaa386e34df80f066039b +# generic URL, check or change before uncommenting +#URL: https://metacpan.org/release/PerlIO-via-Timeout +BuildRequires: perl-Module-Build +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.745 +%if %{with tests} +BuildRequires: perl-Test-TCP +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This package implements a PerlIO layer, that adds read / write +timeout. This can be useful to avoid blocking while accessing a handle +(file, socket, ...), and fail after some time. + +The timeout is implemented by using