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
This commit is contained in:
Marcus Meissner 2015-08-05 15:48:26 +00:00 committed by Git OBS Bridge
parent 32a007d969
commit bf37934328
2 changed files with 16 additions and 2 deletions

View File

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

View File

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