%global kf6min 5.240.0 %global qt6min 6.5.0 %global sover 12 Name: kpmcore Version: 24.02.0 Release: %autorelease Summary: Library for managing partitions by KDE programs License: GPL-3.0-or-later AND MIT AND CC-BY-4.0 AND CC0-1.0 URL: https://github.com/KDE/kpmcore Source: https://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: cmake >= 3.16 BuildRequires: extra-cmake-modules BuildRequires: gettext BuildRequires: kf6-rpm-macros BuildRequires: cmake(Qt6Core) >= %{qt6min} BuildRequires: cmake(Qt6DBus) >= %{qt6min} BuildRequires: cmake(Qt6Gui) >= %{qt6min} BuildRequires: cmake(Qt6Widgets) >= %{qt6min} BuildRequires: cmake(KF6CoreAddons) >= %{kf6min} BuildRequires: cmake(KF6I18n) >= %{kf6min} BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6min} BuildRequires: cmake(PolkitQt6-1) BuildRequires: pkgconfig BuildRequires: pkgconfig(blkid) >= 2.33.2 Requires: e2fsprogs Requires: kf6-filesystem Recommends: dosfstools Recommends: exfatprogs Recommends: f2fs-tools Recommends: fatresize Recommends: hfsutils Recommends: hfsplus-tools Recommends: jfsutils Recommends: nilfs-utils Recommends: ocfs2-tools Recommends: udftools %description KPMcore contains common code for managing partitions by KDE Partition Manager and other KDE projects %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake(Qt6Core) >= %{qt6min} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name} %prep %autosetup -p1 %build %cmake_kf6 %cmake_build %install %cmake_install %find_lang %{name} %find_lang %{name}._policy_ %files -f %{name}.lang -f %{name}._policy_.lang %license LICENSES/* %doc README.md %{_kf6_libdir}/libkpmcore.so.%{sover} %{_kf6_libdir}/libkpmcore.so.%{version} %{_kf6_qtplugindir}/kpmcore %{_libexecdir}/kpmcore_externalcommand %{_datadir}/dbus-1/system.d/org.kde.kpmcore.*.conf %{_datadir}/dbus-1/system-services/org.kde.kpmcore.*.service %{_datadir}/polkit-1/actions/org.kde.kpmcore.externalcommand.policy %files devel %{_includedir}/%{name}/ %{_kf6_libdir}/cmake/KPMcore %{_kf6_libdir}/libkpmcore.so %changelog %autochangelog