From 11eee40c27e8f3754821fbbb6fed48f059ee2e0961c368a0e43ad8f6e64d5595 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 11 May 2017 12:45:05 +0000 Subject: [PATCH] - Use desktop scriplets OBS-URL: https://build.opensuse.org/package/show/editors/nedit?expand=0&rev=19 --- nedit.changes | 5 +++++ nedit.spec | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/nedit.changes b/nedit.changes index f775a2c..a36982a 100644 --- a/nedit.changes +++ b/nedit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 11 12:44:50 UTC 2017 - mpluskal@suse.com + +- Use desktop scriplets + ------------------------------------------------------------------- Thu May 11 12:03:48 UTC 2017 - tchvatal@suse.com diff --git a/nedit.spec b/nedit.spec index d9c0504..eb4b6c8 100644 --- a/nedit.spec +++ b/nedit.spec @@ -41,7 +41,8 @@ Patch6: %{name}-5.6_builddate_fix.patch BuildRequires: bison BuildRequires: openmotif-devel BuildRequires: update-desktop-files -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-desktop-files +Requires(postun): update-desktop-files %description NEdit is a GUI style plain text editor for workstations with the X Window System @@ -79,12 +80,20 @@ install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/ install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/ %suse_update_desktop_file %{name} TextEditor +%post +%desktop_database_post + +%postun +%desktop_database_postun + %files %defattr(-,root,root) %doc doc/nedit.doc README ReleaseNotes -%{_mandir}/*/* -%{_bindir}/* -%{_datadir}/applications/* +%{_bindir}/nedit +%{_bindir}/nedit-client +%{_mandir}/man1/nedit.1x%{ext_man} +%{_mandir}/man1/nedit-client.1x%{ext_man} +%{_datadir}/applications/nedit.desktop %{_datadir}/pixmaps/nedit-icon.png %changelog