From e26fa19a4eaa093298d4db5a0450517f3e20dcfce59e2e6e24a33e29228712ef Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Tue, 14 Apr 2015 11:25:14 +0000 Subject: [PATCH] Accepting request 295388 from home:enzokiel:branches:KDE:Extra - Initial package, version 0.3.1 OBS-URL: https://build.opensuse.org/request/show/295388 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/diskmonitor?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + diskmonitor-0.3.1.zip | 3 + diskmonitor-desktop.patch | 15 +++++ diskmonitor-installdirs.patch | 12 ++++ diskmonitor-underlinking.patch | 10 ++++ diskmonitor.changes | 10 ++++ diskmonitor.spec | 106 +++++++++++++++++++++++++++++++++ 8 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 diskmonitor-0.3.1.zip create mode 100644 diskmonitor-desktop.patch create mode 100644 diskmonitor-installdirs.patch create mode 100644 diskmonitor-underlinking.patch create mode 100644 diskmonitor.changes create mode 100644 diskmonitor.spec 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/diskmonitor-0.3.1.zip b/diskmonitor-0.3.1.zip new file mode 100644 index 0000000..c1bd409 --- /dev/null +++ b/diskmonitor-0.3.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eee2f1a30be0668d3dc3443861b7803c3196c4936764e79f613d0739900e4fff +size 117746 diff --git a/diskmonitor-desktop.patch b/diskmonitor-desktop.patch new file mode 100644 index 0000000..3ed2690 --- /dev/null +++ b/diskmonitor-desktop.patch @@ -0,0 +1,15 @@ +--- app/diskmonitor.desktop.orig 2015-04-11 00:09:26.673471620 +0200 ++++ app/diskmonitor.desktop 2015-04-11 00:09:26.688471616 +0200 +@@ -2,8 +2,10 @@ + Name=DisKMonitor + GenericName=Tool to monitor SMART devices and MDRaid health status + Comment=Tool to monitor SMART devices and MDRaid health status +-Exec=diskmonitor ++Exec=/usr/bin/xdg-su -c /usr/sbin/diskmonitor + Terminal=false + Icon=diskmonitor + Type=Application +-Categories=Qt;KDE;System; ++Categories=Qt;KDE;System;Monitor; ++X-KDE-StartupNotify=true ++X-SuSE-translate=true diff --git a/diskmonitor-installdirs.patch b/diskmonitor-installdirs.patch new file mode 100644 index 0000000..045821b --- /dev/null +++ b/diskmonitor-installdirs.patch @@ -0,0 +1,12 @@ +--- app/CMakeLists.txt.orig 2015-04-11 00:09:29.086470863 +0200 ++++ app/CMakeLists.txt 2015-04-11 00:09:29.108470874 +0200 +@@ -34,7 +34,7 @@ + KF5::XmlGui + ) + +-install(TARGETS diskmonitor ${INSTALL_TARGETS_DEFAULT_ARGS} ) +-install(FILES icon.svg RENAME diskmonitor.svg DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/" ) ++install(TARGETS diskmonitor DESTINATION "${SBIN_INSTALL_DIR}" ) ++install(FILES icon.svg RENAME diskmonitor.svg DESTINATION "${ICON_INSTALL_DIR}/hicolor/scalable/apps/" ) + install(FILES diskmonitor.desktop DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications/" ) + diff --git a/diskmonitor-underlinking.patch b/diskmonitor-underlinking.patch new file mode 100644 index 0000000..e23d751 --- /dev/null +++ b/diskmonitor-underlinking.patch @@ -0,0 +1,10 @@ +--- settings/CMakeLists.txt.orig 2015-03-30 15:57:26.000000000 +0200 ++++ settings/CMakeLists.txt 2015-04-08 13:29:50.210201000 +0200 +@@ -20,6 +20,7 @@ + target_link_libraries( libsettings + Qt5::Core + KF5::ConfigWidgets ++ KF5::I18n + KF5::IconThemes + ) + diff --git a/diskmonitor.changes b/diskmonitor.changes new file mode 100644 index 0000000..32f670b --- /dev/null +++ b/diskmonitor.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +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..3dc27bf --- /dev/null +++ b/diskmonitor.spec @@ -0,0 +1,106 @@ +# +# spec file for package diskmonitor +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: diskmonitor +Summary: KDE tools to monitor SMART devices and MDRaid health status +Version: 0.3.1 +Release: 1 +Url: https://github.com/papylhomme/diskmonitor +Source0: diskmonitor-%{version}.zip +Patch0: diskmonitor-underlinking.patch +Patch1: diskmonitor-desktop.patch +Patch2: diskmonitor-installdirs.patch +License: GPL-2.0 +Group: Hardware/Other +BuildRequires: kconfigwidgets-devel +BuildRequires: kcoreaddons-devel +BuildRequires: ki18n-devel +BuildRequires: kiconthemes-devel +BuildRequires: knotifications-devel +BuildRequires: kxmlgui-devel +BuildRequires: plasma-framework-devel +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: extra-cmake-modules +BuildRequires: update-desktop-files +BuildRequires: unzip +BuildRequires: fdupes +Requires: udisks2 >= 2.1 +Requires: xdg-utils +Recommends: diskmonitor-lang = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +KDE 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 +%setup -q -n diskmonitor-%{version} +%patch0 +%patch1 +%patch2 + +%build +%cmake_kf5 -d build +%make_jobs + +%install +%kf5_makeinstall -C build + +%find_lang diskmonitor diskmonitor.lang +%find_lang plasma_applet_org.papylhomme.diskmonitor diskmonitor.lang + +%fdupes %{buildroot} + +%files +%defattr(-,root,root) +%{_kf5_sbindir}/diskmonitor +%dir %{_kf5_qmldir}/org/papylhomme +%dir %{_kf5_qmldir}/org/papylhomme/diskmonitor +%{_kf5_qmldir}/org/papylhomme/diskmonitor/libdiskmonitor_qmlplugins.so +%{_kf5_qmldir}/org/papylhomme/diskmonitor/qmldir +%{_kf5_sharedir}/applications/diskmonitor.desktop +%dir %{_kf5_configkcfgdir} +%{_kf5_configkcfgdir}/diskmonitor.kcfg +%{_kf5_iconsdir}/hicolor/scalable/apps/diskmonitor.svg +%{_kf5_notifydir}/diskmonitor.notifyrc +%{_kf5_servicesdir}/plasma-applet-org.papylhomme.diskmonitor.desktop +%{_kf5_plasmadir}/plasmoids/ +%doc CHANGELOG LICENSE README.md + +%files lang -f diskmonitor.lang + +%changelog