kiten-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. Name: kiten
  2. Summary: Japanese reference and study aid 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/kiten/
  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: soprano-devel
  15. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  16. Conflicts: kdeedu4 < 4.6.50
  17. %description
  18. Kiten is a collection of Japanese reference tools and study aids
  19. for KDE, including a Japanese/English dictionary, Kanji dictionary,
  20. and Kanji quiz.
  21. This package is part of the KDE education module.
  22. %package libs
  23. Summary: Runtime libraries for %{name}
  24. Summary(ja): %{name} のランタイムライブラリ
  25. Group: System Environment/Libraries
  26. Conflicts: kdeedu4-libs < 4.6.50
  27. %description libs
  28. %{summary}.
  29. %package devel
  30. Summary: Development files for %{name}
  31. Summary(ja): %{name} の開発用ファイル
  32. Group: Development/Libraries
  33. Requires: %{name}-libs = %{version}-%{release}
  34. Conflicts: kdeedu4-devel < 4.6.50
  35. %description devel
  36. Header files for developing applications using %{name}.
  37. %prep
  38. %setup -q
  39. %build
  40. mkdir -p %{_target_platform}
  41. pushd %{_target_platform}
  42. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  43. %cmake \
  44. -DCMAKE_BUILD_TYPE=release \
  45. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  46. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  47. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  48. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  49. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  50. ..
  51. popd
  52. make %{?_smp_mflags} -C %{_target_platform}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %check
  59. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  60. desktop-file-validate $f
  61. done
  62. %post
  63. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  64. %posttrans
  65. update-desktop-database -q &> /dev/null ||:
  66. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  67. %postun
  68. if [ $1 -eq 0 ] ; then
  69. update-desktop-database -q &> /dev/null ||:
  70. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  71. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  72. fi
  73. %post libs -p /sbin/ldconfig
  74. %postun libs -p /sbin/ldconfig
  75. %files
  76. %defattr(-,root,root)
  77. %doc COPYING COPYING.DOC
  78. %{_bindir}/kiten
  79. %{_bindir}/kitengen
  80. %{_bindir}/kitenradselect
  81. %{_datadir}/applications/kde4/kiten.desktop
  82. %{_datadir}/config.kcfg/kiten.kcfg
  83. %{_datadir}/icons/hicolor/*/*/*
  84. %{_datadir}/kde4/apps/kiten
  85. %{_datadir}/kde4/apps/kitenradselect
  86. %doc %{_docdir}/HTML/en/kiten/
  87. %files libs
  88. %defattr(-,root,root)
  89. %{_libdir}/libkiten.so.*
  90. %files devel
  91. %defattr(-,root,root)
  92. %{_includedir}/kde4/libkiten
  93. %{_libdir}/libkiten.so
  94. %changelog
  95. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  96. - split from kdeedu