483216
%bcond_with tests
483216
483216
%global pypi_name   PySocks
483216
%global modname     pysocks
483216
%global sum         A Python SOCKS client module
483216
483216
Name:               python-%{modname}
483216
Version:            1.7.1
483216
Release:            4%{?dist}
483216
Summary:            %{sum}
483216
483216
License:            BSD
483216
URL:                https://github.com/Anorov/%{pypi_name}
483216
Source0:            %pypi_source
483216
BuildArch:          noarch
483216
# Exclude i686 arch. Due to a modularity issue it's being added to the
483216
# x86_64 compose of CRB, but we don't want to ship it at all.
483216
# See: https://projects.engineering.redhat.com/browse/RCM-72605
483216
ExcludeArch:        i686
483216
483216
%global _description \
483216
A fork of SocksiPy with bug fixes and extra features.\
483216
\
483216
Acts as a drop-in replacement to the socket module. Featuring:\
483216
\
483216
- SOCKS proxy client for Python 2.6 - 3.x\
483216
- TCP and UDP both supported\
483216
- HTTP proxy client included but not supported or recommended (you should use\
483216
  urllib2's or requests' own HTTP proxy interface)\
483216
- urllib2 handler included.
483216
483216
%description
483216
%_description
483216
483216
%package -n python%{python3_pkgversion}-%{modname}
483216
Summary:            %{sum}
483216
BuildRequires:      python%{python3_pkgversion}-devel
483216
BuildRequires:      python%{python3_pkgversion}-rpm-macros
483216
BuildRequires:      python%{python3_pkgversion}-setuptools
483216
# for tests
483216
%if %{with tests}
483216
BuildRequires:      python%{python3_pkgversion}-pytest
483216
BuildRequires:      python%{python3_pkgversion}-psutil
483216
#BuildRequires:      python%%{python3_pkgversion}-test_server
483216
%endif
483216
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
483216
483216
# This package doesn't actually exist...
483216
# but if it did, we would conflict with it.
483216
Conflicts:  python%{python3_pkgversion}-SocksiPy
483216
483216
%description -n python%{python3_pkgversion}-%{modname}
483216
%_description
483216
This package is for Python3 version %{python3_version} only.
483216
483216
%prep
483216
%autosetup -n %{pypi_name}-%{version}
483216
# drop useless 3rdparty code
483216
rm -rfv test/bin
483216
483216
%build
483216
%py3_build
483216
483216
%install
483216
%py3_install
483216
483216
%check
483216
%if %{with tests}
483216
%{__python3} setup.py test
483216
%endif
483216
483216
%files -n python%{python3_pkgversion}-%{modname}
483216
%doc README.md
483216
%license LICENSE
483216
%{python3_sitelib}/socks.py*
483216
%{python3_sitelib}/sockshandler.py*
483216
%{python3_sitelib}/__pycache__/*socks*
483216
%{python3_sitelib}/%{pypi_name}-%{version}-*
483216
483216
%changelog
483216
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.7.1-4
483216
- Exclude unsupported i686 arch
483216
483216
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.7.1-3
483216
- Adjusted for Python 3.8 module in RHEL 8
483216
483216
* Thu Oct 03 2019 Petr Viktorin <pviktori@redhat.com> - 1.7.1-2
483216
- Remove unused Python 2 test dependencies
483216
483216
* Sun Sep 22 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.1-1
483216
- Update to 1.7.1. Fixes bug #1753823
483216
483216
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-4
483216
- Rebuilt for Python 3.8
483216
483216
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-3
483216
- Bootstrap for Python 3.8
483216
483216
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
483216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
483216
483216
* Sat May 18 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.0-1
483216
- Update to 1.7.0. Fixes bug #1708882
483216
483216
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-7
483216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
483216
483216
* Sun Nov 11 2018 Kevin Fenzi <kevin@scrye.com> - 1.6.8-6
483216
- Add upstream patch to avoid DeprecationWarning. Fixes bug #1648583
483216
483216
* Wed Oct 03 2018 Raphael Groner <projects.rg@smart.ms> - 1.6.8-5
483216
- add python3_other subpackage for epel7
483216
- prepare removal of python2 subpackage in Fedora
483216
- use pypi macros
483216
- try to enable tests provided actually from tarball
483216
483216
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-4
483216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
483216
483216
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.8-3
483216
- Rebuilt for Python 3.7
483216
483216
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
483216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
483216
483216
* Fri Dec 22 2017 Kevin Fenzi <kevin@scrye.com> - 1.6.8-1
483216
- Update to 1.6.8. Fixes bug #1528490
483216
483216
* Mon Sep 11 2017 Carl George <carl@george.computer> - 1.6.7-1
483216
- Latest upstream
483216
- Add setuptools dependency
483216
483216
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-5
483216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
483216
483216
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-4
483216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
483216
483216
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.5.7-3
483216
- Rebuild for Python 3.6
483216
483216
* Mon Nov 28 2016 Tim Orling <ticotimo@gmail.com> - 1.5.7-2
483216
- Ship python34-pysocks in EL6
483216
483216
* Sat Sep 17 2016 Kevin Fenzi <kevin@scrye.com> - 1.5.7-1
483216
- Update to 1.5.7
483216
483216
* Fri Sep 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.5.6-6
483216
- Ship python34-pysocks in EPEL7
483216
483216
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-5
483216
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
483216
483216
* Fri Jul 15 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-4
483216
- Change our conflicts on python-SocksiPy to an obsoletes/provides.
483216
  https://bugzilla.redhat.com/show_bug.cgi?id=1334407
483216
483216
* Mon May 09 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-3
483216
- Fix typo in explicit conflicts.
483216
483216
* Tue May 03 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-2
483216
- We don't actually need setuptools here.
483216
483216
* Mon May 02 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-1
483216
- Initial package for Fedora