[4743] | 1 | Name: blinken |
---|
| 2 | Summary: KDE version of the Simon electronic memory game |
---|
[6899] | 3 | Version: 4.9.2 |
---|
[4743] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | License: GPLv2+ |
---|
| 7 | Group: Applications/Edutainment |
---|
| 8 | URL: http://edu.kde.org/blinken/ |
---|
| 9 | |
---|
[6725] | 10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 11 | |
---|
| 12 | ## upstream patches |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildRequires: desktop-file-utils |
---|
| 16 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 17 | |
---|
| 18 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 19 | |
---|
| 20 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Blinken is based on an electronic game released in 1978, which |
---|
| 24 | challenges players to remember sequences of increasing length. |
---|
| 25 | On the face of the device, there are 4 different color buttons, |
---|
| 26 | each with its own distinctive sound. These buttons light up randomly, |
---|
| 27 | creating the sequence that the player must then recall. If the |
---|
| 28 | player is successful in remembering the sequence of lights in |
---|
| 29 | the correct order, they advance to the next stage, where an identical |
---|
| 30 | sequence with one extra step is presented. |
---|
| 31 | |
---|
| 32 | This package is part of the KDE education module. |
---|
| 33 | |
---|
| 34 | %prep |
---|
| 35 | %setup -q |
---|
| 36 | |
---|
| 37 | %build |
---|
| 38 | mkdir -p %{_target_platform} |
---|
| 39 | pushd %{_target_platform} |
---|
| 40 | %cmake \ |
---|
| 41 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 42 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 43 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 44 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 45 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 46 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 47 | .. |
---|
| 48 | popd |
---|
| 49 | |
---|
| 50 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 51 | |
---|
| 52 | %install |
---|
| 53 | rm -rf $RPM_BUILD_ROOT |
---|
| 54 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | |
---|
| 60 | %check |
---|
| 61 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 62 | desktop-file-validate $f |
---|
| 63 | done |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %post |
---|
| 67 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 68 | |
---|
| 69 | %posttrans |
---|
| 70 | update-desktop-database -q &> /dev/null ||: |
---|
| 71 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 72 | |
---|
| 73 | %postun |
---|
| 74 | if [ $1 -eq 0 ] ; then |
---|
| 75 | update-desktop-database -q &> /dev/null ||: |
---|
| 76 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 77 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 78 | fi |
---|
| 79 | |
---|
| 80 | %files |
---|
| 81 | %defattr(-,root,root) |
---|
| 82 | %doc COPYING COPYING.DOC |
---|
| 83 | %{_bindir}/blinken |
---|
| 84 | %{_datadir}/applications/kde4/blinken.desktop |
---|
| 85 | %{_datadir}/config.kcfg/blinken.kcfg |
---|
| 86 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 87 | %{_datadir}/kde4/apps/blinken |
---|
| 88 | %doc %{_docdir}/HTML/en/blinken/ |
---|
| 89 | |
---|
| 90 | %changelog |
---|
[6899] | 91 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
[6797] | 94 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 95 | - new upstream release |
---|
| 96 | |
---|
[6725] | 97 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 98 | - new upstream release |
---|
| 99 | |
---|
[4743] | 100 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 101 | - split from kdeedu |
---|
| 102 | |
---|