commit 840b010b0959771df1181c7ef9ec7403438adff49ef133c1d36fd0067ee9e5b4 Author: Christophe Marin Date: Wed Nov 20 12:10:29 2024 +0000 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/diskmonitor?expand=0&rev=14 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-Install-the-application-icon-in-the-right-directory.patch b/0001-Install-the-application-icon-in-the-right-directory.patch new file mode 100644 index 0000000..6f7c65e --- /dev/null +++ b/0001-Install-the-application-icon-in-the-right-directory.patch @@ -0,0 +1,24 @@ +From 121ffde065273508a63b34fe9633e324a245fdd3 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Tue, 19 Jan 2021 10:50:48 +0100 +Subject: [PATCH] Install the application icon in the right directory + +--- + app/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt +index 20afc5e..76ee819 100644 +--- a/app/CMakeLists.txt ++++ b/app/CMakeLists.txt +@@ -35,6 +35,6 @@ target_link_libraries( diskmonitor + ) + + install(TARGETS diskmonitor ${INSTALL_TARGETS_DEFAULT_ARGS} ) +-install(FILES icon.svg RENAME diskmonitor.svg DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/" ) ++install(FILES icon.svg RENAME diskmonitor.svg DESTINATION "${ICON_INSTALL_DIR}/hicolor/scalable/apps/" ) + install(FILES diskmonitor.desktop DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications/" ) + +-- +2.29.2 + diff --git a/diskmonitor-0.3.4.tar.gz b/diskmonitor-0.3.4.tar.gz new file mode 100644 index 0000000..5cdab5f --- /dev/null +++ b/diskmonitor-0.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b244347b61184acb178ae600a06a0883f65807cbcfab5bb1d15353ee0faf30a +size 56303 diff --git a/diskmonitor.changes b/diskmonitor.changes new file mode 100644 index 0000000..a75effa --- /dev/null +++ b/diskmonitor.changes @@ -0,0 +1,65 @@ +------------------------------------------------------------------- +Wed Nov 20 12:10:24 UTC 2024 - Christophe Marin + +- Stop using the %suse_update_desktop_file macro + +------------------------------------------------------------------- +Tue Dec 14 13:18:06 UTC 2021 - Christophe Giboudeaux + +- Fix installation with plasma-framework 5.89. + +------------------------------------------------------------------- +Sun Jul 18 08:42:27 UTC 2021 - Christophe Giboudeaux + +- Fix the %files section. plasma-framework >= 5.84 doesn't install + desktop files in %_kf5_servicesdir anymore. + +------------------------------------------------------------------- +Tue Jan 19 09:54:36 UTC 2021 - Christophe Giboudeaux + +- Replace diskmonitor-installdirs.patch with + 0001-Install-the-application-icon-in-the-right-directory.patch +- Drop diskmonitor-desktop.patch + +------------------------------------------------------------------- +Sun Aug 16 17:50:53 UTC 2020 - Christophe Giboudeaux + +- Update to 0.3.4 + * Include Slovenian translation + * Document package installation + * Various fixes + +------------------------------------------------------------------- +Mon May 27 11:44:55 UTC 2019 - Christophe Giboudeaux + +- Update to 0.3.3. + No changelog available + +------------------------------------------------------------------- +Fri May 25 18:39:41 UTC 2018 - christophe@krop.fr + +- Update to 0.3.2. + * Fix compilation problem with KLocalizedString +- Drop diskmonitor-underlinking.patch (fixed upstream) + +------------------------------------------------------------------- +Sat Nov 5 18:19:37 UTC 2016 - asterios.dramis@gmail.com + +- Fix file list (add appdata.xml file) for Leap 42.2 and + openSUSE > 13.2. Added Source URL. + +------------------------------------------------------------------- +Thu Dec 31 15:52:37 UTC 2015 - joerg.lorenzen@ki.tng.de + +- Use cmake() for kf5 and qt5 BuildRequires. + +------------------------------------------------------------------- +Wed Apr 08 10:22:27 UTC 2015 - joerg.lorenzen@ki.tng.de + +- Initial package, version 0.3.1: + - Added patch diskmonitor-desktop.patch to fix categories in + desktop file and changed tag 'exec' to run diskmonitor as root + after prompting for the root password (required by udisks2). + - Added patch diskmonitor-installdirs.patch to fix install dirs. + - Added patch diskmonitor-underlinking.patch to link settings + against I18n. diff --git a/diskmonitor.spec b/diskmonitor.spec new file mode 100644 index 0000000..94d5a73 --- /dev/null +++ b/diskmonitor.spec @@ -0,0 +1,99 @@ +# +# spec file for package diskmonitor +# +# 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 https://bugs.opensuse.org/ +# + + +Name: diskmonitor +Version: 0.3.4 +Release: 0 +Summary: Tools to monitor SMART devices and MDRaid health status +License: GPL-2.0-only +URL: https://github.com/papylhomme/diskmonitor +Source0: https://github.com/papylhomme/diskmonitor/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch0: 0001-Install-the-application-icon-in-the-right-directory.patch +BuildRequires: extra-cmake-modules +BuildRequires: fdupes +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5Notifications) +BuildRequires: cmake(KF5Plasma) +BuildRequires: cmake(KF5WindowSystem) +BuildRequires: cmake(KF5XmlGui) +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Quick) +BuildRequires: cmake(Qt5Widgets) +Requires: udisks2 >= 2.1 + +%description +Tools to monitor SMART devices and MDRaid health status. +Features a full application and a Plasma applet. + +Application: + +- Display S.M.A.R.T. attributes for harddrives supporting it. +- Start and monitor progress of S.M.A.R.T. Short and Extended self test. +- Display properties for MDRaid arrays. +- Start and monitor progress of data scrubbing on MDRaid arrays. + +Applet: + +- Display basic health status for storage units. +- Can be used on the desktop, on a panel or as a systray icon (see systray settings to activate). +- Use KDE notification for health status change. +- Highly configurable interface. + +%lang_package + +%prep +%autosetup -p1 + +%build +%cmake_kf5 -d build + +%cmake_build + +%install +%kf5_makeinstall -C build + +%find_lang diskmonitor diskmonitor.lang +%find_lang plasma_applet_org.papylhomme.diskmonitor diskmonitor.lang + +%fdupes %{buildroot} + +%files +%license LICENSE +%doc README.md CHANGELOG +%dir %{_kf5_configkcfgdir} +%dir %{_kf5_qmldir}/org/ +%{_kf5_appstreamdir}/org.papylhomme.diskmonitor.appdata.xml +%{_kf5_bindir}/diskmonitor +%{_kf5_configkcfgdir}/diskmonitor.kcfg +%{_kf5_iconsdir}/hicolor/scalable/apps/diskmonitor.svg +%{_kf5_notifydir}/diskmonitor.notifyrc +%{_kf5_plasmadir}/plasmoids/ +%{_kf5_qmldir}/org/papylhomme/ +%if %{pkg_vcmp plasma-framework-devel < 5.84} || %{pkg_vcmp plasma-framework-devel > 5.89} +%{_kf5_servicesdir}/plasma-applet-org.papylhomme.diskmonitor.desktop +%endif +%{_kf5_sharedir}/applications/diskmonitor.desktop + +%files lang -f diskmonitor.lang + +%changelog