# Created by pyp2rpm-3.2.3 %global pypi_name pytest-capturelog Name: python-%{pypi_name} Version: 0.7 Release: 1%{?dist} Summary: py.test plugin to capture log messages License: MIT License URL: http://bitbucket.org/memedough/pytest-capturelog/overview Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %description pytest-capturelog py.test plugin to capture log messagesInstallation The pytest- capturelog_ package may be installed with pip or easy_install:: pip install pytest-capturelog easy_install pytest-capturelog.. _pytest-capturelog: If the plugin is installed log messages are captured by default and for each failed test will be shown in the same manner as captured stdout and Running without... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2-py >= 1.1.1 Requires: python2-setuptools %description -n python2-%{pypi_name} pytest-capturelog py.test plugin to capture log messagesInstallation The pytest- capturelog_ package may be installed with pip or easy_install:: pip install pytest-capturelog easy_install pytest-capturelog.. _pytest-capturelog: If the plugin is installed log messages are captured by default and for each failed test will be shown in the same manner as captured stdout and Running without... %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-py >= 1.1.1 Requires: python%{python3_pkgversion}-setuptools %description -n python%{python3_pkgversion}-%{pypi_name} pytest-capturelog py.test plugin to capture log messagesInstallation The pytest- capturelog_ package may be installed with pip or easy_install:: pip install pytest-capturelog easy_install pytest-capturelog.. _pytest-capturelog: If the plugin is installed log messages are captured by default and for each failed test will be shown in the same manner as captured stdout and Running without... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %doc %{python2_sitelib}/pytest_capturelog.py* %{python2_sitelib}/pytest_capturelog-%{version}-py?.?.egg-info %files -n python%{python3_pkgversion}-%{pypi_name} %doc %{python3_sitelib}/__pycache__/* %{python3_sitelib}/pytest_capturelog.py %{python3_sitelib}/pytest_capturelog-%{version}-py?.?.egg-info %changelog * Wed Jan 24 2018 Brian J. Murrell - 0.7-1 - Initial package.