khangman-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Name: khangman
  2. Summary: Hangman word puzzle for KDE
  3. Summary(ja): Hangman 単語パズル
  4. Version: 4.7.0
  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.bz2
  10. ## upstream patches
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: kdelibs4-devel >= %{version}
  14. BuildRequires: libkdeedu-devel >= %{version}
  15. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  16. Conflicts: kdeedu4 < 4.6.50
  17. %description
  18. KHangMan is the well-known Hangman game, aimed towards children
  19. aged 6 and above.
  20. It picks a random word which the player must reveal by guessing
  21. if it contains certain letters. As the player guesses letters,
  22. the word is gradually revealed, but 10 wrong guesses will end the
  23. game.
  24. This package is part of the KDE education module.
  25. %prep
  26. %setup -q
  27. %build
  28. mkdir -p %{_target_platform}
  29. pushd %{_target_platform}
  30. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  31. %cmake \
  32. -DCMAKE_BUILD_TYPE=release \
  33. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  34. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  35. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  36. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  37. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  38. ..
  39. popd
  40. make %{?_smp_mflags} -C %{_target_platform}
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %check
  47. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  48. desktop-file-validate $f
  49. done
  50. %post
  51. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  52. %posttrans
  53. update-desktop-database -q &> /dev/null ||:
  54. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  55. %postun
  56. if [ $1 -eq 0 ] ; then
  57. update-desktop-database -q &> /dev/null ||:
  58. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  59. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  60. fi
  61. %files
  62. %defattr(-,root,root)
  63. %doc COPYING COPYING.DOC
  64. %{_bindir}/khangman
  65. %{_datadir}/applications/kde4/khangman.desktop
  66. %{_datadir}/config/khangman.knsrc
  67. %{_datadir}/config.kcfg/khangman.kcfg
  68. %{_datadir}/icons/hicolor/*/*/*
  69. %{_datadir}/kde4/apps/khangman
  70. %{_mandir}/man6/khangman*
  71. %doc %{_docdir}/HTML/en/khangman/
  72. %changelog
  73. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  74. - split from kdeedu