%undefine __cmake_in_source_build Name: plasma-disks Summary: Hard disk health monitoring for KDE Plasma Version: 5.23.4 Release: 1 License: GPLv2+ and LGPLv3+ and BSD and CC0 URL: https://invent.kde.org/plasma/%{name} %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz BuildRequires: gcc-c++ BuildRequires: make BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: kf5-kauth-devel BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5Declarative) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5Service) BuildRequires: cmake(KF5Solid) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Core) BuildRequires: smartmontools Requires: smartmontools %description Plasma Disks monitors S.M.A.R.T. data of disks and alerts the user when signs of imminent failure appear. %prep %autosetup -n %{name}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --all-name %files -f %{name}.lang %license LICENSES/*.txt %{_libexecdir}/kf5/kauth/kded-smart-helper %{_qt5_plugindir}/kcms/smart.so %{_kf5_plugindir}/kded/smart.so %{_kf5_datadir}/dbus-1/system-services/org.kde.kded.smart.service %{_kf5_datadir}/dbus-1/system.d/org.kde.kded.smart.conf %{_kf5_datadir}/knotifications5/org.kde.kded.smart.notifyrc %{_kf5_datadir}/kpackage/kcms/plasma_disks/* %{_kf5_datadir}/kservices5/smart.desktop %{_kf5_datadir}/metainfo/org.kde.plasma.disks.metainfo.xml %{_kf5_datadir}/polkit-1/actions/org.kde.kded.smart.policy %changelog * Tue Jul 19 2022 misaka00251 - 5.23.4-1 - Init package (Thanks to fedora team)