[python-socksipychain] initial version

lzap lzap at fedoraproject.org
Fri May 3 19:05:00 UTC 2013


commit f90763ac0f0a2cf0a2df930fdaba2601be38566d
Author: Lukas Zapletal <lzap+git at redhat.com>
Date:   Fri May 3 21:04:51 2013 +0200

    initial version

 .gitignore                |    1 +
 python-socksipychain.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5e512d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-SocksipyChain-2.0.12.tar.gz
diff --git a/python-socksipychain.spec b/python-socksipychain.spec
new file mode 100644
index 0000000..2649f1b
--- /dev/null
+++ b/python-socksipychain.spec
@@ -0,0 +1,63 @@
+%if 0%{?rhel} && 0%{?rhel} <= 5
+  %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+  %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+%global canonicalname socksipychain
+%global upstreamname SocksipyChain
+
+Name:       python-%{canonicalname}
+Version:    2.0.12
+Release:    3%{?dist}
+Summary:    A Python SOCKS/HTTP Proxy module
+
+Group:      Development/Libraries
+License:    BSD
+Url:        http://github.com/pagekite/Py%{canonicalname}
+Source0:    http://pagekite.net/pk/src/python-%{upstreamname}-%{version}.tar.gz
+
+%if 0%{?rhel} && 0%{?rhel} <= 5
+BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+%endif
+
+BuildArch:  noarch
+
+BuildRequires:  python2-devel
+
+
+%description
+This Python module allows you to create TCP connections through a chain
+of SOCKS or HTTP proxies without any special effort. It also supports
+TLS/SSL encryption if the OpenSSL modules are installed.
+
+
+%prep
+%setup -q -n python-%{upstreamname}-%{version}
+
+
+%build
+
+
+%install
+install -Dpm 0755 sockschain/__init__.py $RPM_BUILD_ROOT%{python_sitelib}/sockschain/__init__.py
+
+
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+%endif
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README.md BUGS
+%{python_sitelib}/sockschain
+
+%changelog
+* Sat Apr 14 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0.12-3
+- Package review fixes
+
+* Wed Feb 20 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0.12-2
+- Initial package review fixes
+
+* Fri Feb 08 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0.12-1
+- Initial version.
diff --git a/sources b/sources
index e69de29..4d32a2f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8ee8ff40e566aad9d76672a4ee745845  python-SocksipyChain-2.0.12.tar.gz


More information about the scm-commits mailing list