|
|
8f6a9f |
%global __python3 /usr/bin/python3.11
|
|
|
8f6a9f |
%global python3_pkgversion 3.11
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%if 0%{?fedora}
|
|
|
8f6a9f |
%global with_python3_tests 1
|
|
|
8f6a9f |
%endif
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%global pypi_name PySocks
|
|
|
8f6a9f |
%global modname pysocks
|
|
|
8f6a9f |
%global sum A Python SOCKS client module
|
|
|
8f6a9f |
|
|
|
8f6a9f |
Name: python%{python3_pkgversion}-%{modname}
|
|
|
8f6a9f |
Version: 1.7.1
|
|
|
8f6a9f |
Release: 1%{?dist}
|
|
|
8f6a9f |
Summary: %{sum}
|
|
|
8f6a9f |
|
|
|
8f6a9f |
License: BSD
|
|
|
8f6a9f |
URL: https://github.com/Anorov/%{pypi_name}
|
|
|
8f6a9f |
Source0: %pypi_source
|
|
|
8f6a9f |
BuildArch: noarch
|
|
|
8f6a9f |
|
|
|
8f6a9f |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
8f6a9f |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
8f6a9f |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
8f6a9f |
# for tests
|
|
|
8f6a9f |
%if 0%{?with_python3_tests}
|
|
|
8f6a9f |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
8f6a9f |
BuildRequires: python%{python3_pkgversion}-psutil
|
|
|
8f6a9f |
BuildRequires: python%{python3_pkgversion}-test_server
|
|
|
8f6a9f |
%endif
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%global _description \
|
|
|
8f6a9f |
A fork of SocksiPy with bug fixes and extra features.\
|
|
|
8f6a9f |
\
|
|
|
8f6a9f |
Acts as a drop-in replacement to the socket module. Featuring:\
|
|
|
8f6a9f |
\
|
|
|
8f6a9f |
- SOCKS proxy client for Python 2.6 - 3.x\
|
|
|
8f6a9f |
- TCP and UDP both supported\
|
|
|
8f6a9f |
- HTTP proxy client included but not supported or recommended (you should use\
|
|
|
8f6a9f |
urllib2's or requests' own HTTP proxy interface)\
|
|
|
8f6a9f |
- urllib2 handler included.
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%description
|
|
|
8f6a9f |
%_description
|
|
|
8f6a9f |
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%prep
|
|
|
8f6a9f |
%autosetup -n %{pypi_name}-%{version}
|
|
|
8f6a9f |
# drop useless 3rdparty code
|
|
|
8f6a9f |
rm -rfv test/bin
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%build
|
|
|
8f6a9f |
%py3_build
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%install
|
|
|
8f6a9f |
%py3_install
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%check
|
|
|
8f6a9f |
# https://github.com/Anorov/PySocks/issues/37
|
|
|
8f6a9f |
# FIXME python module named test_server is needed but not packaged
|
|
|
8f6a9f |
%if 0%{?with_python3_tests}
|
|
|
8f6a9f |
%{__python3} setup.py test
|
|
|
8f6a9f |
%endif
|
|
|
8f6a9f |
|
|
|
8f6a9f |
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
8f6a9f |
%doc README.md
|
|
|
8f6a9f |
%license LICENSE
|
|
|
8f6a9f |
%{python3_sitelib}/socks.py*
|
|
|
8f6a9f |
%{python3_sitelib}/sockshandler.py*
|
|
|
8f6a9f |
%{python3_sitelib}/__pycache__/*socks*
|
|
|
8f6a9f |
%{python3_sitelib}/%{pypi_name}-%{version}-*
|
|
|
8f6a9f |
|
|
|
8f6a9f |
|
|
|
8f6a9f |
%changelog
|
|
|
8f6a9f |
* Mon Nov 14 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.7.1-1
|
|
|
8f6a9f |
- Initial package
|
|
|
8f6a9f |
- Fedora contributions by:
|
|
|
8f6a9f |
Carl George <carl@george.computer>
|
|
|
8f6a9f |
Charalampos Stratakis <cstratak@redhat.com>
|
|
|
8f6a9f |
Kevin Fenzi <kevin@scrye.com>
|
|
|
8f6a9f |
Miro HronĨok <miro@hroncok.cz>
|
|
|
8f6a9f |
Petr Viktorin <pviktori@redhat.com>
|
|
|
8f6a9f |
Ralph Bean <rbean@redhat.com>
|
|
|
8f6a9f |
Raphael Groner <raphgro@fedoraproject.org>
|
|
|
8f6a9f |
Tim Orling <timothy.t.orling@linux.intel.com>
|