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
This commit is contained in:
Raymond Wooninck 2015-04-14 11:25:14 +00:00 committed by Git OBS Bridge
commit e26fa19a4e
8 changed files with 180 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
diskmonitor-0.3.1.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eee2f1a30be0668d3dc3443861b7803c3196c4936764e79f613d0739900e4fff
size 117746

15
diskmonitor-desktop.patch Normal file
View File

@ -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

View File

@ -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/" )

View File

@ -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
)

10
diskmonitor.changes Normal file
View File

@ -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.

106
diskmonitor.spec Normal file
View File

@ -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