kiten-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Name: kiten
  2. Summary: Japanese reference and study aid for KDE
  3. Summary(ja): KDE 向け日本語参照・学習支援ツール
  4. Version: 4.11.1
  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.xz
  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. %cmake \
  43. -DCMAKE_BUILD_TYPE=release \
  44. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  45. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  46. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  47. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  48. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  49. ..
  50. popd
  51. make %{?_smp_mflags} -C %{_target_platform}
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %check
  58. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  59. desktop-file-validate $f
  60. done
  61. %post
  62. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  63. %posttrans
  64. update-desktop-database -q &> /dev/null ||:
  65. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  66. %postun
  67. if [ $1 -eq 0 ] ; then
  68. update-desktop-database -q &> /dev/null ||:
  69. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  70. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  71. fi
  72. %post libs -p /sbin/ldconfig
  73. %postun libs -p /sbin/ldconfig
  74. %files
  75. %defattr(-,root,root)
  76. %doc COPYING COPYING.DOC
  77. %{_bindir}/kiten
  78. %{_bindir}/kitengen
  79. %{_bindir}/kitenkanjibrowser
  80. %{_bindir}/kitenradselect
  81. %{_datadir}/applications/kde4/kiten.desktop
  82. %{_datadir}/applications/kde4/kitenkanjibrowser.desktop
  83. %{_datadir}/applications/kde4/kitenradselect.desktop
  84. %{_datadir}/config.kcfg/kiten.kcfg
  85. %{_datadir}/fonts/kanjistrokeorders/KanjiStrokeOrders.ttf
  86. %{_datadir}/icons/hicolor/*/*/*
  87. %{_datadir}/kde4/apps/kiten
  88. %{_datadir}/kde4/apps/kitenradselect
  89. %{_datadir}/kde4/apps/kitenkanjibrowser
  90. %doc %{_docdir}/HTML/en/kiten/
  91. %files libs
  92. %defattr(-,root,root)
  93. %{_libdir}/libkiten.so.*
  94. %files devel
  95. %defattr(-,root,root)
  96. %{_includedir}/kde4/libkiten
  97. %{_libdir}/libkiten.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. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  114. - split from kdeedu