Name: hocr-tools Version: 1.3.0 Release: 3%{?dist} Summary: Tools for working with hOCR data License: ASL 2.0 URL: https://github.com/tmbdev/%{name} Source0: https://github.com/tmbdev/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxslt) BuildRequires: pkgconfig(libjpeg) Requires: python3-reportlab Requires: python3-pillow %description A collection of Python tools for working with hOCR data. %prep %autosetup -n %{name}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %check %{__python3} setup.py test %files %license LICENSE %doc README.md %{python3_sitelib}/* %{_bindir}/hocr-check %{_bindir}/hocr-combine %{_bindir}/hocr-cut %{_bindir}/hocr-eval %{_bindir}/hocr-eval-geom %{_bindir}/hocr-eval-lines %{_bindir}/hocr-extract-g1000 %{_bindir}/hocr-extract-images %{_bindir}/hocr-lines %{_bindir}/hocr-merge-dc %{_bindir}/hocr-pdf %{_bindir}/hocr-split %{_bindir}/hocr-wordfreq %changelog * Thu Sep 9 2021 Brandon Nielsen 1.3.0-3 - Use name macro in source URL - Explicitly require python3-devl as per guidelines - Use pyproject rpm macros where appropriate * Fri May 22 2020 Brandon Nielsen 1.3.0-2 - Use pkgconfig for BuildRequires * Fri Mar 22 2019 Brandon Nielsen 1.3.0-1 - Update to 1.3.0 * Wed Oct 10 2018 Brandon Nielsen 1.2.0-2 - Cleanup version tag * Mon Oct 02 2017 Brandon Nielsen 1.2.0-1 - Initial specfile