[gnome-music: 5/9] Validate the desktop file
Mathieu Bridon
bochecha at fedoraproject.org
Fri Aug 23 01:43:56 UTC 2013
commit 2c4baf67d5c590a0991a6fd8d0130fbf4b2b0dd6
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Wed Aug 21 17:51:47 2013 +0800
Validate the desktop file
gnome-music.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-music.spec b/gnome-music.spec
index 0a71bd7..408b7cf 100644
--- a/gnome-music.spec
+++ b/gnome-music.spec
@@ -12,6 +12,7 @@ License: (GPLv2+ with exceptions) and LGPLv2+ and CC-BY-SA
URL: http://wiki.gnome.org/Apps/Music
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.9/%{name}-%{version}.tar.xz
+BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.35.9
@@ -59,6 +60,8 @@ find %{buildroot} -name '*.la' -exec rm -f '{}' \;
%find_lang %{name}
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -89,6 +92,7 @@ fi
%changelog
- Fix the upstream URL
- Fix the license tag
+ - Validate the desktop file
* Wed Aug 21 2013 Mathieu Bridon <bochecha at fedoraproject.org> - 3.9.90-1
- Initial package for Fedora.
More information about the scm-commits
mailing list