eboard-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Name: eboard
  2. Summary: A chess board interface for ICS and engines
  3. Summary(ja): ICS (Internet Chess Servers) と思考エンジンに対応のチェスボード。
  4. Version: 1.1.1
  5. Release: 3%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Games
  8. URL: http://www.bergo.eng.br/eboard/
  9. Source: http://prdownloads.sourceforge.net/eboard/eboard-%{version}.tar.bz2
  10. Patch0: eboard-0.9.5jp.patch
  11. Patch1: eboard-1.1.1-ntext.patch
  12. Patch2: eboard-libpng-1.5.patch
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: gtk2-devel
  15. BuildRequires: libpng-devel
  16. BuildRequires: desktop-file-utils
  17. Requires(post): desktop-file-utils
  18. Requires(postun): desktop-file-utils
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: IKEDA, inagaki, owa
  22. %description
  23. eboard is a GTK+ chess board interface for ICS (Internet
  24. Chess Servers) and chess engines (GNU Chess, Crafty, etc.).
  25. It also displays games in PGN (Portable Game Notation)
  26. format.
  27. %description -l ja
  28. eboard は、ICS (Internet Chess Servers) や チェスエンジン (GNU Chess や Crafty
  29. など)に対応した、GTK+ を使ったチェスボードのインターフェースです。ネットワーク
  30. による人間同士の対戦や、コンピュータとの対戦を楽しむことができます。
  31. PGN (Portable Game Notation) フォーマットのゲームを表示することもできます。
  32. %prep
  33. %setup -q
  34. #patch -p1
  35. %patch1 -p0 -b .ntext
  36. %patch2 -p1 -b .libpng15
  37. %build
  38. %configure --extra-libs=dl --man-prefix=%{_mandir}
  39. make
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make bindir=${RPM_BUILD_ROOT}%{_bindir} mandir=${RPM_BUILD_ROOT}%{_mandir} datadir=${RPM_BUILD_ROOT}%{_datadir}/eboard install
  43. chmod 644 ${RPM_BUILD_ROOT}%{_mandir}/*/*
  44. install gnupiece.xpm ${RPM_BUILD_ROOT}%{_datadir}/eboard/
  45. # Desktop file
  46. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/applications
  47. pushd ${RPM_BUILD_ROOT}%{_datadir}/applications
  48. cat << EOF > eboard.desktop
  49. [Desktop Entry]
  50. Name=eboard
  51. Comment=A chess board interface
  52. Comment[ja]=チェスボードのインタフェース
  53. Exec=eboard
  54. Icon=/usr/share/eboard/gnupiece.xpm
  55. Type=Application
  56. Categories=GNOME;Application;Game;
  57. EOF
  58. popd
  59. desktop-file-install --delete-original --vendor= \
  60. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  61. ${RPM_BUILD_ROOT}%{_datadir}/applications/*
  62. %post
  63. update-desktop-database >& /dev/null ||:
  64. %postun
  65. update-desktop-database >& /dev/null ||:
  66. %clean
  67. rm -rf ${RPM_BUILD_ROOT}
  68. %files
  69. %defattr(-,root,root)
  70. %doc ChangeLog COPYING INSTALL README TODO
  71. %doc Documentation/Crafty.txt Documentation/FICS-Timeseal.txt
  72. %doc Documentation/GNUChess4.txt Documentation/GNUChess5.txt
  73. %doc Documentation/Scripts.txt Documentation/Sjeng.txt Documentation/Themes.txt
  74. %{_bindir}/eboard
  75. %{_bindir}/eboard-config
  76. %{_bindir}/eboard-addtheme
  77. %{_mandir}/man1/eboard-config.1*
  78. %{_mandir}/man1/eboard-addtheme.1*
  79. %{_mandir}/man6/eboard.6*
  80. %{_datadir}/eboard/classic.png
  81. %{_datadir}/eboard/ghouls.png
  82. %{_datadir}/eboard/plastic.png
  83. %{_datadir}/eboard/eboard_themes.conf
  84. %{_datadir}/eboard/NAG.en.txt
  85. %{_datadir}/eboard/eboard.*.dict
  86. %{_datadir}/eboard/gnupiece.xpm
  87. %{_datadir}/applications/eboard.desktop
  88. %changelog
  89. * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-3
  90. - rebuild with gcc-5.4.0
  91. * Mon Sep 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1.1-2
  92. - added Patch2 to build with libpng16
  93. - added BuildRequires: desktop-file-utils
  94. * Sun May 16 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.1-1
  95. - updated eboard to 1.1.1
  96. - added eboard-1.1.1-ntext.patch
  97. - added %%post, %%postun section
  98. - rebuilt with new environment
  99. * Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.4-1vl5
  100. - applied new versioning policy, spec in utf-8
  101. - reverted script to make eboard.desktop
  102. * Sat Aug 25 2007 Shu KONNO <owa@bg.wakwak.com> 1.0.4-0vl2
  103. - changed euic-jp string to utf-8 codes in script eboard.desktop
  104. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.4-0vl1
  105. - new upstream release
  106. - updated URL
  107. * Mon Sep 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.5-1vl4
  108. - changed Group to Applications/Games
  109. * Sun Aug 15 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 0.9.5-1vl3
  110. - Added BuildRequires.
  111. - Modified Requires (libstdc++3).
  112. - Modified the install way of eboard.desktop.
  113. - Rebuild for Vine Linux 3.0
  114. * Fri Jul 23 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 0.9.5-1vl2
  115. - Removed duplicated configure.
  116. - Modified %%install and %%files.
  117. * Fri Feb 13 2004 by IKEDA Katsumi <ikeda@webmasters.gr.jp>
  118. - 0.9.5-1vl1
  119. - Modified Group, Source, Buildroot, %build, %install and %files.
  120. - Add Patch, %Summary(ja) and %description -l ja.
  121. - Remove %define ver, rel and prefix.
  122. * Fri May 25 2001 Felipe Bergo <bergo@seul.org>
  123. - built from the gPS spec