[packages/python-PySocks] - new

qboosh qboosh at pld-linux.org
Mon Mar 28 10:58:16 CEST 2016


commit a22490d709d12b69ab7b70e6bd95134b95d7c985
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 28 10:58:04 2016 +0200

    - new

 python-PySocks.spec | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
---
diff --git a/python-PySocks.spec b/python-PySocks.spec
new file mode 100644
index 0000000..982be83
--- /dev/null
+++ b/python-PySocks.spec
@@ -0,0 +1,95 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	SOCKS client module for Python 2
+Summary(pl.UTF-8):	Moduł klienta SOCKS dla Pythona 2
+Name:		python-PySocks
+Version:	1.5.6
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/simple/pysocks/
+Source0:	https://pypi.python.org/packages/source/P/PySocks/PySocks-%{version}.tar.gz
+# Source0-md5:	c825c7c52b2c79dde73cac8d04bd25cb
+URL:		https://pypi.python.org/pypi/PySocks
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.5
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+%endif
+Requires:	python-modules >= 1:2.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a standard socket-like interface for Python
+for tunneling connections through SOCKS proxies.
+
+%description -l pl.UTF-8
+Ten moduł udostępnia standardowy interfejs linii gniazd dla Pythona
+służący do tunelowania połączeń poprzez proxy SOCKS.
+
+%package -n python3-PySocks
+Summary:	SOCKS client module for Python 3
+Summary(pl.UTF-8):	Moduł klienta SOCKS dla Pythona 3
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-PySocks
+This module provides a standard socket-like interface for Python
+for tunneling connections through SOCKS proxies.
+
+%description -n python3-PySocks -l pl.UTF-8
+Ten moduł udostępnia standardowy interfejs linii gniazd dla Pythona
+służący do tunelowania połączeń poprzez proxy SOCKS.
+
+%prep
+%setup -q -n PySocks-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/socks.py[co]
+%{py_sitescriptdir}/sockshandler.py[co]
+%{py_sitescriptdir}/PySocks-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-PySocks
+%defattr(644,root,root,755)
+%{py3_sitescriptdir}/socks.py
+%{py3_sitescriptdir}/sockshandler.py
+%{py3_sitescriptdir}/__pycache__/socks.cpython-*.py[co]
+%{py3_sitescriptdir}/__pycache__/sockshandler.cpython-*.py[co]
+%{py3_sitescriptdir}/PySocks-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PySocks.git/commitdiff/a22490d709d12b69ab7b70e6bd95134b95d7c985



More information about the pld-cvs-commit mailing list