# Created by pyp2rpm-3.3.6 %global pypi_name pyfakefs Name: python-%{pypi_name} Version: 4.5.1 Release: 1%{?dist} Summary: pyfakefs implements a fake file system that mocks the Python file system modules License: http://www.apache.org/licenses/LICENSE-2.0 URL: http://pyfakefs.org Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) %description pyfakefs [![PyPI version]( [![Python version]( ![Testsuite]( implements a fake file system that mocks the Python file system modules. Using pyfakefs, your tests operate on a fake file system in memory without touching the real disk. The software under test requires no modification to work with pyfakefs.pyfakefs works with Linux, Windows and MacOS. DocumentationThis file provides general usage... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(setuptools) %description -n python3-%{pypi_name} pyfakefs [![PyPI version]( [![Python version]( ![Testsuite]( implements a fake file system that mocks the Python file system modules. Using pyfakefs, your tests operate on a fake file system in memory without touching the real disk. The software under test requires no modification to work with pyfakefs.pyfakefs works with Linux, Windows and MacOS. DocumentationThis file provides general usage... %package -n python-%{pypi_name}-doc Summary: pyfakefs documentation %description -n python-%{pypi_name}-doc Documentation for pyfakefs %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %files -n python-%{pypi_name}-doc %doc html %changelog * Mon Sep 20 2021 mockbuilder - 4.5.1-1 - Initial package.