%global srcname pytest-flake8-path Name: python-%{srcname} Version: 1.3.0 Release: 1%{?dist} Summary: A pytest fixture for testing flake8 plugins License: MIT URL: https://github.com/adamchainz/pytest-flake8-path Source0: https://github.com/adamchainz/pytest-flake8-path/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: pytest-flake8-path is the successor to pytest-flake8dir. pytest-flake8dir was based upon pytest’s tmpdir fixture, which returned a legacy py.path.local object. Since version 3.9.0, pytest has provided the tmp_path fixture, which returns a standard library pathlib.Path object. pytest-flake8-path is a rewrite of pytest-flake8dir to use tmp_path instead of tmpdir.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pytest %description -n python%{python3_pkgversion}-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pytest_flake8_path %check %pytest %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %doc HISTORY.rst README.rst %changelog * Fri Nov 18 2022 Scott K Logan - 1.3.0-1 - Initial package