summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--plasma-disks.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d3fefbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/plasma-disks-5.23.4.tar.xz
diff --git a/plasma-disks.spec b/plasma-disks.spec
new file mode 100644
index 0000000..a89c4d2
--- /dev/null
+++ b/plasma-disks.spec
@@ -0,0 +1,78 @@
+%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 <misaka00251@misakanet.cn> - 5.23.4-1
+- Init package (Thanks to fedora team)
diff --git a/sources b/sources
new file mode 100644
index 0000000..5e0e6fe
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d792a0949023365b7cbe63063cac4d76 plasma-disks-5.23.4.tar.xz