Name: intelhex Version: 2.3.0 Release: 1%{?dist} Summary: Utilities for manipulating Intel HEX file format License: BSD URL: https://github.com/python-intelhex/intelhex Source0: https://github.com/python-intelhex/intelhex/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz #Patch0: intelhex-2.2.1-tostring.patch BuildArch: noarch BuildRequires: dos2unix BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-sphinx %description The Intel HEX file format is widely used in microprocessors and microcontrollers area (embedded systems etc) as the de facto standard for representation of code to be programmed into microelectronic devices. This work implements an intelhex Python library and a number of utilities to read, write, create from scratch and manipulate data from Intel HEX file format. The distribution package also includes several convenience Python scripts, including "classic" hex2bin and bin2hex converters and more, those based on the library itself. Check the docs to know more. %package -n python3-intelhex Summary: A python3 library for manipulating Intel HEX file format %{?python_provide:%python_provide python3-intelhex} %description -n python3-intelhex The Intel HEX file format is widely used in microprocessors and microcontrollers area (embedded systems etc) as the de facto standard for representation of code to be programmed into microelectronic devices. This work implements an intelhex Python library and a number of utilities to read, write, create from scratch and manipulate data from Intel HEX file format. The distribution package also includes several convenience Python scripts, including "classic" hex2bin and bin2hex converters and more, those based on the library itself. Check the docs to know more. %package docs Summary: Manuak for the IntelHex python library %description docs User manual for IntelHex %prep %autosetup -p1 dos2unix README.rst dos2unix NEWS.rst sed -i '1d' intelhex/bench.py %build %py3_build pushd docs/manual/ make html popd %install %py3_install %files %doc NEWS.rst README.rst %{_bindir}/*.py %files -n python3-intelhex %license LICENSE.txt %{python3_sitelib}/intelhex* %files docs %doc docs/intelhex.pdf docs/manual.txt %doc docs/manual/.build/html/*.html %doc docs/manual/.build/html/searchindex.js %changelog * Mon Nov 9 2020 Peter Robinson - 2.3.0-1 - Update to 2.3.0 * Mon Sep 28 2020 Than Ngo - 2.2.1-7 - fixed FTBFS, python 3.2: tostring() is renamed to tobytes() * Sat Aug 01 2020 Fedora Release Engineering - 2.2.1-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 10 2020 Peter Robinson - 2.2.1-4 - Review updates, URL update * Sat Jul 27 2019 Peter Robinson 2.2.1-3 - Split python bindings and utilities * Thu Nov 8 2018 Peter Robinson 2.2.1-2 - Minor package updates * Sun Oct 28 2018 Peter Robinson 2.2.1-1 - Initial package