%global pypi_name requests-unixsocket Name: python-%{pypi_name} Version: 0.1.5 Release: 5%{?dist} Summary: Use requests to talk HTTP via a UNIX domain socket License: ASL 2.0 URL: https://github.com/msabramo/requests-unixsocket Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description %{summary}. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: Use requests to talk HTTP via a UNIX domain socket %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-requests BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pbr BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pluggy BuildRequires: python%{python3_pkgversion}-requests BuildRequires: python%{python3_pkgversion}-urllib3 BuildRequires: python%{python3_pkgversion}-waitress %description -n python%{python3_pkgversion}-%{pypi_name} %{summary}. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # Remove shebangs sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py sed -i '1d' setup.py # Remove pytest-pep8 invocation. Not packaged in Fedora rm pytest.ini sed -i '/pytest-pep8/d' test-requirements.txt # pytest-capturelog isn't actually used, removing it. it's not in Fedora either sed -i '/pytest-capturelog/d' test-requirements.txt %build %py3_build %install %py3_install %check %{__python3} -m pytest -v %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/requests_unixsocket %{python3_sitelib}/requests_unixsocket-%{version}-py?.?.egg-info %changelog * Thu Oct 03 2019 Miro Hrončok - 0.1.5-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.1.5-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 2 2019 Dan Radez - 0.1.5-2 - Updates to initial package to address review comments * Tue Mar 8 2016 Haïkel Guémar - 0.1.5-1 - Initial package.