blinken-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Name: blinken
  2. Summary: KDE version of the Simon electronic memory game
  3. Version: 4.11.1
  4. Release: 1%{?_dist_release}
  5. License: GPLv2+
  6. Group: Applications/Edutainment
  7. URL: http://edu.kde.org/blinken/
  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. BuildRequires: desktop-file-utils
  12. BuildRequires: kdelibs4-devel >= %{version}
  13. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  14. Conflicts: kdeedu4 < 4.6.50
  15. %description
  16. Blinken is based on an electronic game released in 1978, which
  17. challenges players to remember sequences of increasing length.
  18. On the face of the device, there are 4 different color buttons,
  19. each with its own distinctive sound. These buttons light up randomly,
  20. creating the sequence that the player must then recall. If the
  21. player is successful in remembering the sequence of lights in
  22. the correct order, they advance to the next stage, where an identical
  23. sequence with one extra step is presented.
  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
  63. %{_bindir}/blinken
  64. %{_datadir}/applications/kde4/blinken.desktop
  65. %{_datadir}/config.kcfg/blinken.kcfg
  66. %{_datadir}/icons/hicolor/*/*/*
  67. %{_datadir}/kde4/apps/blinken
  68. %doc %{_docdir}/HTML/en/blinken/
  69. %changelog
  70. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  71. - new upstream release
  72. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  73. - new upstream release
  74. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  75. - new upstream release
  76. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  77. - new upstream release
  78. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  79. - new upstream release
  80. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  81. - new upstream release
  82. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  83. - new upstream release
  84. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  85. - split from kdeedu