missile-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %define prefix /usr
  2. Summary: A clone of the Atari save-your-city-from-impending-nuclear-doom game.
  3. Summary(ja): ミサイルで都市を防衛するゲーム
  4. Name: missile
  5. Prefix: %prefix
  6. Version: 1.0.1
  7. Release: 1%{?_dist_release}
  8. License: GPL
  9. Url: http://missile.sourceforge.net/
  10. Group: Applications/Games
  11. Source: missile-%{version}.tar.gz
  12. Patch0: missile.userbuild.patch
  13. Patch1: missile.desktop.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: SDL-devel, SDL_image-devel, SDL_mixer-devel
  16. Requires: SDL, SDL_image, SDL_mixer
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp>
  20. %description
  21. Protect your city from nuclear disaster by destroying incoming
  22. warheads with your anti-missile SAMs.
  23. %description -l ja
  24. 地対空ミサイルを使って、飛来するミサイルから都市を防衛せよ。
  25. %prep
  26. %setup
  27. %patch0 -p1
  28. %patch1 -p1
  29. %build
  30. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" game_prefix=%{prefix}
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make install game_prefix=$RPM_BUILD_ROOT%{prefix}
  34. #hackery to get the conf files in the right places
  35. #make create_etc_conf game_prefix=%{prefix}
  36. #mkdir -p $RPM_BUILD_ROOT/etc
  37. #mv /etc/missilecommand.conf $RPM_BUILD_ROOT/etc/missilecommand.conf
  38. # install desktop
  39. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  40. install -p -m0644 %{name}.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files
  44. %defattr(-,root,games)
  45. %doc README INSTALL COPYING.GPL missile.kdelnk
  46. # %config /etc/missilecommand.conf
  47. %{prefix}/bin/missile
  48. %{prefix}/share/missile
  49. %{prefix}/share/pixmaps/missile_icon_black.png
  50. %{prefix}/share/pixmaps/missile_icon_blue.png
  51. %{prefix}/share/pixmaps/missile_icon_green.png
  52. %{prefix}/share/pixmaps/missile_icon_red.png
  53. %{prefix}/share/pixmaps/missile_icon_white.png
  54. %{prefix}/share/pixmaps/missile_icon_yellow.png
  55. %{_datadir}/applications/
  56. %changelog
  57. * Sat Oct 04 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.1-1vl5
  58. - applied new versioning policy, spec in utf-8
  59. * Thu Oct 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-0vl1
  60. - updated to 1.0.1
  61. - changed Group to Applications/Games
  62. * Fri Feb 5 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> - 1.0.0-1vl1
  63. - based on orginal rpm
  64. - userbuild
  65. - add desktop category
  66. * Thu Jun 29 2000 Julian Peterson <weaver@earthcorp.com>
  67. - first release as a rpm