Name: python-pytest-datadir Version: 1.3.1 Release: 4%{?dist} Summary: Pytest plugin for test data directories and files License: MIT URL: https://github.com/gabrielcnr/pytest-datadir Source0: %{url}/archive/%{version}/pytest-datadir-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist docutils} BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist tox} BuildRequires: %{py3_dist tox-current-env} BuildRequires: %{py3_dist wheel} %global _desc %{expand: This package contains a pytest plugin for manipulating test data directories and files.} %description %_desc %package -n python3-pytest-datadir Summary: %{summary} %description -n python3-pytest-datadir %_desc %prep %autosetup -n pytest-datadir-%{version} # Do not attempt to use git to determine the version sed -i "s/use_scm_version.*/version='%{version}',/;/setuptools_scm/d" setup.py cat > src/pytest_datadir/_version.py << EOF version='%{version}' EOF %build %pyproject_wheel rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html %install %pyproject_install %pyproject_save_files pytest_datadir # Remove misinstalled LICENSE file rm %{buildroot}%{_prefix}/LICENSE %check %tox %files -n python3-pytest-datadir -f %{pyproject_files} %doc AUTHORS CHANGELOG.html README.md %changelog * Fri Jul 22 2022 Fedora Release Engineering - 1.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.3.1-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 13 2021 Jerry James - 1.3.1-1 - Initial RPM