[perl-SOCKS] Initial import (#1115846).
David Dick
ddick at fedoraproject.org
Wed Jul 9 11:00:59 UTC 2014
commit 74c54cfc5dc8f763dd09a6f35bacb4b0cb035035
Author: David Dick <ddick at cpan.org>
Date: Wed Jul 9 21:01:10 2014 +1000
Initial import (#1115846).
.gitignore | 1 +
perl-SOCKS.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a724b4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/SOCKS-0.03.tar.gz
diff --git a/perl-SOCKS.spec b/perl-SOCKS.spec
new file mode 100644
index 0000000..a2d650d
--- /dev/null
+++ b/perl-SOCKS.spec
@@ -0,0 +1,54 @@
+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 <ddick at cpan.org> - 0.03-1
+- Initial release
diff --git a/sources b/sources
index e69de29..1ec8c46 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+81f63a1fb252d211a083909fbdc1611b SOCKS-0.03.tar.gz
More information about the scm-commits
mailing list