tecnoballz-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %define name tecnoballz
  2. %define version 0.92
  3. %define release 1%{?_dist_release}
  4. Summary: A Breakout like game.
  5. Summary(ja): ブロック崩し
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: http://linux.tlk.fr/games/TecnoballZ/download/%{name}-%{version}.tgz
  10. Source1: %{name}.png
  11. Source2: %{name}.desktop
  12. License: GPLv3
  13. Group: Applications/Games
  14. URL: http://linux.tlk.fr/games/TecnoballZ/
  15. Requires: SDL SDL_mixer libogg libvorbis mikmod smpeg
  16. BuildRequires: SDL-devel SDL_mixer-devel
  17. BuildRequires: libogg-devel libvorbis-devel mikmod-devel smpeg-devel sed
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: OOI Keita <ooi.keita@gmail.com>
  22. %description
  23. A exciting Brick Breaker with 50 levels of game and 11 special levels,
  24. distributed on the 2 modes of game to give the player a sophisticated
  25. system of attack weapons with an enormous power of fire that can be
  26. build by gaining bonuses. Numerous decors, musics and sounds
  27. complete this great game. This game was ported from the Commodore Amiga.
  28. %description -l ja
  29. すべてのブロックを壊せば、各面をクリアできます。
  30. ゲームにはいくつかのアリアがあり、エリアは更に面に分かれています。
  31. ボスキャラのいる面もあります。
  32. エリアを通過する毎に、一つずつ、面の端の壁が開きます。
  33. 各面の間では、ゲーム中に得たお金で、アイテムを購入することも可能です。
  34. %prep
  35. %setup -q
  36. # FIX: set gamedir and scoredir
  37. sed -i 's|gamesdir = $(prefix)/games|gamesdir = ${bindir}|' src/Makefile.in
  38. sed -i 's|scoredir = /var/games/tecnoballz|scoredir = ${localstatedir}/games/%{name}|' Makefile.in
  39. %build
  40. %configure
  41. make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS"
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install DESTDIR=%{buildroot}
  45. cp -fr src/TecnoballZ/levels-data.xml ${RPM_BUILD_ROOT}%{_datadir}/%{name}
  46. cp -fr src/TecnoballZ/texts ${RPM_BUILD_ROOT}%{_datadir}/%{name}
  47. # install icon
  48. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
  49. install -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{name}.png
  50. # install desktop
  51. sed "s/Icon=tecnoballz.png/Icon=tecnoballz/" %{SOURCE2} > %{name}.desktop
  52. desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %post
  56. %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  57. %postun
  58. %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  59. %files
  60. %defattr(-,root,root)
  61. %doc AUTHORS CHANGES COPYING INSTALL README
  62. %{_datadir}/%{name}
  63. %{_datadir}/pixmaps/%{name}.png
  64. %{_datadir}/applications/%{name}.desktop
  65. %{_mandir}/man6/%{name}*
  66. %attr(2755,root,games) %{_bindir}/%{name}
  67. %defattr(-,root,games)
  68. %config(noreplace) %{_localstatedir}/games/%{name}/*
  69. %changelog
  70. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.92-1vl5
  71. - applied new versioning policy, spec in utf-8
  72. * Fri Jan 18 2008 Shu KONNO <owa@bg.wakwak.com> 0.92-0vl1
  73. - updated tecnoballz to 0.92
  74. - changed license to GPLv3
  75. - changed description
  76. - dropt %{name}-0.91-owner.patch
  77. - dropt %{name}-0.91-datadir.patch
  78. * Tue Oct 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.91-0vl2
  79. - rebuilt for Vine Linux 4.0
  80. - changed Group to Applications/Games
  81. * Sun Mar 13 2005 OOI Keita <ooi.keita@gmail.com> 0.91-0vl1
  82. - initial build
  83. - tecnoballz-0.91-owner-patch
  84. - setup desktop entry and icon
  85. - install man
  86. - tecnoballz-0.91-datadir.patch