%global pypi_name test_server Name: python-%{pypi_name} Version: 0.0.31 Release: 1%{?dist} Summary: Server to test HTTP clients License: MIT URL: https://github.com/lorien/test_server Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools # Tests: BuildRequires: python3-bottle BuildRequires: python3-pytest BuildRequires: python3-webtest %?python_enable_dependency_generator %description HTTP Server to test HTTP clients. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} HTTP Server to test HTTP clients. %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install %check %{__python3} -m pytest -v %files -n python3-%{pypi_name} %doc README.rst %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/ %changelog * Fri Aug 17 2018 Miro HronĨok - 0.0.31-1 - Initial package