# test module not available %bcond tests 0 Name: python-standard-nntplib Version: 3.13.0 Release: %autorelease Summary: Standard library nntplib redistribution. "dead battery". License: PSF-2.0 URL: https://github.com/youknowone/python-deadlib Source: %{pypi_source standard_nntplib} BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: Python is moving forward! Python finally started to remove dead batteries. For more information, see PEP 594. If your project depends on nntplib, which has been removed from Python 3.13, here is the redistribution.} %description %_description %package -n python3-standard-nntplib Summary: %{summary} %description -n python3-standard-nntplib %_description %prep %autosetup -p1 -n standard_nntplib-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l nntplib %check %pyproject_check_import %if %{with tests} %pytest %endif %files -n python3-standard-nntplib -f %{pyproject_files} %doc README.rst %changelog %autochangelog