## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 %global srcname pyocr Name: python-%{srcname} Version: 0.8.5 Release: %autorelease Summary: Python wrapper for OCR engines (Tesseract, Cuneiform, etc) License: GPL-3.0-or-later URL: https://gitlab.gnome.org/World/OpenPaperwork/pyocr Source: %pypi_source %{srcname} BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: tesseract BuildRequires: tesseract-osd BuildRequires: tesseract-langpack-fra BuildRequires: tesseract-langpack-jpn %global _description \ A Python wrapper for Tesseract and Cuneiform %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(sphinx) Recommends: tesseract %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x dev %build %pyproject_wheel # generate html docs PYTHONPATH=${PWD}/build/lib sphinx-build-3 doc/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %pyproject_install %pyproject_save_files %{srcname} %check export LANG=C.UTF-8 %{pytest} tests %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md ChangeLog html %changelog ## START: Generated by rpmautospec * Sat Jun 08 2024 Python Maint - 0.8.5-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.8.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.8.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Sep 26 2023 Elliott Sales de Andrade - 0.8.5-1 - Update to latest version (#2239255) * Fri Jul 21 2023 Fedora Release Engineering - 0.8.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Python Maint - 0.8.2-7 - Rebuilt for Python 3.12 * Sun Apr 09 2023 Elliott Sales de Andrade - 0.8.2-6 - Switch to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 0.8.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 19 2022 Elliott Sales de Andrade - 0.8.2-4 - Drop support for i686 * Fri Jul 22 2022 Fedora Release Engineering - 0.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.8.2-2 - Rebuilt for Python 3.11 * Mon Apr 18 2022 Elliott Sales de Andrade - 0.8.2-1 - Update to latest version (#2075814) * Fri Jan 21 2022 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 06 2021 Elliott Sales de Andrade - 0.8.1-1 - Update to latest version (#2029237) * Mon Dec 06 2021 Elliott Sales de Andrade - 0.8-6 - Switch to latest Python macros * Fri Jul 23 2021 Fedora Release Engineering - 0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.8-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 02 2021 Elliott Sales de Andrade - 0.8-1 - Update to latest version (#1911922) * Wed Jul 29 2020 Fedora Release Engineering - 0.7.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed May 27 2020 Elliott Sales de Andrade - 0.7.2-6 - Stop testing against now-unavailable cuneiform * Tue May 26 2020 Miro Hrončok - 0.7.2-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.7.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.7.2-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.7.2-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 23 2019 Elliott Sales de Andrade - 0.7.2-1 - Update to latest version * Sun May 12 2019 Elliott Sales de Andrade - 0.7-1 - Update to latest version * Sat Mar 23 2019 Elliott Sales de Andrade - 0.6-2 - Add documentation and licenses - Cleanup shebangs * Thu Mar 21 2019 Elliott Sales de Andrade - 0.6-1 - Initial package. ## END: Generated by rpmautospec