xbat-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # disable buildroot strip
  2. %define __spec_install_post %{nil}
  3. Summary: A action game for X Window System like XEVIOUS.
  4. Name: xbat
  5. Version: 1.11
  6. Release: 3%{?_dist_release}
  7. Source0: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xev111.tar.gz
  8. SOURCE10: %{name}.desktop
  9. #SOURCE11: %{name}.png
  10. Patch0: xev111.patch
  11. License: GPLv2
  12. Group: Applications/Games
  13. URL: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xevious.html
  14. BuildRequires: imake
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: libX11-devel libXext-devel
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. %description
  19. Xbat is a action game for X Window System.
  20. It is like XEVIOUS.
  21. XEVIOUS is a video game that namco released in Dec.1983
  22. %prep
  23. %__rm -rf ${RPM_BUILD_ROOT}
  24. %setup -n Xev111 -q
  25. %build
  26. patch < ${RPM_SOURCE_DIR}/xev111.patch
  27. xmkmf -a
  28. %__make xbat
  29. %install
  30. %__make DESTDIR=${RPM_BUILD_ROOT} install
  31. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
  32. desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE10}
  33. #%__cp -a %{SOURCE11} %{buildroot}%{_datadir}/pixmaps/
  34. ## changed executable bit
  35. find %{buildroot}%{_datadir}/games/Xbat -type f -exec chmod -x {} \;
  36. %clean
  37. %__rm -rf ${RPM_BUILD_ROOT}
  38. %files
  39. %defattr(-,root,root)
  40. %{_bindir}/xbat
  41. %{_datadir}/games/Xbat
  42. %{_datadir}/applications/%{name}.desktop
  43. %dir %{_localstatedir}/games/Xbat
  44. %attr(666,root,root) %{_localstatedir}/games/Xbat/Score/*
  45. %changelog
  46. * Tue Aug 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.11-3
  47. - added BuildRequires: libXext-devel
  48. * Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.11-2
  49. - used some rpm macros
  50. - added BuildRequires: desktop-file-utils
  51. - changed SCORES_DIR to /var/games/Xbat/Score
  52. * Tue Oct 14 2008 Shu KONNO <owa@bg.wakwak.com> 1.11-1vl5
  53. - applied new versioning policy, spec in utf-8
  54. * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.11-0vl2
  55. - rebuild for VineSeed
  56. * Tue Mar 9 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.11-0vl1
  57. - initial build for Vine Linux
  58. # end of file