Blame SPECS/python-pysocks.spec

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