!2 delete python2 dependency
From: @weiwei_150212 Reviewed-by: @hanxinke Signed-off-by: @hanxinke
This commit is contained in:
commit
ddf4dadaf3
@ -1,6 +1,6 @@
|
||||
Name: python-pysocks
|
||||
Version: 1.7.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A Python SOCKS client module
|
||||
License: BSD
|
||||
URL: https://github.com/Anorov/PySocks
|
||||
@ -13,24 +13,6 @@ that uses the Internet or another TCP/IP-based network to add
|
||||
support for connection through a SOCKS proxy server with as much
|
||||
ease as possible.
|
||||
|
||||
%package -n python2-pysocks
|
||||
Summary: A Python SOCKS client module
|
||||
BuildRequires: python2-devel python2-setuptools
|
||||
# for tests
|
||||
BuildRequires: python2-pytest
|
||||
%{?python_provide:%python_provide python2-pysocks}
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1334407
|
||||
Obsoletes: python-SocksiPy python2-SocksiPy
|
||||
Provides: python-SocksiPy python2-SocksiPy
|
||||
|
||||
%description -n python2-pysocks
|
||||
This module was designed to allow developers of Python software
|
||||
that uses the Internet or another TCP/IP-based network to add
|
||||
support for connection through a SOCKS proxy server with as much
|
||||
ease as possible.
|
||||
This package is for Python2 only.
|
||||
|
||||
%package -n python3-pysocks
|
||||
Summary: A Python SOCKS client module
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
@ -56,27 +38,17 @@ This package is for Python3 version python3 only.
|
||||
rm -rfv test/bin
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
# package test_server is needed but not packaged
|
||||
%if 0
|
||||
%{__python2} setup.py test
|
||||
%{__python3} setup.py test
|
||||
%endif
|
||||
|
||||
%files -n python2-pysocks
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/socks.py*
|
||||
%{python2_sitelib}/sockshandler.py*
|
||||
%{python2_sitelib}/PySocks-%{version}*
|
||||
|
||||
%files -n python3-pysocks
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
@ -89,6 +61,9 @@ rm -rfv test/bin
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
||||
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 1.7.0-3
|
||||
- remove python2.
|
||||
|
||||
* Sat Oct 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-2
|
||||
- optimize spec file.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user