khangman-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. Name: khangman
  2. Summary: Hangman word puzzle for KDE
  3. Summary(ja): Hangman 単語パズル
  4. Version: 4.11.1
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Edutainment
  8. URL: http://edu.kde.org/khangman/
  9. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. ## upstream patches
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Requires: %{name}-libs = %{version}-%{release}
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: kdelibs4-devel >= %{version}
  15. BuildRequires: libkdeedu-devel >= %{version}
  16. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  17. Conflicts: kdeedu4 < 4.6.50
  18. %description
  19. KHangMan is the well-known Hangman game, aimed towards children
  20. aged 6 and above.
  21. It picks a random word which the player must reveal by guessing
  22. if it contains certain letters. As the player guesses letters,
  23. the word is gradually revealed, but 10 wrong guesses will end the
  24. game.
  25. This package is part of the KDE education module.
  26. %package libs
  27. Summary: Runtime libraries for %{name}
  28. Summary(ja): %{name} のランタイムライブラリ
  29. Group: System Environment/Libraries
  30. Requires: kdelibs4 >= %{version}
  31. %description libs
  32. %{summary}.
  33. %description -l ja libs
  34. %{name} のランタイムライブラリです.
  35. %package devel
  36. Summary: Development files for %{name}
  37. Summary(ja): %{name} の開発用ファイル
  38. Group: Development/Libraries
  39. Requires: %{name}-libs = %{version}-%{release}
  40. Requires: kdelibs4-devel
  41. %description devel
  42. %{summary}.
  43. %description -l ja devel
  44. %{name} の開発用ファイルです.
  45. %prep
  46. %setup -q
  47. %build
  48. mkdir -p %{_target_platform}
  49. pushd %{_target_platform}
  50. %cmake \
  51. -DCMAKE_BUILD_TYPE=release \
  52. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  53. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  54. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  55. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  56. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  57. ..
  58. popd
  59. make %{?_smp_mflags} -C %{_target_platform}
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %check
  66. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  67. desktop-file-validate $f
  68. done
  69. %post
  70. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  71. %posttrans
  72. update-desktop-database -q &> /dev/null ||:
  73. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  74. %postun
  75. if [ $1 -eq 0 ] ; then
  76. update-desktop-database -q &> /dev/null ||:
  77. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  78. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  79. fi
  80. %files
  81. %defattr(-,root,root,-)
  82. %doc COPYING COPYING.DOC
  83. %{_bindir}/%{name}
  84. %{_datadir}/applications/kde4/%{name}.desktop
  85. %{_datadir}/config/%{name}.knsrc
  86. %{_datadir}/config.kcfg/%{name}.kcfg
  87. %{_datadir}/icons/hicolor/*/*/*
  88. %{_datadir}/kde4/apps/%{name}
  89. %{_mandir}/man6/khangman*
  90. %doc %{_docdir}/HTML/en/%{name}/
  91. %files libs
  92. %defattr(-,root,root,-)
  93. %{_libdir}/libkhangmanengine.so.*
  94. %files devel
  95. %defattr(-,root,root,-)
  96. %{_includedir}/%{name}
  97. %{_libdir}/libkhangmanengine.so
  98. %changelog
  99. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  100. - new upstream release
  101. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  102. - new upstream release
  103. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  104. - new upstream release
  105. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  106. - new upstream release
  107. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  108. - new upstream release
  109. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  110. - new upstream release
  111. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  112. - new upstream release
  113. - create -devel and -libs subpackages
  114. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  115. - split from kdeedu