File perl-IO-FDPass.spec of Package perl-IO-FDPass

# spec file for package perl-IO-FDPass
# Copyright (c) 2024 SUSE LLC
# 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.

# Please submit bugfixes or comments via

%define cpan_name IO-FDPass
Name:           perl-IO-FDPass
Version:        1.300.0
Release:        0
# 1.3 -> normalize -> 1.300.0
%define cpan_version 1.3
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Pass a file descriptor over a socket
URL:  {cpan_name}
Source1:        cpanspec.yml
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Canary::Stability)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.52
Provides:       perl(IO::FDPass) = %{version}
%undefine       __perllib_provides

This small low-level module only has one purpose: pass a file descriptor to
another process, using a (streaming) unix domain socket (on POSIX systems)
or any (streaming) socket (on WIN32 systems). The ability to pass file
descriptors on windows is currently the unique selling point of this
module. Have I mentioned that it is really small, too?

%autosetup  -n %{cpan_name}-%{cpan_version}

perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"

make test


%files -f %{name}.files
%doc Changes README
%license COPYING

openSUSE Build Service is sponsored by