From 75ffb755e1c125b57bf1abb28d49aea2d2023571f8a669d922f49da321c291ed Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Mon, 7 Nov 2016 12:11:58 +0000 Subject: [PATCH] Accepting request 438952 from home:adra:branches:KDE:Extra Fix file list, Added Source URL OBS-URL: https://build.opensuse.org/request/show/438952 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/diskmonitor?expand=0&rev=3 --- diskmonitor.changes | 6 ++++++ diskmonitor.spec | 14 ++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/diskmonitor.changes b/diskmonitor.changes index b0e029d..8729075 100644 --- a/diskmonitor.changes +++ b/diskmonitor.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/diskmonitor.spec b/diskmonitor.spec index bf0f911..224c99a 100644 --- a/diskmonitor.spec +++ b/diskmonitor.spec @@ -1,7 +1,7 @@ # # spec file for package diskmonitor # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -16,12 +16,14 @@ # +%define _appstreamkpackage 0%(cat %{_kf5_libdir}/cmake/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1) + Name: diskmonitor Summary: KDE tools to monitor SMART devices and MDRaid health status Version: 0.3.1 -Release: 1 +Release: 0 Url: https://github.com/papylhomme/diskmonitor -Source0: diskmonitor-%{version}.zip +Source0: https://github.com/papylhomme/diskmonitor/archive/%{version}.zip#/%{name}-%{version}.zip Patch0: diskmonitor-underlinking.patch Patch1: diskmonitor-desktop.patch Patch2: diskmonitor-installdirs.patch @@ -68,7 +70,7 @@ Applet: %lang_package %prep -%setup -q -n diskmonitor-%{version} +%setup -q %patch0 %patch1 %patch2 @@ -93,6 +95,9 @@ Applet: %{_kf5_qmldir}/org/papylhomme/diskmonitor/libdiskmonitor_qmlplugins.so %{_kf5_qmldir}/org/papylhomme/diskmonitor/qmldir %{_kf5_sharedir}/applications/diskmonitor.desktop +%if 0%{?_appstreamkpackage} +%{_kf5_appstreamdir}/org.papylhomme.diskmonitor.appdata.xml +%endif %dir %{_kf5_configkcfgdir} %{_kf5_configkcfgdir}/diskmonitor.kcfg %{_kf5_iconsdir}/hicolor/scalable/apps/diskmonitor.svg @@ -102,5 +107,6 @@ Applet: %doc CHANGELOG LICENSE README.md %files lang -f diskmonitor.lang +%defattr(-,root,root) %changelog