packages: perl-Socket-GetAddrInfo/perl-Socket-GetAddrInfo.spec (NEW) - initial

amateja amateja at
Tue Oct 27 20:38:25 CET 2009

Author: amateja                      Date: Tue Oct 27 19:38:25 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
   perl-Socket-GetAddrInfo.spec (NONE -> 1.1)  (NEW)

---- Diffs:

Index: packages/perl-Socket-GetAddrInfo/perl-Socket-GetAddrInfo.spec
diff -u /dev/null packages/perl-Socket-GetAddrInfo/perl-Socket-GetAddrInfo.spec:1.1
--- /dev/null	Tue Oct 27 20:38:25 2009
+++ packages/perl-Socket-GetAddrInfo/perl-Socket-GetAddrInfo.spec	Tue Oct 27 20:38:20 2009
@@ -0,0 +1,98 @@
+# $Revision$, $Date$
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Socket
+%define	pnam	GetAddrInfo
+Summary:	Socket::GetAddrInfo - RFC 2553's getaddrinfo and getnameinfo functions
+Name:		perl-Socket-GetAddrInfo
+Version:	0.13
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+# Source0-md5:	235f1635bf553ab83f837ae264d47ffc
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Exception
+BuildRequires:	perl-Test-Warn
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+The RFC 2553 functions getaddrinfo and getnameinfo provide an
+abstracted way to convert between a pair of host name/service name and
+socket addresses, or vice versa. getaddrinfo converts names into a set
+of arguments to pass to the socket() and connect() syscalls, and
+getnameinfo converts a socket address back into its host name/service
+name pair.
+These functions provide a useful interface for performing either of
+these name resolution operation, without having to deal with IPv4/IPv6
+transparency, or whether the underlying host can support IPv6 at all,
+or other such issues. However, not all platforms can support the
+underlying calls at the C layer, which means a dilema for authors
+wishing to write forward-compatible code. Either to support these
+functions, and cause the code not to work on older platforms, or stick
+to the older "legacy" resolvers such as gethostbyname(), which means
+the code becomes more portable.
+This module attempts to solve this problem, by detecting at
+compiletime whether the underlying OS will support these functions,
+and only compiling the XS code if it can. At runtime, when the module
+is loaded, if the XS implementation is not available, emulations of
+the functions using the legacy resolver functions instead. The
+emulations support the same interface as the real functions, and
+behave as close as is resonably possible to emulate using the legacy
+resolvers. See below for details on the limits of this emulation.
+# %description -l pl.UTF-8
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+%{?with_tests:./Build test}
+./Build install
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%doc Changes README
+%dir %{perl_vendorarch}/auto/Socket/GetAddrInfo
+%attr(755,root,root) %{perl_vendorarch}/auto/Socket/GetAddrInfo/*.so
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+* %{date} PLD Team <feedback at>
+All persons listed below can be reached at <cvs_login>
+Revision 1.1  2009/10/27 19:38:20  amateja
+- initial

More information about the pld-cvs-commit mailing list