othelet-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. %define name othelet
  2. %define version 1.8
  3. %define release 1%{?_dist_release}
  4. Summary: reversi game
  5. Summary(ja): いわゆるリバーシ
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: %{name}.tar.gz
  10. Source1: %{name}.png
  11. Source2: %{name}.desktop
  12. Patch1: othelet_log2home.patch
  13. Patch2: othelet_jyouseki2share.patch
  14. Patch3: othelet_Makefile.patch
  15. Patch4: othelet_font.patch
  16. License: Copyleft
  17. Group: Applications/Games
  18. URL: http://uguisu.skr.jp/othello/
  19. #Requires: libstdc++3
  20. BuildPrereq: gcc-c++
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  25. %description
  26. reversi game
  27. %description -l ja
  28. 初段〜1級(〜5級?)程度の実力をもつリバーシゲーム
  29. %prep
  30. %setup -n %{name}
  31. %patch1 -p1
  32. %patch2 -p1
  33. %patch3 -p1
  34. %patch4 -p1
  35. %build
  36. %__make LDFLAGS="-L/usr/X11R6/%{_lib} -lX11 -lstdc++"
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  40. install -p -m0755 %{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
  41. # jyouseki file install
  42. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
  43. install -p -m0644 AAA.dat $RPM_BUILD_ROOT/%{_datadir}/%{name}/AAA.dat
  44. # add desktop
  45. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  46. install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  47. # add desktop icon
  48. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
  49. install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %files
  53. %defattr(-,root,root)
  54. %doc README
  55. %{_bindir}/%{name}
  56. %{_datadir}/%{name}/
  57. %{_datadir}/pixmaps/
  58. %{_datadir}/applications
  59. %changelog
  60. * Wed Aug 27 2008 Shu KONNO <owa@bg.wakwak.com> 1.8-1vl5
  61. - applied new versioning policy, spec in utf-8
  62. - added othelet_font.patch
  63. * Sun Dec 30 2007 Shu KONNO <owa@bg.wakwak.com> 1.8-0vl5
  64. - added othelet_Makefile.patch
  65. * Sun Jul 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8-0vl4
  66. - rebuilt with new toolchain
  67. * Wed Aug 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8-0vl3
  68. - changed Group to Applications/Games
  69. * Wed Feb 16 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> 1.8-0vl2
  70. - new URL:
  71. * Fri Feb 11 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> 1.8-0vl1
  72. - initial build for Vine Linux
  73. - log2home patch
  74. - add desktop and icon