ソースを参照

lincity-ng 2.0-4

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1845 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 14 年 前
コミット
dc8101a807
1 ファイル変更25 行追加2 行削除
  1. 25 2
      l/lincity-ng/lincity-ng-vl.spec

+ 25 - 2
l/lincity-ng/lincity-ng-vl.spec

@@ -2,7 +2,7 @@
 
 %define name lincity-ng
 %define version 2.0
-%define release 3%{?_dist_release}
+%define release 4%{?_dist_release}
 Summary: City Simulation Game
 Summary(ja): 都市シミュレーションゲーム
 Name: %{name}
@@ -18,9 +18,10 @@ Requires: SDL, SDL_image, SDL_mixer, SDL_ttf, SDL_gfx,
 Requires: zlib, libxml2, physfs
 BuildRequires: SDL-devel, SDL_image-devel, SDL_mixer-devel, 
 BuildRequires: SDL_ttf-devel, SDL_gfx-devel, 
-BuildRequires: mesa-libGL-devel
+BuildRequires: mesa-libGL-devel, mesa-libGLU-devel
 BuildRequires: zlib-devel, libxml2-devel, physfs-devel, 
 BuildRequires: jam, vorbis-tools
+BuildRequires(check): desktop-file-utils
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 %description
@@ -64,6 +65,21 @@ popd
 %{__rm} -rf ${RPM_BUILD_ROOT}
 
 
+%check
+%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/lincity-ng.desktop
+
+
+%post
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+
+%postun
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+
+
 %files
 %defattr(-,root,root)
 %doc %{_datadir}/doc/%{name}-%{version}
@@ -73,6 +89,13 @@ popd
 %{_datadir}/lincity-ng
 
 %changelog
+* Mon Sep 20 2010 IWAI, Masaharu <iwai@alib.jp> 2.0-4
+- build with SDL_gfx 2.0.22
+- add BuildRequires: mesa-libGLU-devel
+- validating desktop file in %%check section
+- add %%post and %%postun sections for desktop file
+ - add BuildRequires: desktop-file-utils
+
 * Thu Jul 30 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-3
 - added Japanese Summary and description