Name: python-xmodem Version: 0.4.7 Release: 2%{?dist} Summary: XMODEM protocol implementation for Python License: MIT URL: https://github.com/tehmaze/xmodem Source0: https://github.com/tehmaze/xmodem/archive/%{version}.tar.gz Patch: 0001-remove-doc-install.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python-rpm-macros %if 0%{?suse_version} %define pythons python3 %endif # Test dependencies BuildRequires: python3-pytest BuildRequires: lrzsz Requires: python3-%{name} = %{version}-%{release} %description This is a Python implementation of XMODEM, XMODEM1K and XMODMCRC. These are old serial file transfer protocols which are still in rare use for embedded systems. %package -n python3-xmodem Summary: Python 3 library for xmodem %{?python_provide:%python_provide python3-xmodem} %description -n python3-xmodem This package contains the Python 3 library for xmodem. %prep %autosetup -n xmodem-%{version} -p1 %build %pyproject_wheel %install %pyproject_install %if 0%{?fedora} %pyproject_save_files xmodem %endif %check %pytest %files -n python3-xmodem %doc doc/* LICENSE %{python3_sitelib}/xmodem %{python3_sitelib}/xmodem-%{version}.dist-info %changelog %if 0%{?fedora} %autochangelog %else * Fri Jan 09 2026 Philip Molloy - 0.4.7-2 - Add support for OpenSUSE %endif