Пакет gimagereader: 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 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | %def_with qt4 Name: gimagereader Version: 3.1.2 Release: alt3.M80P.2 Summary: A graphical GTK frontend to tesseract-ocr License: GPLv3+ Group: Office Url: https://github.com/manisandro/gImageReader Packager: Vitaly Lipatov <lav@altlinux.ru> # TODO: https://github.com/manisandro/gImageReader/archive/v%version.tar.gz Source: http://sourceforge.net/projects/gimagereader/files/%version/%name-%version.tar Patch1: gimagereader-alt-ru-in-desktop.patch Patch2: gimagereader-fix-build-with-gtk.patch BuildRequires(pre): rpm-macros-cmake BuildRequires: cmake gcc-c++ libsane-devel tesseract-devel libgomp5-devel # need pkgconfig from 3.04 and above BuildRequires: tesseract-devel >= 3.04.00 # gtk BuildRequires: libgtksourceviewmm3-devel libgtkspellmm3-devel libpoppler-glib-devel %if_with qt4 BuildRequires: libqt4-devel libqtspell-qt4-devel libpoppler-qt4-devel %endif # qt5 BuildRequires: libqtspell-qt5-devel libpoppler-qt5-devel qt5-base-devel qt5-imageformats # for compatibility Requires: %name-gtk %description gImageReader is a simple Gtk front-end to tesseract. Features include: - Automatic page layout detection - User can manually define and adjust recognition regions - Import images from disk, scanning devices, clipboard and screenshots - Supports multipage PDF documents - Recognized text displayed directly next to the image - Editing of output text, including search/replace and removing line breaks - Spellchecking for output text (if corresponding dictionary installed) %package gtk Group: Office Summary: A Gtk+ front-end to tesseract-ocr Requires: %name-common = %version-%release Obsoletes: %name < 2.94 %description gtk gImageReader is a simple front-end to tesseract. Features include: - Automatic page layout detection - User can manually define and adjust recognition regions - Import images from disk, scanning devices, clipboard and screenshots - Supports multipage PDF documents - Recognized text displayed directly next to the image - Editing of output text, including search/replace and removing line breaks - Spellchecking for output text (if corresponding dictionary installed) This package contains the Gtk+ front-end. %package qt5 Group: Office Summary: A Qt 5 front-end to tesseract-ocr Requires: %name-common = %version-%release %description qt5 gImageReader is a simple front-end to tesseract. Features include: - Automatic page layout detection - User can manually define and adjust recognition regions - Import images from disk, scanning devices, clipboard and screenshots - Supports multipage PDF documents - Recognized text displayed directly next to the image - Editing of output text, including search/replace and removing line breaks - Spellchecking for output text (if corresponding dictionary installed) This package contains the Qt front-end. %if_with qt4 %package qt4 Group: Office Summary: A Qt4 front-end to tesseract-ocr Requires: %name-common = %version-%release %description qt4 gImageReader is a simple front-end to tesseract. Features include: - Automatic page layout detection - User can manually define and adjust recognition regions - Import images from disk, scanning devices, clipboard and screenshots - Supports multipage PDF documents - Recognized text displayed directly next to the image - Editing of output text, including search/replace and removing line breaks - Spellchecking for output text (if corresponding dictionary installed) This package contains the Qt front-end. %endif %package common Group: Office Summary: Common files for %name BuildArch: noarch Conflicts: %name < 3.1.2 %description common Common files for %name. %prep %setup %patch1 -p2 %patch2 -p2 %build %cmake -DINTERFACE_TYPE=gtk -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%_docdir/%name-common" %cmake_build mv BUILD build-gtk %if_with qt4 %cmake -DINTERFACE_TYPE=qt4 -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%_docdir/%name-common" %cmake_build mv BUILD build-qt4 %endif %cmake -DINTERFACE_TYPE=qt5 -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%_docdir/%name-common" %cmake_build mv BUILD build-qt5 %install rm -rf BUILD cp -al build-gtk BUILD %cmakeinstall_std %if_with qt4 rm -rf BUILD cp -al build-qt4 BUILD %cmakeinstall_std %endif rm -rf BUILD cp -al build-qt5 BUILD %cmakeinstall_std %find_lang %name # make link to old base command ln -s %name-gtk %buildroot%_bindir/%name %files common -f %name.lang %doc COPYING %doc AUTHORS ChangeLog NEWS README TODO %_iconsdir/hicolor/48x48/apps/%name.png %_iconsdir/hicolor/128x128/apps/%name.png %_iconsdir/hicolor/256x256/apps/%name.png %doc %_docdir/%name-common/manual*.html %files gtk %_bindir/%name-gtk %_datadir/appdata/%name-gtk.appdata.xml %_desktopdir/%name-gtk.desktop %_datadir/glib-2.0/schemas/org.gnome.%name.gschema.xml %if_with qt4 %files qt4 %_bindir/%name-qt4 %_datadir/appdata/%name-qt4.appdata.xml %_desktopdir/%name-qt4.desktop %endif %files qt5 %_bindir/%name-qt5 %_datadir/appdata/%name-qt5.appdata.xml %_desktopdir/%name-qt5.desktop %files %_bindir/%name %changelog * Wed May 10 2017 Andrey Cherepanov <cas@altlinux.org> 3.1.2-alt3.M80P.2 - Add Russian localization in desktop file * Tue Jan 17 2017 Andrey Cherepanov <cas@altlinux.org> 3.1.2-alt3.M80P.1 - Rebuild with new version of tesseract * Mon Aug 17 2015 Vitaly Lipatov <lav@altlinux.ru> 3.1.2-alt3 - fix inter package requires * Sun Aug 16 2015 Vitaly Lipatov <lav@altlinux.ru> 3.1.2-alt2 - build with tesseract 3.04 * Sat Aug 15 2015 Vitaly Lipatov <lav@altlinux.ru> 3.1.2-alt1 - new version 3.1.2 (with rpmrb script) - split into -gtk, -qt4, -qt5 package * Fri Jun 12 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 2.93-alt1.1 - Rebuilt for gcc5 C++11 ABI. * Fri Oct 10 2014 Vitaly Lipatov <lav@altlinux.ru> 2.93-alt1 - initial build for ALT Linux Sisyphus * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.93-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Aug 13 2014 Sandro Mani <manisandro@gmail.com> - 2.93-4 - Rebuild (tesseract) * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.93-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun May 04 2014 Sandro Mani <manisandro@gmail.com> - 2.93-2 - Workaround rhbz #1065695 * Wed Apr 30 2014 Sandro Mani <manisandro@gmail.com> - 2.93-1 - Update to 2.93 * Wed Mar 19 2014 Sandro Mani <manisandro@gmail.com> - 2.92-1 - Update to 2.92 * Thu Feb 20 2014 Sandro Mani <manisandro@gmail.com> - 2.91-1 - Update to 2.91 * Sat Feb 15 2014 Sandro Mani <manisandro@gmail.com> - 2.91-0.2git20140216 - Update to newer 2.91 pre, work around crash at exit * Thu Feb 13 2014 Sandro Mani <manisandro@gmail.com> - 2.91-0.1 - Update to 2.91 pre * Thu Feb 13 2014 Sandro Mani <manisandro@gmail.com> - 2.90-3 - Require hicolor-icon-theme - Add missing icon theme scriptlets * Wed Feb 12 2014 Sandro Mani <manisandro@gmail.com> - 2.90-2 - Add appdata file * Tue Feb 11 2014 Sandro Mani <manisandro@gmail.com> - 2.90-1 - Initial package. |