xsoldier-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define name xsoldier
  2. %define version 1.4
  3. %define release 1%{?_dist_release}
  4. Summary: xsoldier is a X11 shoot-em up game for Linux.
  5. Summary(ja): X11上で動くシューティングゲーム
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: %{name}-%{version}.tar.gz
  10. License: GNU General Public License
  11. Group: Applications/Games
  12. URL: http://www.interq.or.jp/libra/oohara/xsoldier/
  13. Requires: SDL, SDL_image
  14. BuildRequires: SDL_image-devel
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. xsoldier is a X11 shoot-em up game for Linux. It was created by Yuusuke HASHIMOTO <hachi@surfline.ne.jp>. The webpage of the original author is [http://www.surfline.ne.jp/hachi/xsoldier.html]. I took over the development of xsoldier.
  18. #%desctiption -l ja
  19. %prep
  20. rm -rf ${RPM_BUILD_ROOT}
  21. %setup -q
  22. %build
  23. ./configure --prefix=/usr --with-sdl
  24. make
  25. %install
  26. make DESTDIR=${RPM_BUILD_ROOT} mandir=%{_mandir} install
  27. mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications
  28. cat > ${RPM_BUILD_ROOT}/usr/share/applications/%{name}.desktop <<EOF
  29. [Desktop Entry]
  30. Name=xsoldier
  31. Comment=xsoldier is a X11 shoot-em up game for Linux.
  32. TryExec=xsoldier
  33. Exec=/usr/bin/xsoldier
  34. Icon=
  35. Terminal=0
  36. Type=Application
  37. Categories=GNOME;Application;Game
  38. EOF
  39. %clean
  40. rm -rf ${RPM_BUILD_ROOT}
  41. %files
  42. %defattr(-,root,root)
  43. /usr/bin/xsoldier
  44. /usr/share/games/xsoldier
  45. /usr/var/games/xsoldier/xsoldier.scores
  46. /usr/share/applications/%{name}.desktop
  47. %{_mandir}/man6/xsoldier.6.gz
  48. %changelog
  49. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.4-1vl5
  50. - applied new versioning policy, spec in utf-8
  51. - updated man-path to %%{_mandir}
  52. * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.4-0vl2
  53. - rebuild for VineSeed
  54. * Wed Mar 21 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.4-0vl1
  55. - initial build for Vine Linux
  56. # end of file