[gnomad2] Make sure we update desktop info in future packages

Linus Walleij snirkel at fedoraproject.org
Fri Jan 27 17:57:55 UTC 2012


commit 587d0503e113c43a3a6afece35038e8aa14cdda9
Author: Linus Walleij <triad at df.lth.se>
Date:   Fri Jan 27 18:56:19 2012 +0100

    Make sure we update desktop info in future packages

 gnomad2.spec |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gnomad2.spec b/gnomad2.spec
index 9502cf5..acaa405 100644
--- a/gnomad2.spec
+++ b/gnomad2.spec
@@ -11,6 +11,9 @@ URL:		http://gnomad2.sourceforge.net
 Group:		Applications/Multimedia
 Source:		http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
 BuildRequires:	gtk2-devel
 BuildRequires:	libnjb-devel
 BuildRequires:	libmtp-devel
@@ -52,6 +55,12 @@ desktop-file-install --vendor fedora --delete-original  \
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+update-desktop-database -q
+
+%postun
+update-desktop-database -q
+
 %files -f %{name}.lang
 %defattr(-,root,root)
 %{_bindir}/*


More information about the scm-commits mailing list