%global pypi_name pytest-timeout %global file_name pytest_timeout %global desc This is a plugin which will terminate tests after a certain timeout. When doing \ so it will show a stack dump of all threads running at the time. This is useful \ when running tests under a continuous integration server or simply if you don’t \ know why the test suite hangs. Name: python-%{pypi_name} Version: 1.0.0 Release: 1%{?dist} Summary: py.test plugin to abort hanging tests License: MIT URL: https://pypi.python.org/pypi/pytest-timeout Source0: https://pypi.python.org/packages/cf/92/ab29b9baa54d47dfd50e43be35577de9af4e7ebf27d29f546ddeb6c3b6f5/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description %{desc} %package -n python2-%{pypi_name} BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-pytest Requires: python2-pytest Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} %{desc} %package -n python3-%{pypi_name} Summary: %{summary} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest Requires: python3-pytest %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{desc} %prep %setup -qn %{pypi_name}-%{version} %build %py3_build %py2_build %install %py3_install %py2_install %check PYTHONPATH="$(pwd)" py.test-%{python2_version} . PYTHONPATH="$(pwd)" py.test-%{python3_version} . %files -n python2-%{pypi_name} %doc README %license LICENSE %{python2_sitelib}/%{file_name}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/%{file_name}.py* %files -n python3-%{pypi_name} %doc README %license LICENSE %{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{file_name}.py %{python3_sitelib}/__pycache__/*%{file_name}* %changelog * Thu Aug 11 2016 Julien Enselme - 4.1.0-2 - Remove usage of uneeded %%sum macro - Correct symlink order - Don't remove upstream egg-info * Tue Jul 26 2016 Julien Enselme - 4.1.0-1 - Inital package