kwordquiz-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Name: kwordquiz
  2. Summary: Flashcard learning program for KDE
  3. Summary(ja): KDE 向けのフラッシュカード学習プログラム
  4. Version: 4.9.2
  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.xz
  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. %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 COPYING.LIB README
  63. %{_bindir}/kwordquiz
  64. %{_datadir}/applications/kde4/kwordquiz.desktop
  65. %{_datadir}/config/kwordquiz.knsrc
  66. %{_datadir}/config.kcfg/kwordquiz.kcfg
  67. %{_datadir}/icons/hicolor/*/*/*
  68. %{_datadir}/kde4/apps/kwordquiz
  69. %doc %{_docdir}/HTML/en/kwordquiz/
  70. %changelog
  71. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  72. - new upstream release
  73. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  74. - new upstream release
  75. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  76. - new upstream release
  77. * Wed Aug 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  78. - split from kdeedu