## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Upstream tests are broken in multiple ways, disable for now %bcond tests 0 %global srcname telnetlib3 %global forgeurl https://github.com/jquast/telnetlib3 Name: python-telnetlib3 Version: 2.0.4 Release: %autorelease Summary: Python 3 asyncio Telnet server and client Protocol library License: ISC URL: http://telnetlib3.rtfd.org/ Source: %{forgeurl}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) BuildRequires: python3dist(pexpect) BuildRequires: python3dist(pytest-asyncio) %endif %global _description %{expand: telnetlib3 is a Telnet Client and Server library for Python.} %description %_description %package -n python3-telnetlib3 Summary: %{summary} %description -n python3-telnetlib3 %_description %prep %autosetup -p1 -n telnetlib3-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l telnetlib3 %check %if %{with tests} PYTHONPATH="telnetlib3:$PYTHONPATH" %pytest %else %pyproject_check_import %endif %files -n python3-telnetlib3 -f %{pyproject_files} %doc README.rst %{_bindir}/telnetlib3-client %{_bindir}/telnetlib3-server %changelog ## START: Generated by rpmautospec * Sat Jul 05 2025 Davide Cavalca - 2.0.4-4 - Conditionally disable tests for now; Fixes: RHBZ#2354126 * Tue Jun 03 2025 Python Maint - 2.0.4-3 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 2.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Sep 28 2024 Davide Cavalca - 2.0.4-1 - Initial import; Fixes: RHBZ#2315496 ## END: Generated by rpmautospec