From ec0adb1de3f3b63eee450e8819eedc255c6e61b6c1bbc4bc038986106c61d2a0 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Tue, 21 Mar 2017 14:15:34 +0000 Subject: [PATCH] Accepting request 481794 from devel:languages:python:singlespec singlespec + update OBS-URL: https://build.opensuse.org/request/show/481794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySocks?expand=0&rev=4 --- PySocks-1.5.6.tar.gz | 3 --- PySocks-1.6.6.tar.gz | 3 +++ python-PySocks.changes | 8 ++++++++ python-PySocks.spec | 38 +++++++++++++++++++++----------------- 4 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 PySocks-1.5.6.tar.gz create mode 100644 PySocks-1.6.6.tar.gz diff --git a/PySocks-1.5.6.tar.gz b/PySocks-1.5.6.tar.gz deleted file mode 100644 index 47dbe1b..0000000 --- a/PySocks-1.5.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a62b35b13968ba3642a973d115ae6a11be886b5f5ae0841a3ecad4b4f1d7deb1 -size 9189 diff --git a/PySocks-1.6.6.tar.gz b/PySocks-1.6.6.tar.gz new file mode 100644 index 0000000..f6693c3 --- /dev/null +++ b/PySocks-1.6.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02419a225ff5dcfc3c9695ef8fc9b4d8cc99658e650c6d4718d4c8f451e63f41 +size 282014 diff --git a/python-PySocks.changes b/python-PySocks.changes index bb20ca1..6fa6302 100644 --- a/python-PySocks.changes +++ b/python-PySocks.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 21 14:00:08 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- update to 1.6.6 + * python 3.6 support + * bug fixes + ------------------------------------------------------------------- Fri Mar 11 21:15:41 UTC 2016 - toddrme2178@gmail.com diff --git a/python-PySocks.spec b/python-PySocks.spec index eee8fbb..2a4cd08 100644 --- a/python-PySocks.spec +++ b/python-PySocks.spec @@ -1,7 +1,7 @@ # # spec file for package python-PySocks # -# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -14,26 +14,30 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-PySocks -Version: 1.5.6 +Version: 1.6.6 Release: 0 +Summary: A Python SOCKS client module License: BSD-3-Clause -Summary: A Python SOCKS client module. -Url: https://github.com/Anorov/PySocks Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/P/PySocks/PySocks-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -Provides: python-SocksiPy = %{version} -Obsoletes: python-SocksiPy < %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +Url: https://github.com/Anorov/PySocks +Source: https://files.pythonhosted.org/packages/source/P/PySocks/PySocks-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%ifpython2 +Provides: %{oldpython}-SocksiPy = %{version} +Obsoletes: %{oldpython}-SocksiPy < %{version} %endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages %description A Python SOCKS client module. @@ -47,12 +51,12 @@ See https://github.com/Anorov/PySocks for more information. %setup -q -n PySocks-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/*