xmoto-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. Name: xmoto
  2. Version: 0.5.4
  3. Release: 1%{?_dist_release}
  4. Summary: Challenging 2D Motocross Platform Game
  5. Summary(ja): 2D 画面のアクロバティックなモトクロスゲーム
  6. Group: Applications/Games
  7. License: GPLv2+
  8. URL: http://xmoto.sourceforge.net/
  9. Source0: http://download.tuxfamily.org/xmoto/xmoto/%{version}/xmoto-%{version}-src.tar.gz
  10. Source1: xmoto.desktop
  11. Source2: xmoto.png
  12. Source3: xmoto-0.5.4-ja.po
  13. #Patch0: xmoto-man.patch
  14. Patch1: xmoto-0.3.4-Environment-cstlib.patch
  15. #Patch2: xmoto-0.3.4-Scene-collisioninclude.patch
  16. Patch3: xmoto-0.4.0-Environment-string.patch
  17. #Patch4: xmoto-0.4.0-DrawLib-hashmap.patch
  18. #Patch5: xmoto-0.4.2-initode.patch
  19. #Patch6: xmoto-0.4.2-opengldepth.patch
  20. Patch7: xmoto-0.5.0-xmargs-include.patch
  21. Patch8: xmoto-0.5.0-helpers-text-includes.patch
  22. Patch9: xmoto-0.5.0-helpers-log-include.patch
  23. #Patch10: xmoto-0.5.2-x86-64.patch
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  25. BuildRequires: desktop-file-utils
  26. BuildRequires: SDL_mixer-devel
  27. BuildRequires: SDL_ttf-devel
  28. BuildRequires: curl-devel
  29. BuildRequires: ode-devel
  30. BuildRequires: lua-devel
  31. BuildRequires: libGL-devel
  32. BuildRequires: libGLU-devel
  33. BuildRequires: libjpeg-devel
  34. BuildRequires: libpng-devel
  35. BuildRequires: bzip2-devel
  36. BuildRequires: sqlite3-devel
  37. BuildRequires: SDL_net-devel
  38. BuildRequires: libxdg-basedir-devel
  39. Requires: TrueType-vlgothic
  40. Packager: kazutaka
  41. %description
  42. X-Moto is a challenging 2D motocross platform game, where physics play an all
  43. important role in the gameplay. You need to control your bike to its limit, if
  44. you want to have a chance finishing the more difficult of the challenges.
  45. First you'll try just to complete the levels, while later you'll compete with
  46. yourself and others, racing against the clock.
  47. %description -l ja
  48. X-Moto はアクロバティックな 2D 画面のモトクロスゲームです。
  49. このゲームでは重力を上手に利用することがとても重要になります。
  50. また、難易度の高い面を攻略するには、バイクの特性の限界ギリギリ
  51. までコントルールする必要があります。
  52. 最初は各面を攻略するところから始まりますが、全ての面をクリア
  53. した後もタイムトライアルに挑戦できます。
  54. %prep
  55. %setup -q
  56. #%patch
  57. %patch1 -p0
  58. #%patch2 -p0
  59. %patch3 -p0
  60. #%patch4 -p0
  61. #%patch5 -p1
  62. #%patch6 -p0
  63. %patch7 -p0
  64. %patch8 -p0
  65. %patch9 -p0
  66. #%patch10 -p0
  67. #fix encoding
  68. sed -i 's/\r//' src/xmscene/Camera.cpp
  69. sed -i 's/\r//' src/xmscene/Camera.h
  70. #fix permissions
  71. chmod 644 src/xmscene/Camera.*
  72. chmod -x src/*.cpp
  73. chmod -x src/*.h
  74. chmod -x src/*/*.cpp
  75. chmod -x src/*/*.h
  76. chmod -x src/*/*/*.cpp
  77. chmod -x src/*/*/*.h
  78. %build
  79. %configure --with-enable-zoom=1
  80. make
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. make install DESTDIR=$RPM_BUILD_ROOT
  84. # Install icon and desktop file
  85. mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
  86. cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
  87. desktop-file-install --vendor vine \
  88. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  89. --add-category X-Fedora %{SOURCE1}
  90. # use vlgothic as default font
  91. rm $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
  92. ln -s ../../../fonts/TrueType-vlgothic/VL-PGothic-Regular.ttf $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
  93. # install japanese translation
  94. %{__mkdir} -p ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES
  95. msgfmt %{SOURCE3} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/%{name}.mo
  96. # Locale files
  97. %find_lang %{name} %{name}.lang
  98. %clean
  99. rm -rf $RPM_BUILD_ROOT
  100. %post
  101. touch --no-create %{_datadir}/icons/hicolor || :
  102. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  103. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  104. fi
  105. %postun
  106. touch --no-create %{_datadir}/icons/hicolor || :
  107. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  108. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  109. fi
  110. %files -f %{name}.lang
  111. %defattr(-,root,root,-)
  112. %doc ChangeLog COPYING README
  113. %{_bindir}/xmoto
  114. %{_datadir}/xmoto
  115. %{_datadir}/applications/vine-xmoto.desktop
  116. %{_datadir}/icons/hicolor/48x48/apps/xmoto.png
  117. %{_mandir}/man6/xmoto.6.gz
  118. %changelog
  119. * Fri Jan 07 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.5.4-1
  120. - initial build for Vine Linux based on fedora development
  121. - add Source3: japanese translation
  122. * Mon Dec 13 2010 Jon Ciesla <limb@jcomserv.net> 0.5.4-1
  123. - New upstream.
  124. * Tue May 04 2010 Jon Ciesla <limb@jcomserv.net> 0.5.3-1
  125. - New upstream.
  126. - Dropped upstreamed x86-64 patch.
  127. * Mon Dec 07 2009 Jon Ciesla <limb@jcomserv.net> 0.5.2-1.1
  128. - EVR bump for fix CVS tagging snafu.
  129. * Tue Dec 06 2009 Howard Liberty <liberty@live.com> 0.5.2-1
  130. - New upstream.
  131. - Add x86-64 patch so it can be compiled in x86-64 enviroment.
  132. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-1
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  134. * Tue Apr 14 2009 Jon Ciesla <limb@jcomserv.net> 0.5.1-0
  135. - New upstream.
  136. - Dropped opengldepth patch, applied upstream.
  137. * Mon Feb 23 2009 Jon Ciesla <limb@jcomserv.net> 0.5.0-6
  138. - Patch for includes.
  139. * Mon Feb 02 2009 Jon Ciesla <limb@jcomserv.net> 0.5.0-5
  140. - Fix for ati crash, BZ 481485.
  141. * Tue Jan 20 2009 Jon Ciesla <limb@jcomserv.net> 0.5.0-4
  142. - Font requires change for BZ 480480, dejavu rename.
  143. * Tue Dec 30 2008 Jon Ciesla <limb@jcomserv.net> 0.5.0-3
  144. - Symlink to system font, BZ 477485.
  145. - Dropped extension from icon in .desktop.
  146. * Wed Dec 10 2008 Jon Ciesla <limb@jcomserv.net> 0.5.0-2
  147. - No remaining fuzzy patches, dropping patch fuzz workaround.
  148. * Mon Dec 01 2008 Jon Ciesla <limb@jcomserv.net> 0.5.0-1
  149. - Update to 0.5.0.
  150. * Wed Oct 15 2008 Hans de Goede <hdegoede@redhat.com> 0.4.2-4
  151. - Fix crash caused by using new ode (bz 466738)
  152. * Tue Sep 30 2008 Jon Ciesla <limb@jcomserv.net> 0.4.2-3
  153. - Patch for new ode version.
  154. * Fri Sep 12 2008 Jon Ciesla <limb@jcomserv.net> 0.4.2-2
  155. - Introducted patch fuzz workaround, will fix.
  156. * Tue Mar 18 2008 Jon Ciesla <limb@jcomserv.net> 0.4.2-1
  157. - Update to 0.4.2.
  158. - Dropping xmoto-man patch.
  159. * Wed Feb 13 2008 Jon Ciesla <limb@jcomserv.net> 0.4.1-1
  160. - Update to 0.4.1.
  161. - Dropped subversion BR.
  162. * Mon Feb 11 2008 Jon Ciesla <limb@jcomserv.net> 0.4.0-1
  163. - Update to 0.4.0.
  164. - Dropped unneeded patches.
  165. - Added string patch, hash_map, inline(jwrdegoede) patch.
  166. - BRed subversion.
  167. * Tue Jan 08 2008 Jon Ciesla <limb@jcomserv.net> 0.3.4-2
  168. - Added cstdlib, include extra tokens patches.
  169. - GCC 4.3 rebuild.
  170. * Thu Oct 25 2007 Jon Ciesla <limb@jcomserv.net> 0.3.4-1
  171. - Bumped to 0.3.4.
  172. * Mon Sep 24 2007 Jon Ciesla <limb@jcomserv.net> 0.3.3-2
  173. - Patches from upstream to correct BZ 295981.
  174. * Wed Aug 29 2007 Jon Ciesla <limb@jcomserv.net> 0.3.3-1
  175. - Bumped to upstream.
  176. - Fixed URL.
  177. * Thu Aug 16 2007 Jon Ciesla <limb@jcomserv.net> 0.3.1-2
  178. - License tag correction.
  179. * Mon Jul 09 2007 Jon Ciesla <limb@jcomserv.net> 0.3.1-1
  180. - Bumped to upstream, BZ 247445.
  181. * Wed Jun 20 2007 Jon Ciesla <limb@jcomserv.net> 0.3.0-1
  182. - Bumped to upstream.
  183. * Mon Mar 19 2007 Jon Ciesla <limb@jcomserv.net> 0.2.7-1
  184. - Bumped to upstream, fixed man issues.
  185. * Fri Mar 16 2007 Jon Ciesla <limb@jcomserv.net> 0.2.6-2
  186. - Bumped release, build mistake.
  187. * Fri Mar 16 2007 Jon Ciesla <limb@jcomserv.net> 0.2.6-1
  188. - New upstream release.
  189. - Removed Application from .desktop.
  190. - Spec cleanup.
  191. - Fixed man path with patch.
  192. - Removed X-Fedora.
  193. * Wed Feb 28 2007 Jon Ciesla <limb@jcomserv.net> 0.2.4-1
  194. - New upstream release
  195. - xmoto-edit now seperate from base xmoto
  196. * Mon Nov 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.2.2-2
  197. - Added again the debuginfo package (it's working)
  198. * Sun Nov 12 2006 Hugo Cisneiros <hugo@devin.com.br> 0.2.2-1
  199. - New upstream release
  200. * Mon Nov 6 2006 Jindrich Novy <jnovy@redhat.com> 0.2.0-2
  201. - Rebuild against the new curl
  202. * Wed Sep 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.2.0-1
  203. - New upstream release
  204. * Wed Sep 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.1.16-2
  205. - Rebuilt for FC6
  206. * Wed Jul 5 2006 Hugo Cisneiros <hugo@devin.com.br> 0.1.16-1
  207. - Initial RPM release