Browse Source

updated VLSPEC

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

+ 26 - 4
l/lbreakout2/lbreakout2-vl.spec

@@ -2,12 +2,13 @@ Summary:	LBreakout2 is a breakout-style arcade game in the manner of Arkanoid
 Summary(ja):	ネット対戦ができるブロックくずしのアーケードゲーム第2弾
 Name:		lbreakout2
 Version:	2.6.3
-Release:	1%{?_dist_release}
+Release:	2%{?_dist_release}
 Source0:	%{name}-%{version}.tar.gz
-License:	GNU General Public License
+License:	GPLv2
 Group:		Applications/Games
 URL:		http://lgames.sourceforge.net/
 
+Requires(post,postun): desktop-file-utils
 Requires:	SDL SDL_mixer SDL_net
 Requires:	libpng
 BuildRequires:	SDL-devel SDL_mixer-devel SDL_net-devel
@@ -37,7 +38,9 @@ LGames プロジェクトのネット対戦ができるブロックくずしの
 %setup -q
 
 %build
-%configure --prefix=%{_prefix}
+%configure --prefix=%{_prefix} \
+	   --localstatedir=%{_localstatedir}/games \
+	   ;
 %__make
 
 %install
@@ -52,6 +55,20 @@ LGames プロジェクトのネット対戦ができるブロックくずしの
 %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)
@@ -65,10 +82,15 @@ LGames プロジェクトのネット対戦ができるブロックくずしの
 %{_datadir}/%{name}/gui_theme
 %{_datadir}/%{name}/levels
 %{_datadir}/%{name}/sounds
-%ghost %{_var}/lbreakout2.hscr
+%ghost %{_localstatedir}/games/lbreakout2.hscr
 
 
 %changelog
+* Sat Feb 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.6.3-2
+- fixed License tag
+- added Requires(post,postun): desktop-file-utils
+- moved game score file to /var/games
+
 * Tue Mar 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.6.3-1
 - new upstream release