%global srcname capturer Name: python-%{srcname} Version: 2.4 Release: 5%{?dist} Summary: Easily capture stdout/stderr of the current process and subprocesses License: MIT URL: https://%{srcname}.readthedocs.io Source0: https://github.com/xolox/%{name}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %description The capturer package makes it easy to capture the stdout and stderr streams of the current process and subprocesses. Output can be relayed to the terminal in real time but is also available to the Python program for additional processing. %package doc Summary: Documentation for the '%{srcname}' Python module BuildRequires: python%{python3_pkgversion}-humanfriendly BuildRequires: python%{python3_pkgversion}-sphinx %description doc HTML documentation for the '%{srcname}' Python module. %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-humanfriendly BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-cov %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %if %{undefined python_disable_dependency_generator} Requires: python%{python3_pkgversion}-humanfriendly %endif # python_disable_dependency_generator %if 0%{?fedora} Suggests: %{name}-doc = %{version}-%{release} %endif # fedora %description -n python%{python3_pkgversion}-%{srcname} The capturer package makes it easy to capture the stdout and stderr streams of the current process and subprocesses. Output can be relayed to the terminal in real time but is also available to the Python program for additional processing. %prep %autosetup %build %py3_build # Don't install the tests.py rm build/lib/%{srcname}/tests.py sphinx-build-%{python3_version} -nb html -d docs/build/doctrees docs docs/build/html rm docs/build/html/.buildinfo %install %py3_install %check PYTHONUNBUFFERED=1 py.test-%{python3_version} %{srcname}/tests.py %files doc %license LICENSE.txt %doc docs/build/html %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.txt %doc README.rst %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %changelog * Wed Mar 13 2019 Scott K Logan - 2.4-5 - Drop python2 and python3_other * Fri Oct 26 2018 Scott K Logan - 2.4-4 - Fix EL7 python 3.6 * Fri Oct 26 2018 Scott K Logan - 2.4-3 - Pattern conformance * Fri Sep 28 2018 Scott K Logan - 2.4-2 - Add setuptools dependency to EPEL * Mon Sep 24 2018 Scott K Logan - 2.4-1 - Initial package