Package crow-translate: 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 | %define version_SingleApplication v3.5.1 %define version_QTaskbarControl 2.0.2 %define version_QOnlineTranslator 1.6.4 %define version_QHotkey 1.5.0 %define version_circle_flags v2.7.0 %define version_Fluent 2023-06-07 Name: crow-translate Version: 2.11.0 Release: alt1 Summary: A Qt GUI for Google, Yandex and Bing translators Summary(ru_RU.UTF-8): GUI интерфейс Qt для переводчиков Google, Yandex и Bing License: GPL-3.0-only and MIT and BSD-3-Clause Group: System/Internationalization Url: https://crow-translate.github.io # Source-url: https://github.com/crow-translate/crow-translate/releases/download/%version/crow-translate-%version-source.tar.gz Source: %name-%version.tar # Source1-url: https://github.com/itay-grudev/SingleApplication/archive/refs/tags/%version_SingleApplication.tar.gz Source1: SingleApplication.tar # Source2-url: https://github.com/Skycoder42/QTaskbarControl/archive/refs/tags/%version_QTaskbarControl.tar.gz Source2: QTaskbarControl.tar # Source3-url: https://github.com/crow-translate/QOnlineTranslator/archive/refs/tags/%version_QOnlineTranslator.tar.gz Source3: QOnlineTranslator.tar # Source4-url: https://github.com/Skycoder42/QHotkey/archive/refs/tags/%version_QHotkey.tar.gz Source4: QHotkey.tar # Source5-url: https://github.com/HatScripts/circle-flags/archive/refs/tags/%version_circle_flags.tar.gz Source5: circle-flags.tar # Source6-url: https://github.com/vinceliuice/Fluent-icon-theme/archive/refs/tags/%version_Fluent.tar.gz Source6: Fluent-icon-theme.tar BuildRequires: extra-cmake-modules BuildRequires: libleptonica-devel BuildRequires: qt5-multimedia-devel BuildRequires: qt5-tools-devel BuildRequires: qt5-x11extras-devel BuildRequires: kf5-kwayland-devel BuildRequires: tesseract-devel >= 4.0.0 BuildRequires: libqt5-concurrent BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libqt5-dbus BuildRequires(pre): rpm-macros-cmake Requires: tesseract >= 4.0.0 Requires: icon-theme-breeze Requires: libqt5-svg %description A simple and lightweight translator that allows you to translate and voice text using Google, Yandex and Bing, written in Qt5 for KDE5. To make the application look native in DE built on GTK, you need to customize the Qt application style with plugins like qt5ct, adwaita-qt5. Recommended icons for the Breeze app. %description -l ru_RU.UTF-8 Простой и легкий переводчик, позволяющий переводить и озвучивать текст с помощью Google, Yandex и Bing, написанный на Qt5 для KDE5. Чтобы приложение выглядело родным в DE, построенном на GTK, вам нужно настроить стиль приложения Qt с помощью плагинов, таких как qt5ct, adwaita-qt5. Рекомендуемые значки для приложения Breeze. %prep %setup %ifarch %e2k # workaround of SIGILL in ecf_opt64 from LCC 1.25.23 sed -i -E "s/qOverload<([^>]*)>\(&([^:]*::)/(void(\\2*)(\\1))(\&\\2/" \ src/mainwindow.cpp %endif # preparing external libraries for building mkdir -p \ src/qonlinetranslator/ \ src/third-party/qhotkey/ \ src/third-party/qtaskbarcontrol/ \ src/third-party/singleapplication/ \ src/circle-flags \ src/Fluent-icon-theme tar -xf %SOURCE1 -C src/third-party/singleapplication/ --strip-components=1 tar -xf %SOURCE2 -C src/third-party/qtaskbarcontrol/ --strip-components=1 tar -xf %SOURCE3 -C src/qonlinetranslator/ --strip-components=1 tar -xf %SOURCE4 -C src/third-party/qhotkey/ --strip-components=1 tar -xf %SOURCE5 -C src/circle-flags/ --strip-components=1 tar -xf %SOURCE6 -C src/Fluent-icon-theme/ --strip-components=1 # Analog of crow-2.10.0-alt-desktop.patch subst "s|Categories=Office;Qt;|Categories=Qt;Graphics;OCR;Scanning;|" data/io.crow_translate.CrowTranslate.desktop # Fix QX11Info: No such file or directory subst "s|<QX11Info>|<QtX11Extras/QX11Info>|" src/mainwindow.cpp subst "s|<QX11Info>|<QtX11Extras/QX11Info>|" src/ocr/screengrabbers/abstractscreengrabber.cpp subst "s|<QX11Info>|<QtX11Extras/QX11Info>|" src/ocr/snippingarea.cpp subst "s|<QX11Info>|<QtX11Extras/QX11Info>|" src/xdgdesktopportal.cpp %build %cmake \ -DWITH_KWAYLAND=ON %cmake_build %install %cmake_install %files %doc README.md COPYING %_bindir/crow %_desktopdir/io.crow_translate.CrowTranslate.desktop %_datadir/crow*/* %_datadir/metainfo/io.crow_translate.CrowTranslate.metainfo.xml %_iconsdir/hicolor/*/*/crow-translate* %changelog * Sun Nov 12 2023 Roman Alifanov <ximper@altlinux.org> 2.11.0-alt1 - new version (2.11.0) with rpmgs script (ALT bug 48383) - updated libraries and icons - added fix for error "QX11Info: there is no such file or directory" - enabled build with kwayland - dropped (or replaced with a subst analog) some patches * Wed Apr 19 2023 Evgeny Chuck <koi@altlinux.org> 2.10.4-alt1 - new version (2.10.4) with rpmgs script * Sat Jan 28 2023 Evgeny Chuck <koi@altlinux.org> 2.10.3-alt1 - new version (2.10.3) with rpmgs script - updated library (1.6.1) QOnlineTranslator - updated icons in flag circles (2.6.1) - updated icons from Fluent-icon-theme (2022-11-30) * Thu Nov 03 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 2.10.1-alt1.1 - Fixed build for Elbrus * Tue Oct 25 2022 Evgeny Chuck <koi@altlinux.org> 2.10.1-alt1 - new version (2.10.1) with rpmgs script * Sat Sep 17 2022 Evgeny Chuck <koi@altlinux.org> 2.10.0-alt2 - Fixed desktop category as per policy * Tue Sep 06 2022 Evgeny Chuck <koi@altlinux.org> 2.10.0-alt1 - new version (2.10.0) with rpmgs script - new version (1.6.0) QOnlineTranslator with rpmgs script * Tue Aug 16 2022 Evgeny Chuck <koi@altlinux.org> 2.9.12-alt2 - Fixed display of interface icons * Mon Aug 15 2022 Evgeny Chuck <koi@altlinux.org> 2.9.12-alt1 - new version (2.9.12) with rpmgs script * Fri Aug 12 2022 Evgeny Chuck <koi@altlinux.org> 2.9.11-alt1 - new version (2.9.11) with rpmgs script * Sun Aug 07 2022 Evgeny Chuck <koi@altlinux.org> 2.9.10-alt1 - new version (2.9.10) with rpmgs script - updated SingleApplication v3.3.4 - updated circle_flags v2.5.2 - updated Fluent-icon-theme 2022-02-28 * Fri Mar 11 2022 Evgeny Chuck <koi@altlinux.org> 2.9.2-alt1 - new version (2.9.2) with rpmgs script - updated QOnlineTranslator library version 1.5.3 - cleanup spec * Sun Jan 09 2022 Evgeny Chuck <koi@altlinux.org> 2.9.1-alt1 - initial build for ALT Linux Sisyphus - Fixed display of theme icons |