[gnome-system-monitor/f19] Remove the use of desktop-file-install and its vendor prefix override

Kalev Lember kalev at fedoraproject.org
Tue May 21 21:59:41 UTC 2013


commit 12b05564184a8c8aa59c7093a3098776ec5eaeff
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue May 21 23:51:17 2013 +0200

    Remove the use of desktop-file-install and its vendor prefix override
    
    Instead, just validate the desktop file in %check.

 gnome-system-monitor.spec |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/gnome-system-monitor.spec b/gnome-system-monitor.spec
index 6b14bdb..89c7470 100644
--- a/gnome-system-monitor.spec
+++ b/gnome-system-monitor.spec
@@ -47,15 +47,12 @@ make %{?_smp_mflags}
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 
-desktop-file-install --vendor gnome --delete-original       \
-  --dir $RPM_BUILD_ROOT%{_datadir}/applications             \
-  --remove-category Application                             \
-  $RPM_BUILD_ROOT%{_datadir}/applications/*
-
-rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
-
 %find_lang %{name} --with-gnome
 
+%check
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-system-monitor.desktop
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-system-monitor-kde.desktop
+
 %postun
 if [ $1 -eq 0 ]; then
   glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
@@ -67,7 +64,8 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 %files -f %{name}.lang
 %doc AUTHORS NEWS COPYING README
 %{_bindir}/gnome-system-monitor
-%{_datadir}/applications/*
+%{_datadir}/applications/gnome-system-monitor.desktop
+%{_datadir}/applications/gnome-system-monitor-kde.desktop
 %{_datadir}/pixmaps/gnome-system-monitor/
 %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.enums.xml
 %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.gschema.xml


More information about the scm-commits mailing list