834156
%global distname PySocks
834156
%global flatname pysocks
834156
%global sum     A Python SOCKS client module
834156
834156
Name:               python-pysocks
834156
Version:            1.6.8
834156
Release:            3%{?dist}
834156
Summary:            %{sum}
834156
834156
License:            BSD
834156
URL:                https://github.com/Anorov/PySocks
834156
Source0:            https://files.pythonhosted.org/packages/source/P/PySocks/PySocks-%{version}.tar.gz
834156
BuildArch:          noarch
834156
834156
834156
%description
834156
A fork of SocksiPy with bug fixes and extra features.
834156
834156
Acts as a drop-in replacement to the socket module. Featuring:
834156
834156
- SOCKS proxy client for Python 2.6 - 3.x
834156
- TCP and UDP both supported
834156
- HTTP proxy client included but not supported or recommended (you should use
834156
  urllib2's or requests' own HTTP proxy interface)
834156
- urllib2 handler included.
834156
834156
834156
%package -n python%{python3_pkgversion}-%{flatname}
834156
Summary:            %{sum}
834156
BuildRequires:      python%{python3_pkgversion}-devel
834156
BuildRequires:      python%{python3_pkgversion}-setuptools
834156
BuildRequires:      python%{python3_pkgversion}-setuptools
834156
%{?python_provide:%python_provide python%{python3_pkgversion}-%{flatname}}
834156
834156
# This package doesn't actually exist... but if it did, we would conflict with
834156
# it.
834156
Conflicts:  python%{python3_pkgversion}-SocksiPy
834156
834156
834156
%description -n python%{python3_pkgversion}-%{flatname}
834156
A fork of SocksiPy with bug fixes and extra features.
834156
834156
Acts as a drop-in replacement to the socket module. Featuring:
834156
834156
- SOCKS proxy client for Python 2.6 - 3.x
834156
- TCP and UDP both supported
834156
- HTTP proxy client included but not supported or recommended (you should use
834156
  urllib2's or requests' own HTTP proxy interface)
834156
- urllib2 handler included.
834156
834156
834156
%prep
834156
%autosetup -n %{distname}-%{version}
834156
834156
%build
834156
%py3_build
834156
834156
834156
%install
834156
%py3_install
834156
834156
834156
#%%check
834156
## No tests included in the tarball...
834156
## https://github.com/Anorov/PySocks/issues/37
834156
#%%{__python3} setup.py test
834156
834156
834156
%files -n python%{python3_pkgversion}-%{flatname}
834156
%doc README.md
834156
%license LICENSE
834156
%{python3_sitelib}/socks.py*
834156
%{python3_sitelib}/sockshandler.py*
834156
%{python3_sitelib}/__pycache__/*socks*
834156
%{python3_sitelib}/%{distname}-%{version}-*
834156
834156
834156
%changelog
834156
* Wed Jul 11 2018 Petr Viktorin <pviktori@redhat.com> - 1.6.8-3
834156
- Remove the Python 2 subpackage
834156
  https://bugzilla.redhat.com/show_bug.cgi?id=1590407
834156
834156
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
834156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
834156
834156
* Fri Dec 22 2017 Kevin Fenzi <kevin@scrye.com> - 1.6.8-1
834156
- Update to 1.6.8. Fixes bug #1528490
834156
834156
* Mon Sep 11 2017 Carl George <carl@george.computer> - 1.6.7-1
834156
- Latest upstream
834156
- Add setuptools dependency
834156
834156
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-5
834156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
834156
834156
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-4
834156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
834156
834156
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.5.7-3
834156
- Rebuild for Python 3.6
834156
834156
* Mon Nov 28 2016 Tim Orling <ticotimo@gmail.com> - 1.5.7-2
834156
- Ship python34-pysocks in EL6
834156
834156
* Sat Sep 17 2016 Kevin Fenzi <kevin@scrye.com> - 1.5.7-1
834156
- Update to 1.5.7
834156
834156
* Fri Sep 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.5.6-6
834156
- Ship python34-pysocks in EPEL7
834156
834156
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-5
834156
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
834156
834156
* Fri Jul 15 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-4
834156
- Change our conflicts on python-SocksiPy to an obsoletes/provides.
834156
  https://bugzilla.redhat.com/show_bug.cgi?id=1334407
834156
834156
* Mon May 09 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-3
834156
- Fix typo in explicit conflicts.
834156
834156
* Tue May 03 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-2
834156
- We don't actually need setuptools here.
834156
834156
* Mon May 02 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-1
834156
- Initial package for Fedora