blinken-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Name: blinken
  2. Summary: KDE version of the Simon electronic memory game
  3. Version: 4.7.0
  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.bz2
  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. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  31. %cmake \
  32. -DCMAKE_BUILD_TYPE=release \
  33. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  34. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  35. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  36. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  37. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  38. ..
  39. popd
  40. make %{?_smp_mflags} -C %{_target_platform}
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %check
  47. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  48. desktop-file-validate $f
  49. done
  50. %post
  51. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  52. %posttrans
  53. update-desktop-database -q &> /dev/null ||:
  54. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  55. %postun
  56. if [ $1 -eq 0 ] ; then
  57. update-desktop-database -q &> /dev/null ||:
  58. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  59. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  60. fi
  61. %files
  62. %defattr(-,root,root)
  63. %doc COPYING COPYING.DOC
  64. %{_bindir}/blinken
  65. %{_datadir}/applications/kde4/blinken.desktop
  66. %{_datadir}/config.kcfg/blinken.kcfg
  67. %{_datadir}/icons/hicolor/*/*/*
  68. %{_datadir}/kde4/apps/blinken
  69. %doc %{_docdir}/HTML/en/blinken/
  70. %changelog
  71. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  72. - split from kdeedu