daemonshogi-vl.spec 3.4 KB

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