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