Name: skanpage Version: 23.08.5 Release: 1%{?dist} Summary: Utility to scan images and multi-page documents License: BSD and GPLv2 and GPLv3 URL: https://www.kde.org/applications/graphics/%{name}/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: https://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz Source1: https://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig Source2: gpgkey-D81C0CB38EB725EF6691C385BB463350D6EF31EF.gpg BuildRequires: libappstream-glib BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: cmake BuildRequires: gcc-c++ %global qt5_min_version 5.15.2 BuildRequires: cmake(Qt5Qml) >= %{qt5_min_version} BuildRequires: cmake(Qt5Core) >= %{qt5_min_version} BuildRequires: cmake(Qt5Quick) >= %{qt5_min_version} BuildRequires: cmake(Qt5Widgets) >= %{qt5_min_version} BuildRequires: cmake(Qt5Concurrent) >= %{qt5_min_version} BuildRequires: cmake(Qt5PrintSupport) >= %{qt5_min_version} BuildRequires: cmake(Qt5QuickControls2) >= %{qt5_min_version} %global kf5_min_version 5.91.0 BuildRequires: cmake(KF5I18n) >= %{kf5_min_version} BuildRequires: cmake(KF5Sane) >= %{kf5_min_version} BuildRequires: cmake(KF5Crash) >= %{kf5_min_version} BuildRequires: cmake(KF5Config) >= %{kf5_min_version} BuildRequires: cmake(KF5Purpose) >= %{kf5_min_version} BuildRequires: cmake(KF5Kirigami2) >= %{kf5_min_version} BuildRequires: cmake(KF5CoreAddons) >= %{kf5_min_version} BuildRequires: cmake(KF5XmlGui) BuildRequires: cmake(KSaneCore) BuildRequires: cmake(KQuickImageEditor) BuildRequires: pkgconfig(lept) BuildRequires: pkgconfig(tesseract) Requires: hicolor-icon-theme Requires: qt5-qtquickcontrols2 Requires: kf5-kirigami2 >= %{kf5_min_version} Recommends: sane-backends-drivers-scanners %description Skanpage is a multi-page scanning application built using the libksane library and a QML interface. It supports saving to image and PDF files. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 %build sed -i 's|set(CMAKE_CXX_FLAGS "-fopenmp")|set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")|' \ CMakeLists.txt %cmake_kf5 %cmake_build %install %cmake_install %find_lang %{name} --with-kde %check desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml %files -f %{name}.lang %license LICENSES/*.txt %{_bindir}/%{name} %{_kf5_metainfodir}/org.kde.%{name}.appdata.xml %{_kf5_datadir}/applications/org.kde.%{name}.desktop %{_kf5_datadir}/icons/hicolor/*/apps/%{name}.{svg,png} %{_kf5_datadir}/qlogging-categories5/%{name}.categories %changelog * Sun Feb 18 2024 Yaroslav Sidlovsky - 23.08.5-1 - 23.08.5 * Fri Dec 08 2023 Yaroslav Sidlovsky - 23.08.4-1 - 23.08.4 * Fri Nov 10 2023 Yaroslav Sidlovsky - 23.08.3-1 - 23.08.3 * Fri Oct 13 2023 Yaroslav Sidlovsky - 23.08.2-1 - 23.08.2 * Thu Sep 14 2023 Yaroslav Sidlovsky - 23.08.1-1 - 23.08.1 * Sun Aug 27 2023 Yaroslav Sidlovsky - 23.08.0-1 - 23.08.0 * Thu Jul 06 2023 Yaroslav Sidlovsky - 23.04.3-1 - 23.04.3 * Thu Jun 08 2023 Yaroslav Sidlovsky - 23.04.2-1 - 23.04.2 * Thu May 11 2023 Yaroslav Sidlovsky - 23.04.1-1 - 23.04.1 * Thu Apr 20 2023 Yaroslav Sidlovsky - 23.04.0-1 - 23.04.0 * Thu Mar 02 2023 Yaroslav Sidlovsky - 22.12.3-1 - 22.12.3 * Thu Feb 02 2023 Yaroslav Sidlovsky - 22.12.2-1 - 22.12.2