trackballs-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. Name: trackballs
  2. Version: 1.1.4
  3. Release: 3%{?_dist_release}
  4. Summary: Steer a marble ball through a labyrinth
  5. Summary(ja): ボールを転がして迷路を抜けるゲーム
  6. Group: Applications/Games
  7. License: GPLv2+
  8. URL: http://trackballs.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  10. Source1: %{name}.desktop
  11. Patch0: trackballs-1.1.4-destdir.patch
  12. Patch1: trackballs-1.1.4-black-vertices-fix.patch
  13. Patch2: trackballs-1.1.4-rh555877.patch
  14. Patch3: trackballs-1.1.4-guile20.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  16. BuildRequires: guile-devel libGLU-devel zlib-devel desktop-file-utils
  17. BuildRequires: SDL_ttf-devel SDL_mixer-devel SDL_image-devel
  18. Requires: hicolor-icon-theme
  19. Requires: trackballs-music
  20. %description
  21. Trackballs is a game in which you steer a marble ball through tracks of varying
  22. difficulty. The game features 3D graphics, an integerated level editor and high
  23. quality soundeffects and background music.
  24. %description -l ja
  25. Trackballs は色々な難易度の迷路を、ボールを転がして迷路を抜ける
  26. ゲームです。このゲームには、3D グラフィック表示や内蔵のレベル
  27. (コース)エディタ、高品質の効果音や BGM が含まれています。
  28. %prep
  29. %setup -q
  30. %patch0 -p1
  31. %patch1 -p1
  32. %patch2 -p1
  33. %patch3 -p1
  34. iconv -f ISO-8859-1 -t UTF8 share/%{name}.6 > share/%{name}.6.tmp
  35. mv share/%{name}.6.tmp share/%{name}.6
  36. # the install script does a chgrp to 'games', this doesn't work while
  37. # building as a user. Is group=games required?
  38. sed -i "s/chgrp/#chgrp/g;" share/Makefile*
  39. %build
  40. %configure --with-highscores="~"
  41. sed -i 's|^mkinstalldirs.*|mkinstalldirs=$(MKINSTALLDIRS)|g' po/Makefile
  42. make %{?_smp_mflags}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install DESTDIR=$RPM_BUILD_ROOT
  46. %find_lang %{name}
  47. # remove the broken upstream provided desktop file and use our own.
  48. rm $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  49. desktop-file-install --vendor vine \
  50. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  51. %{SOURCE1}
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %post
  55. touch --no-create %{_datadir}/icons/hicolor || :
  56. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  57. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  58. fi
  59. %postun
  60. touch --no-create %{_datadir}/icons/hicolor || :
  61. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  62. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  63. fi
  64. %files -f %{name}.lang
  65. %doc AUTHORS COPYING ChangeLog FAQ README TODO
  66. %defattr(-,root,root,-)
  67. %{_bindir}/%{name}*
  68. %{_datadir}/%{name}
  69. %{_mandir}/man6/%{name}.6.gz
  70. %{_datadir}/applications/vine-%{name}.desktop
  71. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  72. %changelog
  73. * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.4-3
  74. - rebuild with gcc-5.4.0
  75. * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.4-2
  76. - rebuild with guile-2.0.11
  77. - add Patch3 (trackballs-1.1.4-guile20.patch) from fedora
  78. * Mon Jan 03 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.1.4-1
  79. - initial build for Vine Linux based on fedora development
  80. * Mon Feb 22 2010 Hans de Goede <hdegoede@redhat.com> 1.1.4-12
  81. - Fix FTBFS (automake rerunning due to patches, #564762)
  82. * Mon Jan 18 2010 Hans de Goede <hdegoede@redhat.com> 1.1.4-11
  83. - Fix a crash when trying to change to an unsupported resolution (#555877)
  84. - Add widescreen monitor resolutions to the monitor resolution list
  85. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-10
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  87. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-9
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  89. * Tue Jan 20 2009 Hans de Goede <hdegoede@redhat.com> 1.1.4-8
  90. - Adjust font requires for font rename (rh 480476)
  91. * Sat Dec 27 2008 Hans de Goede <hdegoede@redhat.com> 1.1.4-7
  92. - Replace included gnu freefont copy with a symlink to dejavu (rh 477470)
  93. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.4-6
  94. - Autorebuild for GCC 4.3
  95. * Sun Jan 13 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.4-5
  96. - Fix building with gcc 4.3
  97. * Thu Jan 3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.4-4
  98. - Fix black vertices on ATI cards with OSS drivers
  99. * Tue Sep 25 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.4-3
  100. - Use opengl-games-utils wrapper to show error dialog when DRI is missing
  101. * Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.4-2
  102. - Update License tag for new Licensing Guidelines compliance
  103. * Tue Jun 5 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.4-1
  104. - New upstream release 1.1.4
  105. * Sat Mar 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.2-4
  106. - Fixup .desktop file categories for games-menus usage
  107. * Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.2-3
  108. - FE6 Rebuild
  109. * Tue Aug 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.2-2
  110. - Remove some redundant BR's
  111. * Mon Aug 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.2-1
  112. - Initial Fedora Extras version