mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-04-28 11:03:42 +00:00
51 lines
1.5 KiB
RPMSpec
51 lines
1.5 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
|
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
|
#
|
|
# SPDX-License-Identifier: MulanPSL-2.0
|
|
|
|
Name: perl-IO-Socket-IP
|
|
Version: 0.43
|
|
Release: %autorelease
|
|
Summary: Family-neutral IP socket supporting both IPv4 and IPv6
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
URL: https://metacpan.org/dist/IO-Socket-IP
|
|
#!RemoteAsset
|
|
Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl-rpm-packaging
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl >= 5.14.0
|
|
BuildRequires: perl(IO::Socket)
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Socket) >= 1.97
|
|
BuildRequires: perl(Test2::V0)
|
|
|
|
Requires: perl(Socket) >= 1.97
|
|
|
|
%description
|
|
This module provides a protocol-independent way to use IPv4 and IPv6
|
|
sockets, intended as a replacement for IO::Socket::INET. Most constructor
|
|
arguments and methods are provided in a backward-compatible way. For a
|
|
list of known differences, see the IO::Socket::INET INCOMPATIBILITIES
|
|
section below.
|
|
|
|
%prep
|
|
%setup -q -n IO-Socket-IP-%{version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes examples README
|
|
|
|
%changelog
|
|
%{?autochangelog}
|