Search
SailfishOS Open Build Service
>
Projects
>
home:nephros
:
devel
:
mosh
>
perl-IO-Socket-IP
> perl-IO-Socket-IP.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File perl-IO-Socket-IP.spec of Package perl-IO-Socket-IP
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: perl-IO-Socket-IP # >> macros # << macros Summary: Family-neutral IP socket supporting both IPv4 and IPv6 Version: 0.42 Release: 1 Group: Development/Libraries License: GPL+ or Artistic URL: https://metacpan.org/pod/IO::Socket::IP Source0: https://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz Source100: perl-IO-Socket-IP.yaml Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(IO::Socket), perl(Socket) BuildRequires: perl(Module::Build) BuildRequires: perl(IO::Socket), perl(Socket) %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 INCOMPATIBILITES section below. It uses the getaddrinfo(3) function to convert hostnames and service names or port numbers into sets of possible addresses to connect to or listen on. This allows it to work for IPv6 where the system supports it, while still falling back to IPv4-only on systems which don't. %prep %setup -q -n IO-Socket-IP-%{version} # >> setup #chmod 644 samples/{canonical,xml*} #%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*} # << setup %build # >> build pre CFLAGS="$RPM_OPT_FLAGS" %{__perl} Build.PL --installdirs vendor ./Build # << build pre # >> build post # << build post %install rm -rf %{buildroot} # >> install pre ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 # << install pre # >> install post find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT/%{_mandir} -type f -exec rm -f {} ';' chmod -R u+w $RPM_BUILD_ROOT/* # << install post %files %defattr(-,root,root,-) # >> files %doc README Changes examples/ %{perl_vendorlib}/IO/Socket/IP.pm # << files