missile-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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: 3%{?_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. sed -i 's|$(SND_LIBS)|$(SND_LIBS) -lm|' Makefile
  29. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" game_prefix=%{_prefix}
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. make install game_prefix=$RPM_BUILD_ROOT%{_prefix}
  33. #hackery to get the conf files in the right places
  34. #make create_etc_conf game_prefix=%{prefix}
  35. #mkdir -p $RPM_BUILD_ROOT/etc
  36. #mv /etc/missilecommand.conf $RPM_BUILD_ROOT/etc/missilecommand.conf
  37. # install desktop
  38. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  39. install -p -m0644 %{name}.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %files
  43. %defattr(-,root,games)
  44. %doc README INSTALL COPYING.GPL missile.kdelnk
  45. %{_bindir}/%{name}
  46. %{_datadir}/%{name}
  47. %{_datadir}/pixmaps/missile_icon_*.png
  48. %{_datadir}/applications/%{name}.desktop
  49. %changelog
  50. * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.1-3
  51. - rebuild with VineSeed environment
  52. * Sat Jun 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.0.1-2
  53. - rebuild for Vine Linux 6
  54. * Sat Oct 04 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.1-1vl5
  55. - applied new versioning policy, spec in utf-8
  56. * Thu Oct 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-0vl1
  57. - updated to 1.0.1
  58. - changed Group to Applications/Games
  59. * Sat Feb 5 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> - 1.0.0-1vl1
  60. - based on orginal rpm
  61. - userbuild
  62. - add desktop category
  63. * Thu Jun 29 2000 Julian Peterson <weaver@earthcorp.com>
  64. - first release as a rpm