kanagram-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Name: kanagram
  2. Summary: jumble word puzzle for KDE
  3. Version: 4.9.5
  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.xz
  9. ## upstream patches
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: %{name}-libs = %{version}-%{release}
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: kdelibs4-devel >= %{version}
  14. BuildRequires: libkdeedu-devel >= %{version}
  15. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  16. Conflicts: kdeedu4 < 4.6.50
  17. %description
  18. 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.
  19. This package is part of the KDE education module.
  20. %package libs
  21. Summary: Runtime libraries for %{name}
  22. Summary(ja): %{name} のランタイムライブラリ
  23. Group: System Environment/Libraries
  24. Requires: kdelibs4 >= %{version}
  25. %description libs
  26. %{summary}.
  27. %description -l ja libs
  28. %{name} のランタイムライブラリです.
  29. %package devel
  30. Summary: Development files for %{name}
  31. Summary(ja): %{name} の開発用ファイル
  32. Group: Development/Libraries
  33. Requires: %{name}-libs = %{version}-%{release}
  34. Requires: kdelibs4-devel
  35. %description devel
  36. %{summary}.
  37. %description -l ja devel
  38. %{name} の開発用ファイルです.
  39. %prep
  40. %setup -q
  41. %build
  42. mkdir -p %{_target_platform}
  43. pushd %{_target_platform}
  44. %cmake \
  45. -DCMAKE_BUILD_TYPE=release \
  46. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  47. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  48. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  49. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  50. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  51. ..
  52. popd
  53. make %{?_smp_mflags} -C %{_target_platform}
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %check
  60. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  61. desktop-file-validate $f
  62. done
  63. %post
  64. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  65. %posttrans
  66. update-desktop-database -q &> /dev/null ||:
  67. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  68. %postun
  69. if [ $1 -eq 0 ] ; then
  70. update-desktop-database -q &> /dev/null ||:
  71. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  72. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  73. fi
  74. %files
  75. %defattr(-,root,root,-)
  76. %doc COPYING COPYING.DOC
  77. %{_bindir}/%{name}
  78. %{_datadir}/applications/kde4/%{name}.desktop
  79. %{_datadir}/config/%{name}.knsrc
  80. %{_datadir}/config.kcfg/%{name}.kcfg
  81. %{_datadir}/icons/hicolor/*/*/*
  82. %{_datadir}/kde4/apps/%{name}
  83. %doc %{_docdir}/HTML/en/%{name}/
  84. %files libs
  85. %defattr(-,root,root,-)
  86. %{_libdir}/libkanagramengine.so.*
  87. %files devel
  88. %defattr(-,root,root,-)
  89. %{_includedir}/%{name}
  90. %{_libdir}/libkanagramengine.so
  91. %changelog
  92. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  93. - new upstream release
  94. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  95. - new upstream release
  96. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  97. - new upstream release
  98. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  99. - new upstream release
  100. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  101. - new upstream release
  102. - create -devel and -libs subpckages
  103. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  104. - split from kdeedu