Пакет tesseract: 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 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | #set_verify_elf_method none Name: tesseract Version: 5.3.0 Release: alt1 Summary: Tesseract Open Source OCR Engine Summary(ru_RU.UTF-8): Движок распознавания текста с открытым исходным кодом License: Apache-2.0 Group: Graphics Url: https://github.com/tesseract-ocr Packager: Andrey Cherepanov <cas@altlinux.org> # Source-url: https://github.com/tesseract-ocr/tesseract/archive/refs/tags/%version.tar.gz Source: %name-%version.tar # installing language files /usr/share/tesseract/tessdata Patch: tesseract-5.1.0-alt-makefile.patch BuildRequires: gcc-c++ BuildRequires: libtiff-devel BuildRequires: libleptonica-devel >= 1.74 BuildRequires: autoconf-archive BuildRequires: libpango-devel BuildRequires: libcairo-devel BuildRequires: libicu-devel BuildRequires: doxygen Requires: %name-langpack-en >= 4.1.0 Requires: %name-langpack-ru >= 4.1.0 %description This package contains an OCR engine - libtesseract and a command line program - tesseract. Tesseract has unicode (UTF-8) support, and can recognize more than 100 languages "out of the box". Tesseract supports various output formats: plain text, hOCR (HTML), PDF, TSV. To improve OCR, you need to improve the quality of the analyzed image. %description -l ru_RU.UTF-8 Этот пакет содержит движок распознавания текста - libtesseract и программу командной строки - tesseract. Tesseract поддерживает юникод (UTF-8) и может распознавать более 100 языков "из коробки". Tesseract поддерживает различные форматы вывода: txt, ocr (HTML), PDF, TSV. Чтобы улучшить распознавание текста, необходимо улучшить качество анализируемого изображения. %package devel Summary: Development files for tesseract Summary(ru_RU.UTF-8): Файлы разработки для tesseract Group: Development/C Requires: %name Requires: libleptonica-devel >= 1.74 %description devel The %name-devel package contains header file for developing applications that use %name. %description devel -l ru_RU.UTF-8 Пакет %name-devel содержит файлы заголовка для разработки приложений, использующих %name. %package doc Summary: Tesseract OCR Tool Documentation Summary(ru_RU.UTF-8): Документация по движку Tesseract OCR Group: Documentation BuildArch: noarch %description doc The documentation contains a description of the library functions and the tesseract utilities. The development section has examples of teaching language models. %description doc -l ru_RU.UTF-8 Документация содержит описание функций библиотеки и утилит %name В разделе разработки есть примеры обучения языковых моделей. %prep %setup %patch -p2 %ifarch %e2k # LCC autovectorization perform better than these brief SIMD snippets sed -i "/CHECK_COMPILE_FLAG/{N;/_OPT/s/=true/=false/}" configure.ac %add_optflags -mno-sse %endif %build %autoreconf %configure --disable-static %make_build # for teaching language models (dev) %make_build training doxygen doc/Doxyfile %install %makeinstall_std %makeinstall_std training-install # link to a non-existent file rm -I %buildroot%_libdir/*.la %files %doc AUTHORS ChangeLog README.md LICENSE %_bindir/* %_datadir/%name/tessdata/configs %_datadir/%name/tessdata/tessconfigs %_datadir/%name/tessdata/pdf.ttf %_libdir/lib*.so.5* %files devel %_includedir/%name %_libdir/lib*.so %_pkgconfigdir/%name.pc %files doc %doc doc/html/* %changelog * Fri Dec 23 2022 Evgeny Chuck <koi@altlinux.org> 5.3.0-alt1 - new version (5.3.0) with rpmgs script * Sun Jul 10 2022 Evgeny Chuck <koi@altlinux.org> 5.2.0-alt1 - Build new version (Closes: 43192) - new version (5.2.0) with rpmgs script * Sat May 21 2022 Evgeny Chuck <koi@altlinux.org> 5.1.0-alt1 - new version (5.1.0) with rpmgs scrip - Fixed path to "tessdata" directory * Mon Jan 10 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 4.1.3-alt1.1 - fixed build for Elbrus * Fri Dec 31 2021 Evgeny Chuck <koi@altlinux.org> 4.1.3-alt1 - new version (4.1.3) with rpmgs script - Correct license installed - Changing the installation path of language files - Adaptation of the specification to version 4.1.3 * Sat Sep 24 2016 Vitaly Lipatov <lav@altlinux.ru> 3.04.01-alt2 - build with libleptonica * Thu Aug 25 2016 Vitaly Lipatov <lav@altlinux.ru> 3.04.01-alt1 - new version 3.04.01 (with rpmrb script) - fix previous broken build * Sat Aug 15 2015 Vitaly Lipatov <lav@altlinux.ru> 3.04.00-alt1 - new version 3.04.00 (with rpmrb script) * Mon Dec 09 2013 Andrey Cherepanov <cas@altlinux.org> 3.02.02-alt1 - New version * Thu May 03 2012 Andrey Cherepanov <cas@altlinux.org> 3.02-alt1.r723 - New version 3.02 - Major changes: * Added simultaneous multi-language capability. * Added experimental equation detector. * Improved handling of resolution from input images. * Major improvements to layout analysis for better image detection, diacritic detection, better textline finding, better tabstop finding. * Improved line detection and removal. * Many other fixes, including the way in which the chopper finds chops and messes with the outline while it does so. - Build both executables and dictionaries from one package * Wed Aug 31 2011 Andrey Cherepanov <cas@altlinux.org> 3.00-alt1 - New version 3.00 (closes: #25477) - Add optflags_shared for build (closes: #25249) * Tue Apr 26 2011 Fr. Br. George <george@altlinux.ru> 2.04-alt2 - Fix debuginfo * Wed Sep 23 2009 Fr. Br. George <george@altlinux.ru> 2.04-alt1 - Version up * Sat Nov 08 2008 Vitaly Lipatov <lav@altlinux.ru> 2.03-alt2 - fix build with gcc 4.3 * Fri May 09 2008 Vitaly Lipatov <lav@altlinux.ru> 2.03-alt1 - new version 2.03 (with rpmrb script) * Wed Oct 24 2007 Vitaly Lipatov <lav@altlinux.ru> 2.01-alt1 - new version 2.01 (with rpmrb script) * Tue Jul 24 2007 Vitaly Lipatov <lav@altlinux.ru> 2.00-alt1 - initial build for Sisyphus |