|
|
bbc2e6 |
%global cpan_version 2.010
|
|
|
bbc2e6 |
Name: perl-Socket
|
|
|
bbc2e6 |
Version: %(echo '%{cpan_version}' | tr '_' '.')
|
|
|
85d510 |
Release: 5%{?dist}
|
|
|
bbc2e6 |
Summary: Networking constants and support functions
|
|
|
bbc2e6 |
License: GPL+ or Artistic
|
|
|
bbc2e6 |
Group: Development/Libraries
|
|
|
bbc2e6 |
URL: http://search.cpan.org/dist/Socket/
|
|
|
bbc2e6 |
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Socket-%{cpan_version}.tar.gz
|
|
|
53a05a |
# Fix calling getnameinfo() on tainted value BZ#1200167
|
|
|
53a05a |
# Backported fixes from 2.017 and 2.018
|
|
|
53a05a |
Patch0: Socket-2.018-Fix-calling-getnameinfo-on-tainted-value.patch
|
|
|
85d510 |
# Make Socket::inet_aton() thread safe, CPAN RT#129189, bug #1693293
|
|
|
85d510 |
Patch1: Socket-2.010-inet_aton-Use-getaddrinfo-if-possible.patch
|
|
|
bbc2e6 |
BuildRequires: perl
|
|
|
bbc2e6 |
BuildRequires: perl(Config)
|
|
|
bbc2e6 |
BuildRequires: perl(ExtUtils::CBuilder)
|
|
|
bbc2e6 |
BuildRequires: perl(ExtUtils::Constant) >= 0.23
|
|
|
bbc2e6 |
# ExtUtils::Constant::ProxySubs not used
|
|
|
bbc2e6 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
bbc2e6 |
BuildRequires: perl(strict)
|
|
|
bbc2e6 |
BuildRequires: perl(warnings)
|
|
|
bbc2e6 |
# Run-time:
|
|
|
bbc2e6 |
BuildRequires: perl(Carp)
|
|
|
bbc2e6 |
BuildRequires: perl(Exporter)
|
|
|
bbc2e6 |
# Scalar::Util is needed only if getaddrinfo(3) does not exist. Not our case.
|
|
|
bbc2e6 |
BuildRequires: perl(warnings::register)
|
|
|
bbc2e6 |
BuildRequires: perl(XSLoader)
|
|
|
bbc2e6 |
# Tests only:
|
|
|
bbc2e6 |
BuildRequires: perl(Errno)
|
|
|
bbc2e6 |
BuildRequires: perl(Test::More)
|
|
|
bbc2e6 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%{?perl_default_filter}
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%description
|
|
|
bbc2e6 |
This module provides a variety of constants, structure manipulators and other
|
|
|
bbc2e6 |
functions related to socket-based networking. The values and functions
|
|
|
bbc2e6 |
provided are useful when used in conjunction with Perl core functions such as
|
|
|
bbc2e6 |
socket(), setsockopt() and bind(). It also provides several other support
|
|
|
bbc2e6 |
functions, mostly for dealing with conversions of network addresses between
|
|
|
bbc2e6 |
human-readable and native binary forms, and for hostname resolver operations.
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%prep
|
|
|
bbc2e6 |
%setup -q -n Socket-%{cpan_version}
|
|
|
53a05a |
%patch0 -p1
|
|
|
85d510 |
%patch1 -p1
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%build
|
|
|
bbc2e6 |
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
bbc2e6 |
make %{?_smp_mflags}
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%install
|
|
|
bbc2e6 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
bbc2e6 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
bbc2e6 |
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
bbc2e6 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%check
|
|
|
bbc2e6 |
make test
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%files
|
|
|
bbc2e6 |
%doc Artistic Changes Copying LICENSE
|
|
|
bbc2e6 |
%{perl_vendorarch}/auto/*
|
|
|
bbc2e6 |
%{perl_vendorarch}/Socket*
|
|
|
bbc2e6 |
%{_mandir}/man3/*
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
%changelog
|
|
|
85d510 |
* Mon Apr 15 2019 Petr Pisar <ppisar@redhat.com> - 2.010-5
|
|
|
85d510 |
- Make Socket::inet_aton() thread safe (bug #1693293)
|
|
|
85d510 |
|
|
|
53a05a |
* Thu Mar 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.010-4
|
|
|
53a05a |
- Fix calling getnameinfo on tainted value (bug #1200167)
|
|
|
53a05a |
|
|
|
899522 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.010-3
|
|
|
899522 |
- Mass rebuild 2014-01-24
|
|
|
899522 |
|
|
|
899522 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.010-2
|
|
|
899522 |
- Mass rebuild 2013-12-27
|
|
|
899522 |
|
|
|
bbc2e6 |
* Tue Jun 25 2013 Petr Pisar <ppisar@redhat.com> - 2.010-1
|
|
|
bbc2e6 |
- 2.010 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Fri May 24 2013 Petr Pisar <ppisar@redhat.com> - 2.009-3
|
|
|
bbc2e6 |
- Specify all dependencies
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.009-2
|
|
|
bbc2e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Jan 21 2013 Petr Pisar <ppisar@redhat.com> - 2.009-1
|
|
|
bbc2e6 |
- 2.009 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Thu Jan 03 2013 Petr Pisar <ppisar@redhat.com> - 2.008-1
|
|
|
bbc2e6 |
- 2.008 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Dec 17 2012 Petr Pisar <ppisar@redhat.com> - 2.007-1
|
|
|
bbc2e6 |
- 2.007 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Thu Nov 08 2012 Petr Pisar <ppisar@redhat.com> - 2.006-2
|
|
|
bbc2e6 |
- Update description
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 2.006-1
|
|
|
bbc2e6 |
- 2.006 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 2.005-1
|
|
|
bbc2e6 |
- 2.005 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 2.004-1
|
|
|
bbc2e6 |
- 2.004 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.002-3
|
|
|
bbc2e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 2.002-2
|
|
|
bbc2e6 |
- Perl 5.16 rebuild
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 2.002-1
|
|
|
bbc2e6 |
- 2.002 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.001-2
|
|
|
bbc2e6 |
- Perl 5.16 rebuild
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Wed Mar 28 2012 Petr Pisar <ppisar@redhat.com> - 2.001-1
|
|
|
bbc2e6 |
- 2.001 bump (bug-fixing release)
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Tue Mar 27 2012 Petr Pisar <ppisar@redhat.com> - 2.000-3
|
|
|
bbc2e6 |
- Fix invalid write while unpacking AF_UNIX sockaddr (bug #806543)
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 2.000-2
|
|
|
bbc2e6 |
- Increase release number due to F17 build
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Wed Mar 14 2012 Petr Pisar <ppisar@redhat.com> - 2.000-1
|
|
|
bbc2e6 |
- 2.000 bump
|
|
|
bbc2e6 |
- Fix a buffer overflow (RT#75623)
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Wed Feb 22 2012 Petr Pisar <ppisar@redhat.com> - 1.99-1
|
|
|
bbc2e6 |
- 1.99 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Thu Feb 16 2012 Petr Pisar <ppisar@redhat.com> - 1.98-1
|
|
|
bbc2e6 |
- 1.98 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-2
|
|
|
bbc2e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Dec 19 2011 Petr Pisar <ppisar@redhat.com> - 1.97-1
|
|
|
bbc2e6 |
- 1.97 bump
|
|
|
bbc2e6 |
- License texts added
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Mon Dec 12 2011 Petr Pisar <ppisar@redhat.com> - 1.96-1
|
|
|
bbc2e6 |
- 1.96 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Fri Dec 02 2011 Petr Pisar <ppisar@redhat.com> - 1.95-1
|
|
|
bbc2e6 |
- 1.95 bump
|
|
|
bbc2e6 |
|
|
|
bbc2e6 |
* Wed Nov 23 2011 Petr Pisar <ppisar@redhat.com> 1.94.07-1
|
|
|
bbc2e6 |
- 1.94_07 packaged.
|