2013-10-04 19:52:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-IO-Pipely
|
|
|
|
#
|
2025-06-03 14:51:04 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2013-10-04 19:52:29 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2022-01-04 11:09:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-04 19:52:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-04 11:09:48 +00:00
|
|
|
%define cpan_name IO-Pipely
|
2013-10-04 19:52:29 +00:00
|
|
|
Name: perl-IO-Pipely
|
2025-06-03 14:51:04 +00:00
|
|
|
Version: 0.6.0
|
2013-10-04 19:52:29 +00:00
|
|
|
Release: 0
|
2025-06-03 14:51:04 +00:00
|
|
|
# 0.006 -> normalize -> 0.6.0
|
|
|
|
%define cpan_version 0.006
|
2022-01-04 11:09:48 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-06-03 14:51:04 +00:00
|
|
|
Summary: Portably create pipe() or pipe-like handles, one way or another
|
2022-01-04 11:09:48 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-06-03 14:51:04 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCAPUTO/%{cpan_name}-%{cpan_version}.tar.gz
|
2022-01-04 11:09:48 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:49 +02:00
|
|
|
Source100: README.md
|
2013-10-04 19:52:29 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2022-01-04 11:09:48 +00:00
|
|
|
BuildRequires: perl(Carp) >= 1.42
|
|
|
|
BuildRequires: perl(Exporter) >= 5.72
|
|
|
|
BuildRequires: perl(Fcntl) >= 1.13
|
|
|
|
BuildRequires: perl(IO::Socket) >= 1.38
|
2025-06-03 14:51:04 +00:00
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.46
|
2022-01-04 11:09:48 +00:00
|
|
|
BuildRequires: perl(Symbol) >= 1.08
|
|
|
|
BuildRequires: perl(Test::More) >= 1.302120
|
|
|
|
Requires: perl(Exporter) >= 5.72
|
|
|
|
Requires: perl(Fcntl) >= 1.13
|
|
|
|
Requires: perl(IO::Socket) >= 1.38
|
|
|
|
Requires: perl(Symbol) >= 1.08
|
2025-06-03 14:51:04 +00:00
|
|
|
Provides: perl(IO::Pipely) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2013-10-04 19:52:29 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pipes are troublesome beasts because there are a few different,
|
|
|
|
incompatible ways to create them. Not all platforms support all ways, and
|
|
|
|
some platforms may have hidden difficulties like incomplete or buggy
|
|
|
|
support.
|
|
|
|
|
|
|
|
IO::Pipely provides a couple functions to portably create one- and two-way
|
|
|
|
pipes and pipe-like socket pairs. It acknowledges and works around known
|
|
|
|
platform issues so you don't have to.
|
|
|
|
|
|
|
|
On the other hand, it doesn't work around unknown issues, so please report
|
|
|
|
any problems early and often.
|
|
|
|
|
|
|
|
IO::Pipely currently understands pipe(), UNIX-domain socketpair() and
|
|
|
|
regular IPv4 localhost sockets. This covers every platform tested so far,
|
|
|
|
but it's hardly complete. Please help support other mechanisms, such as
|
|
|
|
INET-domain socketpair() and IPv6 localhost sockets.
|
|
|
|
|
|
|
|
IO::Pipely will use different kinds of pipes or sockets depending on the
|
|
|
|
operating system's capabilities and the number of directions requested. The
|
|
|
|
autodetection may be overridden by specifying a particular pipe type.
|
|
|
|
|
|
|
|
%prep
|
2025-06-03 14:51:04 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2013-10-04 19:52:29 +00:00
|
|
|
|
|
|
|
%build
|
2022-01-04 11:09:48 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2013-10-04 19:52:29 +00:00
|
|
|
|
|
|
|
%check
|
2022-01-04 11:09:48 +00:00
|
|
|
make test
|
2013-10-04 19:52:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2022-01-04 11:09:48 +00:00
|
|
|
%doc CHANGES README README.mkdn
|
|
|
|
%license LICENSE
|
2013-10-04 19:52:29 +00:00
|
|
|
|
|
|
|
%changelog
|