%bcond_with check %global forgeurl https://github.com/linuxdeepin/deepin-ocr Version: 6.5.15 %global tag %{version} %forgemeta Name: deepin-ocr Release: %autorelease Summary: base character recognition ability on Deepin License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(Qt6DBus) BuildRequires: cmake(Qt6LinguistTools) BuildRequires: cmake(Dtk6Core) BuildRequires: cmake(Dtk6Widget) BuildRequires: pkgconfig(dtk6ocr) BuildRequires: pkgconfig(ncnn) BuildRequires: pkgconfig(opencv) %description Deepin OCR provides the base character recognition ability on Deepin. %prep %forgeautosetup -p1 sed -i 's/opencv_mobile/opencv4/' src/CMakeLists.txt %build %cmake -GNinja %cmake_build %install %cmake_install %check %files %license LICENSE %doc README.md %changelog %autochangelog