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