kanagram-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. Name: kanagram
  2. Summary: jumble word puzzle for KDE
  3. Version: 4.7.0
  4. Release: 1%{?_dist_release}
  5. License: GPLv2+
  6. Group: Applications/Edutainment
  7. URL: http://edu.kde.org/kanagram/
  8. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  9. ## upstream patches
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: kdelibs4-devel >= %{version}
  13. BuildRequires: libkdeedu-devel >= %{version}
  14. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  15. Conflicts: kdeedu4 < 4.6.50
  16. %description
  17. KAnagram is a game where a random word is shown with its letters scrambled. To win, the player must rearrange the letters into the correct order.
  18. This package is part of the KDE education module.
  19. %prep
  20. %setup -q
  21. %build
  22. mkdir -p %{_target_platform}
  23. pushd %{_target_platform}
  24. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  25. %cmake \
  26. -DCMAKE_BUILD_TYPE=release \
  27. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  28. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  29. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  30. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  31. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  32. ..
  33. popd
  34. make %{?_smp_mflags} -C %{_target_platform}
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %check
  41. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  42. desktop-file-validate $f
  43. done
  44. %post
  45. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  46. %posttrans
  47. update-desktop-database -q &> /dev/null ||:
  48. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. update-desktop-database -q &> /dev/null ||:
  52. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  53. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  54. fi
  55. %files
  56. %defattr(-,root,root)
  57. %doc COPYING COPYING.DOC
  58. %{_bindir}/kanagram
  59. %{_datadir}/applications/kde4/kanagram.desktop
  60. %{_datadir}/config/kanagram.knsrc
  61. %{_datadir}/config.kcfg/kanagram.kcfg
  62. %{_datadir}/icons/hicolor/*/*/*
  63. %{_datadir}/kde4/apps/kanagram
  64. %doc %{_docdir}/HTML/en/kanagram/
  65. %changelog
  66. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  67. - split from kdeedu