File plasma5-disks.spec of Package plasma5-disks

# spec file for package plasma5-disks
# Copyright (c) 2024 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# Internal QML import
%global __requires_exclude qmlimport\\(SMART.*

%define kf5_version 5.98.0
%bcond_without released

Name:           plasma5-disks
Version:        5.27.11
Release:        0
Summary:        Plasma service for monitoring disk health
License:        GPL-2.0-only OR GPL-3.0-only
Group:          System/GUI/KDE
%if %{with released}
Source2:        plasma.keyring
BuildRequires:  cmake >= 3.16
BuildRequires:  extra-cmake-modules >= %{kf5_version}
BuildRequires:  cmake(KF5Auth) >= %{kf5_version}
BuildRequires:  cmake(KF5CoreAddons) >= %{kf5_version}
BuildRequires:  cmake(KF5DBusAddons) >= %{kf5_version}
BuildRequires:  cmake(KF5Declarative) >= %{kf5_version}
BuildRequires:  cmake(KF5I18n) >= %{kf5_version}
BuildRequires:  cmake(KF5KIO) >= %{kf5_version}
BuildRequires:  cmake(KF5Notifications) >= %{kf5_version}
BuildRequires:  cmake(KF5Service) >= %{kf5_version}
BuildRequires:  cmake(KF5Solid) >= %{kf5_version}
BuildRequires:  cmake(Qt5Core) >= 5.15.0
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Test)
# Old temporary name, only in K:F5
Provides:       plasma-disks = %{version}
Obsoletes:      plasma-disks < %{version}
Requires:       /usr/sbin/smartctl

Monitors S.M.A.R.T. capable devices for imminent failure and informs the user.


%autosetup -p1 -n plasma-disks-%{version}

%cmake_kf5 -d build -- -DBUILD_TESTING=ON

export QT_QPA_PLATFORM=offscreen
make %{?_smp_mflags} -C build VERBOSE=1 test

%make_install -C build

%find_lang %{name} --with-man --all-name

%license LICENSES/*
%dir %{_kf5_plugindir}/plasma
%dir %{_kf5_plugindir}/plasma/kcms
%dir %{_kf5_plugindir}/plasma/kcms/kinfocenter/
%dir %{_kf5_plugindir}/kf5/kded/
%dir %{_datadir}/kpackage/
%dir %{_datadir}/kpackage/kcms/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by