supertuxkart-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. Name: supertuxkart
  2. Version: 0.8.1
  3. Release: 1%{?_dist_release}
  4. Summary: An enhanced version of TuxKart, a kart racing game
  5. Summary(ja): TuxKart を拡張したカートレーシングゲーム
  6. License: GPLv2+ and GPLv3 and CC-BY-SA
  7. Group: Applications/Games
  8. URL: http://supertuxkart.sourceforge.net/
  9. Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}-src.tar.bz2
  10. Source2: supertuxkart-0.7.3-license-clarification.txt
  11. Patch0: supertuxkart-fhs.patch
  12. # tracked in github.com/ignatenkobrain/stk-code/ in fedora-0.8.1 branch
  13. Patch1: 0001-fix-.desktop-file-and-install-destinations.patch
  14. #Patch2: 0002-unbundle-bullet.patch
  15. Patch3: 0003-unbundle-enet.patch
  16. Patch4: 0004-unbundle-irrlicht.patch
  17. Patch5: 0005-unbundle-wiiuse.patch
  18. Patch6: 0006-Adding-a-Wiimote-with-other-one-alredy-placed-Bug-12.patch
  19. Patch7: supertuxkart-mesa-fix.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: cmake
  22. BuildRequires: libvorbis-devel freeglut-devel desktop-file-utils
  23. BuildRequires: openal-soft-devel freealut-devel libtool
  24. BuildRequires: curl-devel
  25. #BuildRequires: enet-devel
  26. BuildRequires: fribidi-devel
  27. #BuildRequires: wiiuse-devel
  28. BuildRequires: bluez-libs-devel
  29. #BuildRequires: irrlicht-devel
  30. %global _privatelibs lib(stkirrlicht|wiiuse)[.]so.*
  31. %global __provides_exclude ^(%{_privatelibs})$
  32. %global __requires_exclude ^(%{_privatelibs})$
  33. %description
  34. SuperTuxKart is an enhanced version of TuxKart, a kart racing game,
  35. originally done by Steve Baker, featuring Tux and a bunch of his
  36. friends.
  37. %description -l ja
  38. SuperTuxKart は TuxKart を拡張したカートレーシングゲームです。
  39. %prep
  40. %setup -q -n SuperTuxKart-%{version}
  41. %patch0 -p1
  42. %patch1 -p1
  43. #patch2 -p1
  44. #patch3 -p1
  45. #patch4 -p1
  46. #patch5 -p1
  47. %patch7 -p0
  48. cp -p %{SOURCE2} .
  49. # Delete bundled libs
  50. #rm -rf lib/irrlicht
  51. %build
  52. mkdir -p %{_target_platform}
  53. pushd %{_target_platform}
  54. %cmake \
  55. ..
  56. popd
  57. make %{?_smp_mflags} -C %{_target_platform}
  58. #LDFLAGS=-lGLU irrlicht_LIBS="-lIrrlicht -lIrrXML"
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. cd %{_target_platform}
  62. make DESTDIR=$RPM_BUILD_ROOT install
  63. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  64. install -m755 lib/irrlicht/libstkirrlicht.so $RPM_BUILD_ROOT%{_libdir}/libstkirrlicht.so
  65. install -m755 lib/wiiuse/libwiiuse.so $RPM_BUILD_ROOT%{_libdir}/libwiiuse.so
  66. cd ..
  67. # fix .desktop file
  68. desktop-file-install \
  69. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  70. --remove-key=Exec \
  71. --set-key=Exec --set-value='%{_bindir}/supertuxkart --no-console' \
  72. $RPM_BUILD_ROOT%{_datadir}/applications/supertuxkart.desktop
  73. ## remove unpackaged files
  74. #__rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. %check
  78. desktop-file-validate %{buildroot}%{_datadir}/applications/*%{name}.desktop
  79. %post
  80. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  81. /sbin/ldconfig
  82. %postun
  83. if [ $1 -eq 0 ] ; then
  84. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  85. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  86. fi
  87. /sbin/ldconfig
  88. %posttrans
  89. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  90. %files
  91. %defattr(-,root,root)
  92. %doc AUTHORS COPYING README TODO
  93. %doc supertuxkart-0.7.3-license-clarification.txt
  94. %{_bindir}/supertuxkart
  95. %{_datadir}/applications/%{name}.desktop
  96. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  97. %{_datadir}/supertuxkart
  98. %{_libdir}/libstkirrlicht.so
  99. %{_libdir}/libwiiuse.so
  100. %changelog
  101. * Wed Feb 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.8.1-1
  102. - updated to 0.8.1
  103. - built without current irrlicht
  104. - added SOURCE2 from Fedora
  105. * Sun Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7-2
  106. - change BuildRequires: libmikmod-devel instead of mikmod-devel
  107. * Wed Mar 16 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.7-1
  108. - new upstream release
  109. - add BuildRequires: irrlicht-devel fribidi-devel
  110. * Fri Oct 09 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.2-1
  111. - new upstream release
  112. - changed URL: to http://supertuxkart.sourceforge.net/
  113. * Thu Jul 30 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1a-2
  114. - added Japanese Summary and description
  115. * Fri May 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6.1a-1
  116. - new upstream release
  117. - added BuildRequires: libvorbis-devel
  118. * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6-1
  119. - new upstream release
  120. * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3
  121. - s|/usr/games/supertuxkart|/usr/bin/supertuxkart|g in supertuxkart.desktop
  122. * Wed Oct 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-2vl5
  123. - added BuildRequires: freeglut-devel
  124. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 0.5-1vl5
  125. - new upstream release
  126. - applied new versioning policy
  127. * Sat Feb 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3-0vl2
  128. - rebuild for VineSeed
  129. * Sun Aug 5 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.3-0vl1
  130. - initial build for Vine Linux 4.1