Name: perl-Socket Version: 2.015 Release: 1%{?dist} Summary: Networking constants and support functions License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Socket/ Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/Socket-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.006001 BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module provides a variety of constants, structure manipulators and other functions related to socket-based networking. The values and functions provided are useful when used in conjunction with Perl core functions such as socket(), setsockopt() and bind(). It also provides several other support functions, mostly for dealing with conversions of network addresses between human-readable and native binary forms, and for hostname resolver operations. %prep %setup -q -n Socket-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Artistic Changes Copying LICENSE META.json %{perl_vendorarch}/auto/* %{perl_vendorarch}/Socket* %{_mandir}/man3/* %changelog * Tue Sep 02 2014 Dave Cross 2.015-1 - Specfile autogenerated by cpanspec 1.78.