Blame python-pysocks.spec

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