daemonshogi-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Summary: Daemonshogi is a GTK+ based, Simple shogi(japanese chess) program.
  2. Summary(ja): GTK+ を使ったシンプルな将棋プログラム
  3. Name: daemonshogi
  4. Version: 0.6.1
  5. Release: 1%{?_dist_release}
  6. License: GPLv3
  7. Group: Applications/Games
  8. URL: http://daemonshogi.sourceforge.jp/
  9. Source0: %{name}-%{version}.tar.gz
  10. Source1: %{name}.png
  11. Source2: %{name}.desktop
  12. Patch10: %{name}-0.6.1-gtk.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: gtk2-devel >= 2.16.0
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: tokyocabinet-devel
  17. BuildRequires: cppunit-devel
  18. BuildRequires: libboost-devel
  19. BuildRequires: bzip2-devel
  20. Requires: gtk2 >= 2.16.0
  21. Requires: tokyocabinet
  22. Requires(post): gtk2 >= 2.16.0
  23. Requires(postun): gtk2 >= 2.16.0
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. %description
  27. Daemonshogi is a GTK+ based, Simple shogi(japanese chess) program.
  28. %description -l ja
  29. デーモン将棋は GTK+ を使ったシンプルな将棋プログラムです。
  30. %prep
  31. %setup -q
  32. %patch10 -p1
  33. %build
  34. #autoconf
  35. #RELCFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s -ldl" \
  36. ./configure --prefix=%{_prefix}
  37. make %{?_smp_mflags} V=1
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make DESTDIR=$RPM_BUILD_ROOT install
  41. # install desktop
  42. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
  43. install -p -m644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
  44. desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %SOURCE2
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %posttrans
  48. update-desktop-database -q &> /dev/null || :
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. update-desktop-database -q &> /dev/null || :
  52. fi
  53. %files
  54. %defattr(-, root, root)
  55. %doc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README README.ja
  56. %{_bindir}/%{name}
  57. %{_localedir}/ja/LC_MESSAGES/%{name}*
  58. %{_datadir}/applications/%{name}.desktop
  59. %{_datadir}/%{name}/01.json
  60. %{_datadir}/%{name}/daemon.xpm
  61. %{_datadir}/%{name}/daemonshogi-book.bin
  62. %{_datadir}/%{name}/daemonshogi.gtkbuilder
  63. %{_datadir}/pixmaps/%{name}.png
  64. %changelog
  65. * Sun Feb 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.6.1-1
  66. - new upstream release
  67. - add BuildRequires: libboost-devel, bzip2-devel
  68. - replace Patch10 (daemonshogi-0.6.1-gtk.patch)
  69. * Fri Mar 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.5-1
  70. - new upstream release
  71. - updated Patch10
  72. - used %%posttrans section instead of %%post
  73. * Wed Feb 10 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4-2
  74. - add Patch10 to honour CFLAGS environment variable
  75. (and fix configure.in which doesn't care ppc* at all)
  76. * Sun Nov 08 2009 Shu KONNO <owa@bg.wakwak.com> 0.4-1
  77. - updated daemonshogi to 0.4
  78. - dropt patch0: daemonshogi-0.3.conf.patch
  79. * Sun Oct 25 2009 Shu KONNO <owa@bg.wakwak.com> 0.3-1
  80. - updated daemonshogi to 0.3
  81. - changed lisence to GPL v3
  82. - dropt patch0: daemonshogi-vine31.patch
  83. - dropt patch1: daemonshogi-0.1.4-config.patch
  84. - added patch0: daemonshogi-0.3.conf.patch
  85. * Tue Jul 08 2008 Shu KONNO <owa@bg.wakwak.com> 0.1.4-1vl5
  86. - applied new versioning policy and spec in utf-8
  87. * Tue Jan 29 2008 Shu KONNO <owa@bg.wakwak.com> 0.1.4-0vl3
  88. - updated url
  89. - added %{name}.desktop
  90. - added daemonshogi-0.1.4-config.patch (for x86_64)
  91. * Sun Jul 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.4-0vl2
  92. - rebuilt with new toolchain
  93. * Sun Jul 30 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.4-0vl1
  94. - updated to 0.1.4
  95. - changed Group to Applications/Games
  96. * Sun Jan 09 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 0.1.3-0vl2
  97. - Added BuildRequires and Patch0 for Vine Linux 3.1.
  98. * Fri Sep 20 2002 Masahiko Tokita <BQB04357@nifty.ne.jp>
  99. - 0.1.3-0vl1
  100. - update for Vine Linux
  101. * Thu Sep 13 2002 Masahiko Tokita <BQB04357@nifty.ne.jp>
  102. - Cleaned up a bit
  103. * Thu Sep 12 2002 Masahiko Tokita <BQB04357@nifty.ne.jp>
  104. - First try at an RPM