1517372
Name:		perl-IO-Socket-Socks
1517372
Version:	0.74
94c43ed
Release:	5%{?dist}
1517372
Summary:	Provides a way to create socks (4 or 5) client or server
1517372
License:	LGPLv2+
5686fa5
URL:		https://metacpan.org/release/IO-Socket-Socks
5686fa5
Source0:	https://cpan.metacpan.org/authors/id/O/OL/OLEG/IO-Socket-Socks-%{version}.tar.gz
1517372
BuildArch:	noarch
1517372
# Module Build
1517372
BuildRequires:	coreutils
1517372
BuildRequires:	findutils
1517372
BuildRequires:	make
1517372
BuildRequires:	perl-generators
1517372
BuildRequires:	perl-interpreter
1517372
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.52
00e2526
BuildRequires:	sed
1517372
# Module Runtime
1517372
BuildRequires:	perl(Carp)
1517372
BuildRequires:	perl(constant) >= 1.03
1517372
BuildRequires:	perl(Errno)
1517372
BuildRequires:	perl(Exporter)
1517372
BuildRequires:	perl(IO::Select)
1517372
BuildRequires:	perl(overload)
1517372
BuildRequires:	perl(Socket) >= 1.94
1517372
BuildRequires:	perl(strict)
1517372
BuildRequires:	perl(vars)
1517372
# Test Suite
1517372
BuildRequires:	perl(base)
1517372
BuildRequires:	perl(Cwd)
1517372
BuildRequires:	perl(IO::Socket)
1517372
BuildRequires:	perl(Test::More) >= 0.88
1517372
BuildRequires:	perl(Time::HiRes)
1517372
# Runtime
1517372
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
00e2526
Requires:	perl(constant) >= 1.03
00e2526
Requires:	perl(Socket) >= 1.94
1517372
1517372
# IPv6 support requires perl(IO::Socket::IP) ≥ 0.36, which is not available in EL-7
1517372
# so we have to fall back to IPv4-only IO::Socket::INET
1517372
%if 0%{?el7}
1517372
BuildRequires:	perl(IO::Socket::INET)
1517372
Requires:	perl(IO::Socket::INET)
1517372
%else
1517372
BuildRequires:	perl(IO::Socket::IP) >= 0.36
1517372
Requires:	perl(IO::Socket::IP) >= 0.36
1517372
%endif
1517372
1517372
%description
1517372
IO::Socket::Socks connects to a SOCKS proxy and tells it to open a connection
1517372
to a remote host/port when the object is created. The object you receive can be
1517372
used directly as a socket (with IO::Socket interface) for sending and receiving
1517372
data to and from the remote host. In addition to creating a socks client, this
1517372
module could be used to create a socks server.
1517372
1517372
%prep
1517372
%setup -q -n IO-Socket-Socks-%{version}
1517372
00e2526
# Don't want executable documentation
00e2526
chmod -c -x examples/*.pl
00e2526
00e2526
# Fix up shellbangs too
00e2526
sed -i -e 's|^#!/usr/bin/env perl|#!/usr/bin/perl|' examples/*.pl
00e2526
1517372
%build
1517372
perl Makefile.PL INSTALLDIRS=vendor
1517372
make %{?_smp_mflags}
1517372
1517372
%install
1517372
make pure_install DESTDIR=%{buildroot}
1517372
find %{buildroot} -type f -name .packlist -delete
1517372
%{_fixperms} -c %{buildroot}
1517372
1517372
%check
1517372
make test
1517372
1517372
%files
00e2526
%doc Changes examples/ README
1517372
%{perl_vendorlib}/IO/
1517372
%{_mandir}/man3/IO::Socket::Socks.3*
1517372
1517372
%changelog
94c43ed
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.74-5
94c43ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
94c43ed
5e14257
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.74-4
5e14257
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5e14257
a597a89
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.74-3
a597a89
- Perl 5.28 rebuild
a597a89
00e2526
* Mon Feb 19 2018 Paul Howarth <paul@city-fan.org> - 0.74-2
00e2526
- Incorporate feedback from package review (#1546648)
00e2526
  - Add version requirements for constant and Socket runtime dependencies
00e2526
  - Add examples/ as documentation
00e2526
1517372
* Fri Feb 16 2018 Paul Howarth <paul@city-fan.org> - 0.74-1
1517372
- Initial RPM version