From bf3793432814def7efc3505eea733e8048c276d76bc56df68e83d5c949a9a004 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 5 Aug 2015 15:48:26 +0000 Subject: [PATCH] Accepting request 320028 from home:pluskalm:branches:Base:System - Add scriplets for desktop file handling OBS-URL: https://build.opensuse.org/request/show/320028 OBS-URL: https://build.opensuse.org/package/show/Base:System/htop?expand=0&rev=29 --- htop.changes | 5 +++++ htop.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/htop.changes b/htop.changes index 6a591db..73feddf 100644 --- a/htop.changes +++ b/htop.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Aug 2 16:21:35 UTC 2015 - mpluskal@suse.com + +- Add scriplets for desktop file handling + ------------------------------------------------------------------- Fri Feb 20 13:38:40 UTC 2015 - jhura@suse.com diff --git a/htop.spec b/htop.spec index 7c59ce7..44aed51 100644 --- a/htop.spec +++ b/htop.spec @@ -1,7 +1,7 @@ # # spec file for package htop # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -26,10 +26,13 @@ Url: http://hisham.hm/htop Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz Patch0: htop-desktop-file-fix-thoenig-01.patch Patch1: htop-stdgnu.patch +BuildRequires: autoconf BuildRequires: automake BuildRequires: ncurses-devel BuildRequires: python BuildRequires: update-desktop-files +Requires(post): update-desktop-files +Requires(postun): update-desktop-files Recommends: lsof Recommends: strace BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -46,7 +49,7 @@ but is also reported to work (and was originally developed) with the %patch1 -p1 %build -autoreconf -fi +autoreconf -fiv %configure \ --enable-taskstats \ --enable-unicode \ @@ -59,6 +62,12 @@ make %{?_smp_mflags} make DESTDIR=%{buildroot} install %{?_smp_mflags} %suse_update_desktop_file -i %{name} System Monitor +%post +%desktop_database_post + +%postun +%desktop_database_postun + %files %defattr(-,root,root) %doc COPYING