xsoldier-vl.spec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. %define name xsoldier
  2. %define version 1.8
  3. %define release 1%{?_dist_release}
  4. Summary: X11 shoot-em up game
  5. Summary(ja): X11上で動くシューティングゲーム
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: %{name}-%{version}.tar.gz
  10. SOURCE10: %{name}.desktop
  11. SOURCE11: %{name}.png
  12. License: GPLv2+
  13. Group: Applications/Games
  14. URL: http://www.interq.or.jp/libra/oohara/xsoldier/
  15. Requires: SDL SDL_image libX11 libXpm
  16. BuildRequires: SDL_image-devel libX11-devel libXpm-devel
  17. BuildRequires: desktop-file-utils
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. %description
  20. xsoldier is a X11 shoot-em up game for Linux.
  21. %prep
  22. %__rm -rf ${RPM_BUILD_ROOT}
  23. %setup -q
  24. %build
  25. %configure --with-sdl
  26. %__make
  27. %install
  28. %__make DESTDIR=${RPM_BUILD_ROOT} mandir=%{_mandir} install
  29. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
  30. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
  31. desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE10}
  32. %__cp -a %{SOURCE11} %{buildroot}%{_datadir}/pixmaps/
  33. %clean
  34. %__rm -rf ${RPM_BUILD_ROOT}
  35. %files
  36. %defattr(-,root,root)
  37. %doc README LICENSE INSTALL GPL ChangeLog COPYING
  38. %{_bindir}/xsoldier
  39. %{_datadir}/games/xsoldier
  40. %attr(666,root,root) %{_localstatedir}/games/xsoldier/xsoldier.scores
  41. %{_datadir}/applications/%{name}.desktop
  42. %{_datadir}/pixmaps/%{name}.png
  43. %{_mandir}/man*/xsoldier.*.gz
  44. %changelog
  45. * Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.8-1
  46. - new upstream release
  47. - stored xsoldier.scores to /var/games/xsoldier
  48. - added xsoldier.desktop
  49. - added BuildRequires: libX11-devel libXpm-devel desktop-file-utils
  50. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.4-1vl5
  51. - applied new versioning policy, spec in utf-8
  52. - updated man-path to %%{_mandir}
  53. * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.4-0vl2
  54. - rebuild for VineSeed
  55. * Wed Mar 21 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.4-0vl1
  56. - initial build for Vine Linux
  57. # end of file