%global srcname pytest-faulthandler Name: python-%{srcname} Version: 1.3.0 Release: 1%{?dist} Summary: py.test plugin that activates the fault handler module for tests License: MIT URL: https://github.com/pytest-dev/%{srcname} Source0: %{url}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-pytest-mock BuildRequires: python2-pytest BuildRequires: python2-faulthandler BuildRequires: python3-devel BuildRequires: python3-pytest-mock BuildRequires: python3-pytest %description Plugin for pytest that automatically enables the faulthandler module during tests. Inspired by the nose faulthandler plugin. %package -n python2-%{srcname} Summary: %{summary} Requires: python2-pytest Requires: python2-faulthandler %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} Plugin for pytest that automatically enables the faulthandler module during tests. Inspired by the nose faulthandler plugin. %package -n python3-%{srcname} Summary: %{summary} Requires: python3-pytest %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Plugin for pytest that automatically enables the faulthandler module during tests. Inspired by the nose faulthandler plugin. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check PYTHONPATH=$(pwd) py.test-2 ./test_pytest_faulthandler.py PYTHONPATH=$(pwd) py.test-3 ./test_pytest_faulthandler.py %files -n python2-%{srcname} %doc README.rst %license LICENSE %{python2_sitelib}/pytest_faulthandler.py* %{python2_sitelib}/pytest_faulthandler-%{version}-py%{python2_version}.egg-info/ %files -n python3-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/pytest_faulthandler.py %{python3_sitelib}/pytest_faulthandler-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/__pycache__/pytest_faulthandler.* %changelog * Tue Oct 04 2016 Dominika Krejci - 1.3.0-1 - Inital release