khangman-vl.spec 4.3 KB

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