Browse Source

fix desktop file

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8541 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi 10 years ago
parent
commit
9d28b011bc
2 changed files with 18 additions and 7 deletions
  1. 8 4
      e/eog/eog-vl.spec
  2. 10 3
      e/evince/evince-vl.spec

+ 8 - 4
e/eog/eog-vl.spec

@@ -9,7 +9,7 @@ Summary: Eye of GNOME image viewer
 Summary(ja): Eye of GNOME 画像ビューワ
 Name:    eog
 Version: 3.12.2
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 URL: http://projects.gnome.org/eog/
 Group: Applications/Graphics
 License: GPL 
@@ -76,9 +76,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/eog/plugings/*.la
 
 mkdir -p $RPM_BUILD_ROOT%{_libdir}/eog/plugins
 
-desktop-file-install --vendor gnome --delete-original       \
-  --dir $RPM_BUILD_ROOT%{_datadir}/applications             \
-  $RPM_BUILD_ROOT%{_datadir}/applications/*
+desktop-file-install --vendor gnome --delete-original	\
+	--dir $RPM_BUILD_ROOT%{_datadir}/applications		\
+	--add-only-show-in GNOME							\
+	$RPM_BUILD_ROOT%{_datadir}/applications/*
 
 %find_lang %{name}
 
@@ -123,6 +124,9 @@ fi
 %{_datadir}/gtk-doc/html/eog
 
 %changelog
+* Wed Jun 11 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-2
+- add OnlyShowIn=GNOME; to gnome-eog.desktop
+
 * Fri May 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1
 - new upstream release
 

+ 10 - 3
e/evince/evince-vl.spec

@@ -2,7 +2,7 @@ Summary:	Document viewer
 Summary(ja): 	文書ビューワー
 Name:		evince
 Version:	3.12.1
-Release: 	2%{?_dist_release}
+Release: 	3%{?_dist_release}
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.12/%{name}-%{version}.tar.xz
 
 License:	GPL
@@ -96,9 +96,13 @@ make %{?_smp_mflags}
 
 %install
 rm  -rf $RPM_BUILD_ROOT
-
 make DESTDIR=$RPM_BUILD_ROOT install
 
+desktop-file-install --vendor ''							\
+	--dir $RPM_BUILD_ROOT%{_datadir}/applications			\
+	--add-only-show-in GNOME								\
+	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
+
 %find_lang %{name} --with-gnome --all-name
 
 # remove unnecessary files
@@ -130,7 +134,7 @@ fi
 %defattr(-,root,root)
 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
 %{_bindir}/evince*
-%{_datadir}/applications/evince.desktop
+%{_datadir}/applications/%{name}.desktop
 %{_datadir}/applications/evince-previewer.desktop
 %{_datadir}/evince
 %{_datadir}/gtk-doc/html/evince
@@ -164,6 +168,9 @@ fi
 
 
 %changelog
+* Wed Jun 11 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-3
+- add OnlyShowIn=GNOME; to evince.desktop
+
 * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-2
 - rebuild with poppler-0.24.5