eboard-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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: 2%{?_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. * Mon Sep 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1.1-2
  90. - added Patch2 to build with libpng16
  91. - added BuildRequires: desktop-file-utils
  92. * Sun May 16 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.1-1
  93. - updated eboard to 1.1.1
  94. - added eboard-1.1.1-ntext.patch
  95. - added %%post, %%postun section
  96. - rebuilt with new environment
  97. * Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.4-1vl5
  98. - applied new versioning policy, spec in utf-8
  99. - reverted script to make eboard.desktop
  100. * Sat Aug 25 2007 Shu KONNO <owa@bg.wakwak.com> 1.0.4-0vl2
  101. - changed euic-jp string to utf-8 codes in script eboard.desktop
  102. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.4-0vl1
  103. - new upstream release
  104. - updated URL
  105. * Mon Sep 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.5-1vl4
  106. - changed Group to Applications/Games
  107. * Sun Aug 15 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 0.9.5-1vl3
  108. - Added BuildRequires.
  109. - Modified Requires (libstdc++3).
  110. - Modified the install way of eboard.desktop.
  111. - Rebuild for Vine Linux 3.0
  112. * Fri Jul 23 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 0.9.5-1vl2
  113. - Removed duplicated configure.
  114. - Modified %%install and %%files.
  115. * Fri Feb 13 2004 by IKEDA Katsumi <ikeda@webmasters.gr.jp>
  116. - 0.9.5-1vl1
  117. - Modified Group, Source, Buildroot, %build, %install and %files.
  118. - Add Patch, %Summary(ja) and %description -l ja.
  119. - Remove %define ver, rel and prefix.
  120. * Fri May 25 2001 Felipe Bergo <bergo@seul.org>
  121. - built from the gPS spec