missile-vl.spec 2.1 KB

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