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