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