Name: libkomparediff2 Version: 26.08.0 Release: 1%{?dist} Summary: Library to compare files and strings License: BSD-2-Clause AND CC0-1.0 AND GFDL-1.2-only AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND MIT URL: https://apps.kde.org/kompare Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: extra-cmake-modules BuildRequires: kf6-rpm-macros BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: cmake(KF6CoreAddons) BuildRequires: cmake(KF6Config) BuildRequires: cmake(KF6XmlGui) BuildRequires: cmake(KF6I18n) BuildRequires: cmake(KF6KIO) BuildRequires: cmake(Qt6Qml) BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Widgets) %description LibKompareDiff2 is KDE's diff-parsing/generation library, a standalone KDE library (not part of the KF6 Frameworks set) built as a prerequisite for Kompare. Full CMakeLists.txt read (top-level, src/) -- a small, clean library, every KF6 component already built earlier in this repo, no third-party diff-engine dependencies beyond the standard toolchain (it shells out to the system diff binary rather than linking a diff library). %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %prep %autosetup -p1 %build %cmake_kf6 %cmake_build_kf6 %install %cmake_install_kf6 %find_lang %{name} --with-html %files -f %{name}.lang %license LICENSES/* %{_kf6_libdir}/libkomparediff2.so.* %files devel %{_includedir}/KompareDiff2/ %{_kf6_datadir}/qlogging-categories6/libkomparediff2.categories %{_kf6_libdir}/libkomparediff2.so %{_kf6_libdir}/cmake/KompareDiff2/ %changelog * Sun Aug 30 2026 Smech - 26.08.0-1 - Real upstream source, built as a prerequisite for Kompare (which has a hard REQUIRED find_package(KompareDiff2) not satisfiable any other way -- this is a genuinely separate KDE library, not a KF6 Framework, so it was never going to appear from anything already built this session). Applied the Gwenview VERSION/SOVERSION lesson proactively: used a broad %{_kf6_libdir}/libkomparediff2.so.* glob rather than guessing the exact suffix. Headers install to plain %{_includedir}/KompareDiff2/ (confirmed via the real KOMPAREDIFF2_INSTALL_INCLUDEDIR="${KDE_INSTALL_INCLUDEDIR}/KompareDiff2" variable, same app-tier-vs-framework-tier include path class as Dolphin earlier this session -- not a KF6 framework so no %{_kf6_includedir}).