reverzi-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Summary: Yet Another Reversi
  2. Summary(ja): 更にもう一つのリバーシ
  3. Name: reverzi
  4. Version: 1.0
  5. Release: 2%{?_dist_release}
  6. Source0: %{name}-%{version}.tgz
  7. Source1: %{name}.desktop
  8. Source2: %{name}.png
  9. License: GPL
  10. Group: Applications/Games
  11. URL: http://sourceforge.net/projects/reverzi/
  12. BuildRequires: SDL-devel SDL_image-devel
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. Reverzi starts in 'menu' mode, where you can select the type of both players
  18. by clicking on the face icons at the bottom of the screen. Available types are:
  19. Human - waits for your input
  20. Toaster - weak AI that responds immediately. Shouldn't be able to beat you.
  21. Emil - basic AI. Reasonable strength and speed.
  22. Cyborg - stronger AI. Slow but should be a bit harder to beat.
  23. %description -l ja
  24. いわゆるリバーシゲーム。
  25. 人間vs人間の対戦以外に、強さが異なる3種類の対戦相手を選択できます。
  26. %prep
  27. %setup -q -n %{name}
  28. %build
  29. echo make start
  30. make PREFIX=%{_prefix} PREFIXBINARY=%{_bindir}
  31. echo make end
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. # bin install
  35. mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  36. install -s -p %{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
  37. # img install
  38. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/img
  39. install -p img/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/img/
  40. # add desktop
  41. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  42. install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  43. # add desktop icon
  44. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
  45. install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %files
  49. %defattr(-,root,root)
  50. %doc README LICENSE
  51. %{_bindir}/%{name}
  52. %{_datadir}/applications/*
  53. %{_datadir}/pixmaps/*
  54. %{_datadir}/reverzi
  55. %changelog
  56. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 1.0-2vl5
  57. - applied new versioning policy, spec in utf-8
  58. * Thu Aug 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-1vl3
  59. - rebuilt with new toolchain
  60. * Wed Aug 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-1vl2
  61. - changed Group to Applications/Games
  62. * Wed Feb 9 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> 1.0-1vl1
  63. - initial build for Vine Linux
  64. - add icon and desktop