Browse Source

updated ltris-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5631 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 12 years ago
parent
commit
7b252661fe
1 changed files with 27 additions and 4 deletions
  1. 27 4
      l/ltris/ltris-vl.spec

+ 27 - 4
l/ltris/ltris-vl.spec

@@ -2,13 +2,14 @@
 Summary:	Tetlis game with multiplayer mode
 Summary(ja):	対戦型テトリス
 Name:		ltris
-Version:	1.0.17
+Version:	1.0.18
 Release:	1%{?_dist_release}
 Source0:	%{name}-%{version}.tar.gz
-License:	GNU General Public License
+License:	GPL
 Group:		Applications/Games
 URL:		http://lgames.sourceforge.net/
 
+Requires(post,postun): desktop-file-utils
 Requires:	SDL
 Requires:	SDL_mixer
 BuildRequires:	SDL-devel
@@ -36,7 +37,9 @@ Demo you can watch your CPU playing while enjoying a cup of tea!
 %setup -q
 
 %build
-%configure --prefix=%{_prefix}
+%configure --prefix=%{_prefix} \
+	   --localstatedir=%{_localstatedir}/games \
+	   ;
 %__make
 
 %install
@@ -48,6 +51,20 @@ Demo you can watch your CPU playing while enjoying a cup of tea!
 %clean
 %__rm -rf ${RPM_BUILD_ROOT}
 
+%post
+# touch --no-create %{_datadir}/icons/hicolor
+# if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+#   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+# fi 
+%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || :
+
+%postun
+%{_bindir}/update-desktop-database --quiet %{_datadir}/applications
+# touch --no-create %{_datadir}/icons/hicolor
+# if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+#   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+# fi || :
+
 
 %files -f %{name}.lang
 %defattr(-,root,root)
@@ -58,10 +75,16 @@ Demo you can watch your CPU playing while enjoying a cup of tea!
 %{_datadir}/%{name}/figures
 %{_datadir}/%{name}/gfx
 %{_datadir}/%{name}/sounds
-%ghost %{_var}/ltris.hscr
+%ghost %{_localstatedir}/games/ltris.hscr
 
 
 %changelog
+* Mon Feb 13 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.18-1
+- new upstream release
+- fixed License tag
+- added Requires(post,postun): desktop-file-utils
+- moved game score file to /var/games
+
 * Sun Aug 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.17-1
 - new upstream release