ktouch-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Name: ktouch
  2. Summary: Touch typing tutor for KDE
  3. Summary(ja): KDE 向けタッチタイピング訓練機
  4. Version: 4.7.0
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Edutainment
  8. URL: http://edu.kde.org/ktouch/
  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. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  15. Conflicts: kdeedu4 < 4.6.50
  16. %description
  17. KTouch is an aid for learning how to type with speed and accuracy. It
  18. provides a sample text to type and indicates which fingers should be
  19. used for each key.
  20. A collection of lessons are included for a wide range of different
  21. languages and keyboard layouts, and typing statistics are used to
  22. dynamically adjust the level of difficulty.
  23. This package is part of the KDE education module.
  24. %prep
  25. %setup -q
  26. %build
  27. mkdir -p %{_target_platform}
  28. pushd %{_target_platform}
  29. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  30. %cmake \
  31. -DCMAKE_BUILD_TYPE=release \
  32. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  33. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  34. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  35. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  36. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  37. ..
  38. popd
  39. make %{?_smp_mflags} -C %{_target_platform}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %check
  46. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  47. desktop-file-validate $f
  48. done
  49. %post
  50. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  51. %posttrans
  52. update-desktop-database -q &> /dev/null ||:
  53. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  54. %postun
  55. if [ $1 -eq 0 ] ; then
  56. update-desktop-database -q &> /dev/null ||:
  57. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  58. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  59. fi
  60. %files
  61. %defattr(-,root,root)
  62. %doc COPYING COPYING.DOC
  63. %{_bindir}/ktouch
  64. %{_datadir}/applications/kde4/ktouch.desktop
  65. %{_datadir}/config.kcfg/ktouch.kcfg
  66. %{_datadir}/icons/hicolor/*/*/*
  67. %{_datadir}/kde4/apps/ktouch
  68. %{_mandir}/man1/ktouch*
  69. %doc %{_docdir}/HTML/en/ktouch/
  70. %changelog
  71. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  72. - split from kdeedu