kanagram-vl.spec 3.8 KB

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