[perl-Socket] Update description
Petr Pisar
ppisar at fedoraproject.org
Thu Nov 8 10:01:12 UTC 2012
commit bd05321e4a4e7a991a18562491e44d67f9b02596
Author: Petr Písař <ppisar at redhat.com>
Date: Thu Nov 8 10:58:45 2012 +0100
Update description
.rpmlint | 2 +-
perl-Socket.spec | 23 +++++++++++++----------
2 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/.rpmlint b/.rpmlint
index 0779006..5c110f0 100644
--- a/.rpmlint
+++ b/.rpmlint
@@ -1,2 +1,2 @@
from Config import *
-addFilter("spelling-error .* ph");
+addFilter("spelling-error .* (hostname|ph|setsockopt)");
diff --git a/perl-Socket.spec b/perl-Socket.spec
index 331a374..5056274 100644
--- a/perl-Socket.spec
+++ b/perl-Socket.spec
@@ -1,15 +1,15 @@
%global cpan_version 2.006
Name: perl-Socket
Version: %(eval echo '%{cpan_version}' | tr '_' '.')
-Release: 1%{?dist}
-Summary: C socket.h defines and structure manipulators
+Release: 2%{?dist}
+Summary: Networking constants and support functions
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Socket/
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Socket-%{cpan_version}.tar.gz
-BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::Constant) >= 0.23
+BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
@@ -22,11 +22,12 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
%{?perl_default_filter}
%description
-This module is just a translation of the C socket.h file. Unlike the old
-mechanism of requiring a translated socket.ph file, this uses the h2xs program
-(see the Perl source distribution) and your native C compiler. This means
-that it has a far more likely chance of getting the numbers right. This
-includes all of the commonly used pound-defines like AF_INET, SOCK_STREAM, etc.
+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-%{cpan_version}
@@ -36,10 +37,9 @@ includes all of the commonly used pound-defines like AF_INET, SOCK_STREAM, etc.
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$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
@@ -52,6 +52,9 @@ make test
%{_mandir}/man3/*
%changelog
+* Thu Nov 08 2012 Petr Pisar <ppisar at redhat.com> - 2.006-2
+- Update description
+
* Mon Aug 20 2012 Petr Pisar <ppisar at redhat.com> - 2.006-1
- 2.006 bump
More information about the perl-devel
mailing list