%global pypi_name pytest-expect Name: python-%{pypi_name} Version: 1.1.0 Release: 1%{?dist} Summary: py.test plugin to store test expectations and mark tests based on them License: MIT URL: https://github.com/gsnedders/pytest-expect Source0: %pypi_source Source1: %{url}/raw/%{version}/LICENSE BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %?python_enable_dependency_generator %description A py.test plugin that stores test expectations by saving the set of failing tests, allowing them to be marked as xfail when running them in future. The tests expectations are stored such that they can be distributed alongside the tests. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} A py.test plugin that stores test expectations by saving the set of failing tests, allowing them to be marked as xfail when running them in future. The tests expectations are stored such that they can be distributed alongside the tests. %prep %autosetup -n %{pypi_name}-%{version} cp -p %{SOURCE1} . %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/pytest_expect %{python3_sitelib}/pytest_expect-%{version}-py?.?.egg-info %changelog * Mon Aug 20 2018 Miro HronĨok - 1.1.0-1 - Initial package