blockrage-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Summary: Block Rage is a "falling-blocks" arcade game,
  2. Summary(ja): コラムスみたいなゲーム
  3. Name: blockrage
  4. Version: 0.2.3
  5. Release: 2%{?_dist_release}
  6. Source0: %{name}-%{version}.tar.gz
  7. Source1: blockrage.desktop
  8. License: GPLv2+
  9. Group: Applications/Games
  10. URL: http://blockrage.sourceforge.net/
  11. Requires(post,postun): desktop-file-utils
  12. Requires: SDL >= 1.2.0
  13. BuildRequires: SDL-devel
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. %description
  16. Block Rage is a "falling-blocks" arcade game, inspired by a DOS
  17. classic. It features a two-player hotseat mode. In the future
  18. it should also feature nice graphics and sound.
  19. %prep
  20. %setup -q
  21. %build
  22. ./configure \
  23. --prefix=%{_prefix} \
  24. --bindir=%{_bindir} \
  25. --datadir=%{_datadir}/games \
  26. --sysconfdir=%{_sysconfdir} \
  27. --mandir=%{_mandir} \
  28. ;
  29. %__make %{?_smp_mflags}
  30. %install
  31. %__rm -rf ${RPM_BUILD_ROOT}
  32. %__make DESTDIR=${RPM_BUILD_ROOT} install
  33. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
  34. %__install -m0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications
  35. %clean
  36. %__rm -rf ${RPM_BUILD_ROOT}
  37. %post
  38. # touch --no-create %{_datadir}/icons/hicolor
  39. # if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  40. # %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  41. # fi
  42. %{_bindir}/update-desktop-database --quiet %{_datadir}/applications || :
  43. %postun
  44. %{_bindir}/update-desktop-database --quiet %{_datadir}/applications
  45. # touch --no-create %{_datadir}/icons/hicolor
  46. # if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  47. # %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  48. # fi || :
  49. %files
  50. %defattr(-,root,root)
  51. %doc COPYING ChangeLog INSTALL.txt KNOWN_BUGS README TODO
  52. %{_datadir}/games/%{name}
  53. %{_bindir}/blockrage
  54. %{_datadir}/applications/%{name}.desktop
  55. %{_mandir}/man6/blockrage.6.gz
  56. %{_sysconfdir}/%{name}
  57. %changelog
  58. * Wed Feb 8 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-2
  59. - fixed License tag
  60. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 0.2.3-1vl5
  61. - applied new versioning policy, spec in utf-8
  62. - updated man-path to %%{_mandir}
  63. * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.2.3-0vl2
  64. - rebuild for VineSeed
  65. * Tue Mar 9 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.2.3-0vl1
  66. - initial build for Vine Linux
  67. # * Tue Oct 25 2005 0.2.3-0vl1
  68. # - update
  69. # * Mon Sep 26 2005 0.2.2-0vl1
  70. # - initial build for Vine Linux
  71. # end of file