From 266e9407c80fa0fc35bf063381c1f7a8d38c2b18 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:46:37 +0000 Subject: import perl516-perl-Socket-2.013-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f880f4c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Socket-2.013.tar.gz diff --git a/.perl516-perl-Socket.metadata b/.perl516-perl-Socket.metadata new file mode 100644 index 0000000..bf41180 --- /dev/null +++ b/.perl516-perl-Socket.metadata @@ -0,0 +1 @@ +3a305a08a7fbb938fc4f790741a498840903349b SOURCES/Socket-2.013.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/perl-Socket.spec b/SPECS/perl-Socket.spec new file mode 100644 index 0000000..20eeffa --- /dev/null +++ b/SPECS/perl-Socket.spec @@ -0,0 +1,84 @@ +%{?scl:%scl_package perl-Socket} +%{!?scl:%global pkg_name %{name}} + +%global cpan_version 2.013 +Name: %{?scl_prefix}perl-Socket +Epoch: 1 +Version: %(echo '%{cpan_version}' | tr '_' '.') +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: %{?scl_prefix}perl +BuildRequires: %{?scl_prefix}perl(Config) +BuildRequires: %{?scl_prefix}perl(ExtUtils::CBuilder) +BuildRequires: %{?scl_prefix}perl(ExtUtils::Constant) >= 0.23 +# ExtUtils::Constant::ProxySubs not used +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +BuildRequires: %{?scl_prefix}perl(strict) +BuildRequires: %{?scl_prefix}perl(warnings) +# Run-time: +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(Exporter) +# Scalar::Util is needed only if getaddrinfo(3) does not exist. Not our case. +BuildRequires: %{?scl_prefix}perl(warnings::register) +BuildRequires: %{?scl_prefix}perl(XSLoader) +# Tests only: +BuildRequires: %{?scl_prefix}perl(Errno) +BuildRequires: %{?scl_prefix}perl(Test::More) +%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')} +%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)} +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) + +%{?perl_default_filter} + +%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-%{cpan_version} + +%build +%{?scl:scl enable %{scl} '} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{?scl:'} +%{?scl:scl enable %{scl} "} +make %{?_smp_mflags} +%{?scl:"} + +%install +%{?scl:scl enable %{scl} "} +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{?scl:"} +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{?scl:scl enable %{scl} "} +make test +%{?scl:"} + +%files +%doc Artistic Changes Copying LICENSE +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Socket* +%{_mandir}/man3/* + +%changelog +* Thu Feb 13 2014 Jitka Plesnikova - 1:2.013-2 +- Removed useless filter of dependencies +- Resolves: rhbz#1064855 + +* Wed Nov 13 2013 Jitka Plesnikova - 1:2.013-1 +- 2.013 bump + +* Wed Feb 13 2013 Jitka Plesnikova - 2.009-1 +- SCL package - initial import