xmoto-vl.spec 8.1 KB

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