sdlhana-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %define name sdlhana
  2. %define version 0.34
  3. %define release 1%{?_dist_release}
  4. Summary: An SDL-based hanafuda game.
  5. Summary(ja): 花札ゲーム
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. #Source0: http://sdlhana.nongnu.org/files/%{name}-%{version}.tar.bz2
  10. Source0: http://ftp.twaren.net/Unix/NonGNU/sdlhana/%{name}-%{version}.tar.bz2
  11. License: GNU GENERAL PUBLIC LICENSE
  12. Group: Applications/Games
  13. URL: http://sdlhana.nongnu.org/
  14. Requires: SDL, SDL_mixer, SDL_image
  15. BuildRequires: SDL-devel, SDL_mixer-devel, SDL_image-devel
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. SDLHana is an SDL-based Hanafuda game. Hanafuda is a Japanese-oriented card game which is popular in Japan and Korea.
  21. %prep
  22. rm -rf ${RPM_BUILD_ROOT}
  23. %setup
  24. ./configure --prefix=%{_prefix}
  25. %build
  26. make
  27. %install
  28. make DESTDIR=${RPM_BUILD_ROOT} install
  29. #rm ${RPM_BUILD_ROOT}/usr/games/sdlhana
  30. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
  31. install src/%{name}.xpm ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
  32. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  33. install src/%{name} ${RPM_BUILD_ROOT}%{_bindir}/
  34. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/applications
  35. cat > ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop <<EOF
  36. [Desktop Entry]
  37. Name=SDL Hana
  38. Comment=An SDL-based hanafuda game.
  39. TryExec=sdlhana
  40. Exec=/usr/bin/sdlhana
  41. Icon=sdlhana.xpm
  42. Terminal=0
  43. Type=Application
  44. Categories=GNOME;Application;Game
  45. EOF
  46. %clean
  47. rm -rf ${RPM_BUILD_ROOT}
  48. %files
  49. %defattr(-,root,root)
  50. %{_datadir}/sdlhana
  51. %{_datadir}/pixmaps/sdlhana.xpm
  52. %{_datadir}/applications/%{name}.desktop
  53. %attr(755,root,root) %{_bindir}/sdlhana
  54. %changelog
  55. * Sat Oct 17 2009 Shu KONNO <owa@bg.wakwak.com> 0.34-1
  56. - updated sdlhana to 0.34
  57. - changed source url
  58. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 0.32-1vl5
  59. - applied new versioning policy, spec in utf-8
  60. * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.32-0vl2
  61. - rebuild for VineSeed
  62. * Tue Mar 9 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.32-0vl1
  63. - initial build for Vine Linux
  64. # * Sun Mar 5 2006 0.32-0vlmp1
  65. # - Update
  66. # * Sun Feb 5 2006 0.1-0vlmp1
  67. # - initial build for Vine Linux
  68. # end of file