forked from pool/python-PySocks
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
This commit is contained in:
committed by
Git OBS Bridge
parent
d0f94b05b3
commit
ec0adb1de3
@@ -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}/*
|
||||
|
||||
|
Reference in New Issue
Block a user