sdlhana-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %define name sdlhana
  2. %define version 0.34
  3. %define release 2%{?_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. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.34-2
  56. - rebuild with gcc-5.4.0
  57. * Sat Oct 17 2009 Shu KONNO <owa@bg.wakwak.com> 0.34-1
  58. - updated sdlhana to 0.34
  59. - changed source url
  60. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 0.32-1vl5
  61. - applied new versioning policy, spec in utf-8
  62. * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.32-0vl2
  63. - rebuild for VineSeed
  64. * Tue Mar 9 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.32-0vl1
  65. - initial build for Vine Linux
  66. # * Sun Mar 5 2006 0.32-0vlmp1
  67. # - Update
  68. # * Sun Feb 5 2006 0.1-0vlmp1
  69. # - initial build for Vine Linux
  70. # end of file