# Created by pyp2rpm-3.3.3 %global pypi_name requests-unixsocket Name: python-%{pypi_name} Version: 0.2.0 Release: 1%{?dist} Summary: Use requests to talk HTTP via a UNIX domain socket License: Apache-2 URL: https://github.com/msabramo/requests-unixsocket Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-pbr BuildRequires: python2-setuptools BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python34-pbr BuildRequires: python%{python3_pkgversion}-setuptools %description requests-unixsocket Use requests < to talk HTTP via a UNIX domain socketUsage++++++++You can use it by instantiating a special Session object:.. code-block:: python import json import requests_unixsocket session requests_unixsocket.Session() %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-requests >= 1.1 Requires: python-urllib3 >= 1.8 %description -n python2-%{pypi_name} requests-unixsocket Use requests < to talk HTTP via a UNIX domain socketUsage++++++++You can use it by instantiating a special Session object:.. code-block:: python import json import requests_unixsocket session requests_unixsocket.Session() %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-requests >= 1.1 Requires: python%{python3_pkgversion}-urllib3 >= 1.8 %description -n python%{python3_pkgversion}-%{pypi_name} requests-unixsocket Use requests < to talk HTTP via a UNIX domain socketUsage++++++++You can use it by instantiating a special Session object:.. code-block:: python import json import requests_unixsocket session requests_unixsocket.Session() %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/requests_unixsocket %{python2_sitelib}/requests_unixsocket-%{version}-py%{python2_version}.egg-info %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/requests_unixsocket %{python3_sitelib}/requests_unixsocket-%{version}-py?.?.egg-info %changelog * Fri Jan 03 2020 Joe grund - 0.2.0-1 - Bump to 0.2.0 * Fri Feb 09 2018 Tom Nabarro - 0.1.5-3 - Use python-requests dependency instead of python2-requests. * Tue Feb 06 2018 Brian J. Murrell - 0.1.5-2 - Need to override pyp2rpm's Requires: python2-urllib3 >= 1.8 as urllib3 has not been migrated to python{2,3} yet. * Wed Jan 24 2018 Brian J. Murrell - 0.1.5-1 - Initial package.