kwordquiz-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Name: kwordquiz
  2. Summary: Flashcard learning program 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/kwordquiz/
  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. BuildRequires: soprano-devel
  16. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  17. Conflicts: kdeedu4 < 4.6.50
  18. %description
  19. KWordQuiz is a general purpose flashcard program, typically used for
  20. vocabulary training.
  21. KWordQuiz can open vocabulary data in various formats, including the
  22. kvtml format used by KDE programs such as Parley, the WQL format used
  23. by WordQuiz for Windows, the xml.gz format used by Pauker, and CSV text.
  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 COPYING.LIB README
  64. %{_bindir}/kwordquiz
  65. %{_datadir}/applications/kde4/kwordquiz.desktop
  66. %{_datadir}/config/kwordquiz.knsrc
  67. %{_datadir}/config.kcfg/kwordquiz.kcfg
  68. %{_datadir}/icons/hicolor/*/*/*
  69. %{_datadir}/kde4/apps/kwordquiz
  70. %doc %{_docdir}/HTML/en/kwordquiz/
  71. %changelog
  72. * Wed Aug 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  73. - split from kdeedu