# EPEL10 does not have kf5 %if 0%{?rhel} && 0%{?rhel} >= 10 %bcond_with kf5 %else %bcond_without kf5 %endif Name: ksanecore Summary: Library providing logic to interface scanners Version: 24.08.2 Release: 1%{?dist} License: BSD and LGPLv2.1-only and LGPLv3.0-only URL: https://invent.kde.org/libraries/ksanecore Source0: http://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ %if %{with kf5} BuildRequires: kf5-rpm-macros BuildRequires: cmake(KF5I18n) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Gui) %endif BuildRequires: kf6-rpm-macros BuildRequires: cmake(KF6I18n) BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Gui) BuildRequires: pkgconfig(sane-backends) %description %{summary}. %if %{with kf5} %package qt5 Summary: Qt5 library providing logic to interface scanners Requires: %{name}-common = %{version}-%{release} Obsoletes: %{name} < 24.01 %description qt5 %{summary}. %package qt5-devel Summary: Development files for %{name}-qt5 Requires: %{name}-qt5%{?_isa} = %{version}-%{release} Requires: cmake(Qt5Gui) Obsoletes: %{name}-devel < 24.01 %description qt5-devel %{summary}. %endif %package qt6 Summary: Qt6 library providing logic to interface scanners Requires: %{name}-common = %{version}-%{release} %description qt6 %{summary}. %package qt6-devel Summary: Development files for %{name}-qt6 Requires: %{name}-qt6%{?_isa} = %{version}-%{release} Requires: cmake(Qt6Gui) %description qt6-devel %{summary}. %package common Summary: Files shared between the Qt5 and Qt6 versions of the library Conflicts: %{name} < 24.01 %description common %{summary}. Provides internationalization files. %prep %autosetup -n %{name}-%{version} -p1 %build %if %{with kf5} %global _vpath_builddir %{_target_platform}-qt5 %cmake_kf5 -DBUILD_WITH_QT6=OFF %cmake_build %endif %global _vpath_builddir %{_target_platform}-qt6 %cmake_kf6 -DBUILD_WITH_QT6=ON %cmake_build %install %if %{with kf5} %global _vpath_builddir %{_target_platform}-qt5 %cmake_install %endif %global _vpath_builddir %{_target_platform}-qt6 %cmake_install %find_lang %{name} --all-name --with-html %files common -f %{name}.lang %doc README.md %license LICENSES/* %if %{with kf5} %files qt5 %{_libdir}/libKSaneCore.so.{1,%{maj_ver_kf6}.*} %files qt5-devel %{_includedir}/KSaneCore/ %{_libdir}/cmake/KSaneCore/ %{_libdir}/libKSaneCore.so %endif %files qt6 %{_libdir}/libKSaneCore6.so.{1,%{maj_ver_kf6}.*} %files qt6-devel %{_includedir}/KSaneCore6/ %{_libdir}/cmake/KSaneCore6/ %{_libdir}/libKSaneCore6.so %changelog * Tue Oct 08 2024 Steve Cossette - 24.08.2-1 - 24.08.2 * Wed Sep 25 2024 Alessandro Astone - 24.08.1-1 - 24.08.1 * Thu Aug 22 2024 Steve Cossette - 24.08.0-1 - 24.08.0 * Thu Jul 18 2024 Fedora Release Engineering - 24.05.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jul 07 2024 Marc Deop i Argemí - 24.05.2-1 - 24.05.2 * Fri Jun 14 2024 Marc Deop i Argemí - 24.05.1-1 - 24.05.1 * Fri May 17 2024 Marc Deop i Argemí - 24.05.0-1 - 24.05.0 * Fri Apr 12 2024 Marc Deop i Argemí - 24.02.2-1 - 24.02.2 * Fri Mar 29 2024 Marc Deop i Argemí - 24.02.1-1 - 24.02.1 * Wed Feb 21 2024 Marc Deop i Argemí - 24.02.0-1 - 24.02.0 * Wed Jan 31 2024 Marc Deop i Argemí - 24.01.95-1 - 24.01.95 * Thu Jan 25 2024 Fedora Release Engineering - 24.01.90-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 24.01.90-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 11 2024 Marc Deop i Argemí - 24.01.90-1 - 24.01.90 * Sat Dec 23 2023 ales.astone@gmail.com - 24.01.85-1 - 24.01.85 * Wed Dec 13 2023 Alessandro Astone - 24.01.80-3 - Explicit conflicts ksanecore-common * Tue Dec 12 2023 Alessandro Astone - 24.01.80-2 - Respin qt5/qt6 coinstallability patch * Mon Dec 11 2023 Alessandro Astone - Update to 24.01.80 * Thu Oct 12 2023 Marc Deop i Argemí - 23.08.2-1 - 23.08.2 * Sat Sep 16 2023 Marc Deop i Argemí - 23.08.1-1 - 23.08.1 * Sat Aug 26 2023 Marc Deop i Argemí - 23.08.0-1 - 23.08.0 * Thu Jul 20 2023 Fedora Release Engineering - 23.04.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 08 2023 Marc Deop i Argemí - 23.04.3-1 - 23.04.3 * Tue Jun 06 2023 Marc Deop i Argemí - 23.04.2-1 - 23.04.2 * Sat May 13 2023 Marc Deop i Argemí - 23.04.1-1 - 23.04.1 * Fri Apr 14 2023 Marc Deop i Argemí - 23.04.0-1 - 23.04.0 * Fri Mar 31 2023 Marc Deop i Argemí - 23.03.90-1 - 23.03.90 * Mon Mar 20 2023 Marc Deop i Argemí - 23.03.80-1 - 23.03.80 * Thu Mar 02 2023 Marc Deop i Argemí - 22.12.3-1 - 22.12.3 * Tue Jan 31 2023 Marc Deop - 22.12.2-1 - 22.12.2 * Thu Jan 19 2023 Fedora Release Engineering - 22.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 03 2023 Justin Zobel - 22.12.1-1 - Update to 22.12.1 * Wed Dec 21 2022 Justin Zobel - 22.12.0-1 - Initial inclusion