diff --git a/python-autopage.spec b/python-autopage.spec index 096fc10a3244c039d5dfac6ea3d2029ed93d2164..f5a704dc1387db333fbf08a14c3ea1ad7bd75e6a 100644 --- a/python-autopage.spec +++ b/python-autopage.spec @@ -1,12 +1,9 @@ %global srcname autopage -# open this when upstream fix timeout -%bcond_with tests - Summary: A Python library to provide automatic paging for console output Name: python-%{srcname} Version: 0.5.1 -Release: 5%{?dist} +Release: 6%{?dist} License: ASL 2.0 URL: https://pypi.python.org/pypi/autopage Source0: %{pypi_source} @@ -20,35 +17,39 @@ Autopage is a Python library to provide automatic paging for console output. %package -n python3-%{srcname} Summary: A Python library to provide automatic paging for console output BuildRequires: python3-devel python3-setuptools -%if %{with tests} -BuildRequires: %{py3_dist fixtures} -%endif + +# for tests +BuildRequires: %{py3_dist fixtures} %{py3_dist testtools} %description -n python3-%{srcname} Autopage is a Python library to provide automatic paging for console output. %prep %autosetup -n %{srcname}-%{version} -cp %{SOURCE1} ./ + +rm autopage/tests/test_end_to_end.py + +%generate_buildrequires +%pyproject_buildrequires -t %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files autopage %check -%if %{with tests} -%{python3} setup.py test -%endif +%tox -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md -%{python3_sitelib}/%{srcname}-*.egg-info/ -%{python3_sitelib}/%{srcname}/ %changelog +* Mon Jun 3 2024 Shuo Wang - 0.5.1-6 +- enable %check + * Tue Sep 19 2023 OpenCloudOS Release Engineering - 0.5.1-5 - Rebuilt for python 3.11