|
@@ -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
|
|
|
|