Name: perl-SOCKS Version: 0.03 Release: 1%{?dist} Summary: SOCKS Perl module License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/SOCKS/ Source0: http://search.cpan.org/CPAN/authors/id/C/CL/CLINTDW/SOCKS-%{version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl(AutoLoader) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::Socket) BuildRequires: perl(strict) BuildRequires: perl(vars) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This is a SOCKS client module that can communicate with SOCKS v4 and v5 servers. It currently allows you to make outgoing and incoming TCP connections. UDP is not yet supported and is first on the TODO list. Included in this distribution is a sample program called "example" to show you how to use this module. Net::SOCKS documentation is available on your system by doing a "perldoc Net::SOCKS". %prep %setup -q -n SOCKS-%{version} sed -i 's|#!/.*/bin/perl|#!/usr/bin/perl|' example chmod -x example %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %doc Changes example README TODO %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Jul 03 2014 David Dick - 0.03-1 - Initial release