From 15173728caf55f5b8d50837bbcaaac763e37e712 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Feb 19 2018 16:29:16 +0000 Subject: Initial import (perl-IO-Socket-Socks-0.74-1) IO::Socket::Socks connects to a SOCKS proxy and tells it to open a connection to a remote host/port when the object is created. The object you receive can be used directly as a socket (with IO::Socket interface) for sending and receiving data to and from the remote host. In addition to creating a socks client, this module could be used to create a socks server. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a892ef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/IO-Socket-Socks-[0-9.]*.tar.gz diff --git a/perl-IO-Socket-Socks.spec b/perl-IO-Socket-Socks.spec new file mode 100644 index 0000000..f087742 --- /dev/null +++ b/perl-IO-Socket-Socks.spec @@ -0,0 +1,74 @@ +Name: perl-IO-Socket-Socks +Version: 0.74 +Release: 1%{?dist} +Summary: Provides a way to create socks (4 or 5) client or server +License: LGPLv2+ +URL: http://search.cpan.org/dist/IO-Socket-Socks/ +Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLEG/IO-Socket-Socks-%{version}.tar.gz +BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52 +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(constant) >= 1.03 +BuildRequires: perl(Errno) +BuildRequires: perl(Exporter) +BuildRequires: perl(IO::Select) +BuildRequires: perl(overload) +BuildRequires: perl(Socket) >= 1.94 +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Test Suite +BuildRequires: perl(base) +BuildRequires: perl(Cwd) +BuildRequires: perl(IO::Socket) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Time::HiRes) +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# IPv6 support requires perl(IO::Socket::IP) ≥ 0.36, which is not available in EL-7 +# so we have to fall back to IPv4-only IO::Socket::INET +%if 0%{?el7} +BuildRequires: perl(IO::Socket::INET) +Requires: perl(IO::Socket::INET) +%else +BuildRequires: perl(IO::Socket::IP) >= 0.36 +Requires: perl(IO::Socket::IP) >= 0.36 +%endif + +%description +IO::Socket::Socks connects to a SOCKS proxy and tells it to open a connection +to a remote host/port when the object is created. The object you receive can be +used directly as a socket (with IO::Socket interface) for sending and receiving +data to and from the remote host. In addition to creating a socks client, this +module could be used to create a socks server. + +%prep +%setup -q -n IO-Socket-Socks-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/IO/ +%{_mandir}/man3/IO::Socket::Socks.3* + +%changelog +* Fri Feb 16 2018 Paul Howarth - 0.74-1 +- Initial RPM version diff --git a/sources b/sources new file mode 100644 index 0000000..fa61833 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (IO-Socket-Socks-0.74.tar.gz) = db6154f3c7f532c6c8a04242e0d301bd124154ebbbc9bbcf0812dda5350bebc501a833057533edeb6b634141bfab5c92b4c1714c348226be1c967aa7b4f2ebe5