Пакет ocrfeeder: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | %def_enable snapshot %define ver_major 0.8 %define xdg_name org.gnome.OCRFeeder Name: ocrfeeder Version: %ver_major.5 Release: alt3 Summary: OCRFeeder is a document layout analysis and optical character recognition system Group: Graphics License: GPL-3.0-or-later Url: https://wiki.gnome.org/Apps/OCRFeeder BuildArch: noarch %if_disabled snapshot Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz %else Source: %name-%version.tar %endif Patch: ocrfeeder-0.8.3-alt-configure.patch Requires: python3-module-%name = %EVR Requires: unpaper # works best with Russian Requires: tesseract tesseract-langpack-en tesseract-langpack-ru #Requires: gocr #Requires: ocrad #Requires: cuneiform BuildRequires(pre): rpm-build-python3 rpm-build-gir BuildRequires: intltool yelp-tools BuildRequires: python3-devel python3-module-pygobject3-devel BuildRequires: typelib(Gtk) = 3.0 typelib(GooCanvas) = 2.0 BuildRequires: python3(imp) python3(enchant) python3-module-Pillow BuildRequires: python3-module-Reportlab python3-module-odfpy BuildRequires: python3-module-sane %description OCRFeeder is a document layout analysis and optical character recognition system. Given the images it will automatically outline its contents, distinguish between what's graphics and text and perform OCR over the latter. It generates multiple formats being its main one ODT. %package -n python3-module-%name Summary: Supplemental module for OCRFeeder Group: Development/Python3 BuildArch: noarch Requires: typelib(Gtk) = 3.0 Requires: typelib(GooCanvas) = 2.0 %description -n python3-module-%name %summary This package provides supplemental module for %name. %prep %setup %patch -b .python %build export PYTHON=%__python3 %autoreconf %configure PYTHON=%__python3 %make_build %install %makeinstall_std %find_lang --with-gnome %name %files -f ocrfeeder.lang %_bindir/%name %_bindir/%name-cli %_desktopdir/%xdg_name.desktop %_datadir/%name %_man1dir/%name.1.* %_man1dir/%name-cli.1.* %_iconsdir/hicolor/*/*/%xdg_name.svg %_datadir/metainfo/%xdg_name.appdata.xml %doc AUTHORS README TRANSLATORS NEWS %files -n python3-module-%name %python3_sitelibdir/ocrfeeder %changelog * Sat Apr 06 2024 Yuri N. Sedunov <aris@altlinux.org> 0.8.5-alt3 - updated to 0.8.5-10-geb187ec * Mon Dec 05 2022 Yuri N. Sedunov <aris@altlinux.org> 0.8.5-alt2 - python3-module-%%name: explicitly required typelib(GooCanvas) = 2.0 (ALT #40987) * Tue Mar 15 2022 Yuri N. Sedunov <aris@altlinux.org> 0.8.5-alt1 - 0.8.5 * Tue Mar 15 2022 Yuri N. Sedunov <aris@altlinux.org> 0.8.4-alt1 - 0.8.4 * Tue Oct 26 2021 Yuri N. Sedunov <aris@altlinux.org> 0.8.3-alt3.1 - fixed BR * Thu Jul 22 2021 Yuri N. Sedunov <aris@altlinux.org> 0.8.3-alt3 - updated to 0.8.3-31-gb4313f0 (removed the usage of deprecated since Python-3.9 'xml.etree.ElementTree.Element.getchildren') * Thu Sep 24 2020 Yuri N. Sedunov <aris@altlinux.org> 0.8.3-alt2 - configure.ac: improved gi modules test * Thu Apr 09 2020 Yuri N. Sedunov <aris@altlinux.org> 0.8.3-alt1 - updated to 0.8.3-8-g38c995d (ported to Python3 & PyGI) - required tesseract as default engine * Thu May 23 2013 Fr. Br. George <george@altlinux.ru> 0.7.9-alt4 - Fix buildreq * Sat Apr 28 2012 Fr. Br. George <george@altlinux.ru> 0.7.9-alt3 - Unpaper black filter threshold customization - Window size autoadjustment tune * Thu Apr 19 2012 Fr. Br. George <george@altlinux.ru> 0.7.9-alt2 - Auto-adjust window size for reasonable block count * Thu Apr 12 2012 Fr. Br. George <george@altlinux.ru> 0.7.9-alt1 - Version up - Multilang patches applied - Python module separated - Russian translation * Wed Dec 21 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.7.7-alt1 - 0.7.7 * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.6-alt1.1 - Rebuild with Python-2.7 * Thu Oct 20 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.7.6-alt1 - first build for sisyphus |