[mate-notification-daemon/f17] add desktop file validate and update for new desktop-file-utils

Dan Mashal vicodan at fedoraproject.org
Sun Sep 16 03:53:18 UTC 2012


commit 42f1976f0b7013e29fbd59d70c27e1a8fc533282
Author: Dan Mashal <dan.mashal at fedoraproject.org>
Date:   Sat Sep 15 20:52:42 2012 -0700

    add desktop file validate and update for new desktop-file-utils

 mate-notification-daemon.spec |   19 +++++++------------
 1 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/mate-notification-daemon.spec b/mate-notification-daemon.spec
index d70bfe1..129c53d 100644
--- a/mate-notification-daemon.spec
+++ b/mate-notification-daemon.spec
@@ -1,6 +1,6 @@
 Name:	mate-notification-daemon
 Version:	1.4.0
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Notification daemon for MATE Desktop
 License:	GPLv2+
 URL:		http://mate-desktop.org
@@ -12,12 +12,10 @@ Provides:	desktop-notification-daemon
 %description
 Notification daemon for MATE Desktop
 
-
 %prep
 %setup -q
 NOCONFIGURE=1 ./autogen.sh
 
-
 %build
 %configure --disable-static --disable-schemas-install 
 make %{?_smp_mflags} V=1
@@ -37,26 +35,20 @@ fi
 %posttrans
 /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
 
-
-
 %install
 make install DESTDIR=%{buildroot}
-
 find %{buildroot} -name '*.la' -exec rm -fv {} ';'
-
 %find_lang %{name} --all-name
 
 desktop-file-install									\
 	--remove-category="MATE"							\
-	--add-category="X-Mate"								\
-%if 0%{?fedora} < 18
-	--remove-only-show-in="MATE"							\
-	--add-only-show-in="X-MATE"							\
-%endif
+	--add-category="X-MATE"								\
 	--delete-original								\
 	--dir=%{buildroot}%{_datadir}/applications					\
 %{buildroot}/%{_datadir}/applications/mate-notification-properties.desktop
 
+%check
+desktop-file-validate %{buildroot}/%{_datadir}/applications/mate-notification-properties.desktop
 
 %files -f %{name}.lang
 %doc AUTHORS COPYING README
@@ -71,6 +63,9 @@ desktop-file-install									\
 
 
 %changelog
+* Sat Sep 15 2012 Dan Mashal <dan.mashal at fedoraproject.org> 1.4.0-6
+- Add desktop-file-validate and remove only showin for < f18 since desktop-file-utils was updated to the latest version. 
+
 * Sat Sep 15 2012 Dan Mashal <dan.mashal at fedoraproject.org> 1.4.0-5
 - Remove unneeded pre scriptlet and move post postun scriptlets before install scriptlet
 


More information about the scm-commits mailing list