2018-09-30 21:43:00 +00:00
|
|
|
%if 0%{?fedora}
|
2023-06-16 06:19:33 +00:00
|
|
|
%global with_python3_tests 1
|
2018-09-30 21:43:00 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%global pypi_name PySocks
|
|
|
|
%global modname pysocks
|
|
|
|
%global sum A Python SOCKS client module
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
2019-09-23 01:10:48 +00:00
|
|
|
Version: 1.7.1
|
2023-07-21 13:02:55 +00:00
|
|
|
Release: 20%{?dist}
|
2016-05-03 13:06:16 +00:00
|
|
|
Summary: %{sum}
|
|
|
|
|
2023-03-12 21:21:21 +00:00
|
|
|
License: BSD-3-Clause
|
2018-09-30 21:43:00 +00:00
|
|
|
URL: https://github.com/Anorov/%{pypi_name}
|
|
|
|
Source0: %pypi_source
|
2016-05-03 13:06:16 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2018-09-30 21:43:00 +00:00
|
|
|
%global _description \
|
|
|
|
A fork of SocksiPy with bug fixes and extra features.\
|
|
|
|
\
|
|
|
|
Acts as a drop-in replacement to the socket module. Featuring:\
|
|
|
|
\
|
|
|
|
- SOCKS proxy client for Python 2.6 - 3.x\
|
|
|
|
- TCP and UDP both supported\
|
|
|
|
- HTTP proxy client included but not supported or recommended (you should use\
|
|
|
|
urllib2's or requests' own HTTP proxy interface)\
|
2016-05-03 13:06:16 +00:00
|
|
|
- urllib2 handler included.
|
|
|
|
|
2018-09-30 21:43:00 +00:00
|
|
|
%description
|
|
|
|
%_description
|
2016-05-03 13:06:16 +00:00
|
|
|
|
2017-09-11 03:41:00 +00:00
|
|
|
|
2018-09-30 21:43:00 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{modname}
|
2016-05-03 13:06:16 +00:00
|
|
|
Summary: %{sum}
|
2017-09-11 03:41:00 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
2017-09-11 04:09:13 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2018-09-30 21:43:00 +00:00
|
|
|
# for tests
|
|
|
|
%if 0%{?with_python3_tests}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-psutil
|
|
|
|
#BuildRequires: python%%{python3_pkgversion}-test_server
|
|
|
|
%endif
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
|
|
|
|
|
# This package doesn't actually exist...
|
|
|
|
# but if it did, we would conflict with it.
|
2016-09-17 18:23:47 +00:00
|
|
|
Conflicts: python%{python3_pkgversion}-SocksiPy
|
2016-05-03 13:06:16 +00:00
|
|
|
|
2018-09-30 21:43:00 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{modname}
|
|
|
|
%_description
|
|
|
|
This package is for Python3 version %{python3_version} only.
|
2017-09-11 03:41:00 +00:00
|
|
|
|
2018-09-30 21:43:00 +00:00
|
|
|
%if 0%{?python3_other_pkgversion}
|
|
|
|
%package -n python%{python3_other_pkgversion}-%{modname}
|
|
|
|
Summary: %{sum}
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-setuptools
|
|
|
|
# for tests
|
|
|
|
%if 0%{?with_python3_tests}
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-psutil
|
|
|
|
#BuildRequires: python%%{python3_other_pkgversion}-test_server
|
|
|
|
%endif
|
|
|
|
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{modname}}
|
|
|
|
|
|
|
|
%description -n python%{python3_other_pkgversion}-%{modname}
|
|
|
|
%_description
|
|
|
|
This package is for Python3 version %{python3_other_version} only.
|
|
|
|
%endif
|
2016-05-03 13:06:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2018-09-30 21:43:00 +00:00
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
# drop useless 3rdparty code
|
|
|
|
rm -rfv test/bin
|
2016-05-03 13:06:16 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
2018-09-30 21:43:00 +00:00
|
|
|
%{?python3_other_pkgversion: %py3_other_build}
|
2016-05-03 13:06:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
2018-09-30 21:43:00 +00:00
|
|
|
%{?python3_other_pkgversion: %py3_other_install}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# https://github.com/Anorov/PySocks/issues/37
|
|
|
|
# FIXME python module named test_server is needed but not packaged
|
|
|
|
%if 0
|
|
|
|
%if 0%{?with_python3_tests}
|
|
|
|
%{?with_python3: %{__python3} setup.py test}
|
|
|
|
%{?python3_other_pkgversion: %{__python3_other} setup.py test}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2016-05-03 13:06:16 +00:00
|
|
|
|
2018-09-30 21:43:00 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
2017-09-11 03:39:52 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2016-05-03 13:06:16 +00:00
|
|
|
%{python3_sitelib}/socks.py*
|
|
|
|
%{python3_sitelib}/sockshandler.py*
|
|
|
|
%{python3_sitelib}/__pycache__/*socks*
|
2018-09-30 21:43:00 +00:00
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-*
|
|
|
|
|
|
|
|
%if 0%{?python3_other_pkgversion}
|
|
|
|
%files -n python%{python3_other_pkgversion}-%{modname}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_other_sitelib}/socks.py*
|
|
|
|
%{python3_other_sitelib}/sockshandler.py*
|
|
|
|
%{python3_other_sitelib}/__pycache__/*socks*
|
|
|
|
%{python3_other_sitelib}/%{pypi_name}-%{version}-*
|
|
|
|
%endif
|
2016-05-03 13:06:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-21 13:02:55 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-16 06:19:33 +00:00
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 1.7.1-19
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-06-13 18:50:32 +00:00
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.7.1-18
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
2023-03-12 21:21:21 +00:00
|
|
|
* Sun Mar 12 2023 Tim Orling <ticotimo@gmail.com> - 1.7.1-17
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
2023-01-20 16:24:07 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 21:31:46 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-06-13 15:14:19 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.7.1-14
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-06-13 13:19:16 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.7.1-13
|
|
|
|
- Bootstrap for Python 3.11
|
|
|
|
|
2022-01-21 14:47:26 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 08:49:23 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-03 15:44:51 +00:00
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.7.1-10
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-06-02 11:40:06 +00:00
|
|
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.7.1-9
|
|
|
|
- Bootstrap for Python 3.10
|
|
|
|
|
2021-01-27 12:48:10 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 03:17:51 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-23 16:18:36 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-6
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-22 10:01:08 +00:00
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-5
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
2020-01-30 14:38:18 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-11-24 23:43:43 +00:00
|
|
|
* Sun Nov 24 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-3
|
|
|
|
- Subpackage python2-pysocks has been removed
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
2019-10-03 11:13:44 +00:00
|
|
|
* Thu Oct 03 2019 Petr Viktorin <pviktori@redhat.com> - 1.7.1-2
|
|
|
|
- Remove unused Python 2 test dependencies
|
|
|
|
|
2019-09-23 01:10:48 +00:00
|
|
|
* Sun Sep 22 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.1-1
|
|
|
|
- Update to 1.7.1. Fixes bug #1753823
|
|
|
|
|
2019-08-16 21:51:56 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-08-15 08:35:34 +00:00
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-3
|
|
|
|
- Bootstrap for Python 3.8
|
|
|
|
|
2019-07-26 15:41:34 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-18 20:33:57 +00:00
|
|
|
* Sat May 18 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.0-1
|
|
|
|
- Update to 1.7.0. Fixes bug #1708882
|
|
|
|
|
2019-02-02 08:46:45 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-11 19:27:01 +00:00
|
|
|
* Sun Nov 11 2018 Kevin Fenzi <kevin@scrye.com> - 1.6.8-6
|
|
|
|
- Add upstream patch to avoid DeprecationWarning. Fixes bug #1648583
|
|
|
|
|
2018-10-03 12:36:02 +00:00
|
|
|
* Wed Oct 03 2018 Raphael Groner <projects.rg@smart.ms> - 1.6.8-5
|
2018-09-30 21:43:00 +00:00
|
|
|
- add python3_other subpackage for epel7
|
|
|
|
- prepare removal of python2 subpackage in Fedora
|
|
|
|
- use pypi macros
|
|
|
|
- try to enable tests provided actually from tarball
|
|
|
|
|
2018-07-14 01:42:46 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-14 09:47:20 +00:00
|
|
|
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.8-3
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-09 10:15:17 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-22 23:00:08 +00:00
|
|
|
* Fri Dec 22 2017 Kevin Fenzi <kevin@scrye.com> - 1.6.8-1
|
|
|
|
- Update to 1.6.8. Fixes bug #1528490
|
|
|
|
|
2017-09-11 03:39:52 +00:00
|
|
|
* Mon Sep 11 2017 Carl George <carl@george.computer> - 1.6.7-1
|
|
|
|
- Latest upstream
|
2017-09-11 04:09:13 +00:00
|
|
|
- Add setuptools dependency
|
2017-09-11 03:39:52 +00:00
|
|
|
|
2017-07-27 11:32:06 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 10:11:02 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-11 18:31:37 +00:00
|
|
|
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.5.7-3
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-11-29 02:06:38 +00:00
|
|
|
* Mon Nov 28 2016 Tim Orling <ticotimo@gmail.com> - 1.5.7-2
|
|
|
|
- Ship python34-pysocks in EL6
|
|
|
|
|
2016-09-17 18:23:47 +00:00
|
|
|
* Sat Sep 17 2016 Kevin Fenzi <kevin@scrye.com> - 1.5.7-1
|
|
|
|
- Update to 1.5.7
|
|
|
|
|
|
|
|
* Fri Sep 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.5.6-6
|
|
|
|
- Ship python34-pysocks in EPEL7
|
|
|
|
|
2016-07-19 11:17:08 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-5
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-07-15 17:39:02 +00:00
|
|
|
* Fri Jul 15 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-4
|
|
|
|
- Change our conflicts on python-SocksiPy to an obsoletes/provides.
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1334407
|
|
|
|
|
2016-05-09 16:08:00 +00:00
|
|
|
* Mon May 09 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-3
|
|
|
|
- Fix typo in explicit conflicts.
|
|
|
|
|
2016-05-03 13:39:02 +00:00
|
|
|
* Tue May 03 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-2
|
|
|
|
- We don't actually need setuptools here.
|
|
|
|
|
2016-05-03 13:06:16 +00:00
|
|
|
* Mon May 02 2016 Ralph Bean <rbean@redhat.com> - 1.5.6-1
|
|
|
|
- Initial package for Fedora
|