]>
Commit | Line | Data |
---|---|---|
970a470b | 1 | %define kdeappsver 18.12.1 |
4238ef64 | 2 | %define qtver 5.9.0 |
70aafa2f WF |
3 | %define kaname blinken |
4 | Summary: Blinken | |
5 | Name: ka5-%{kaname} | |
970a470b | 6 | Version: 18.12.1 |
70aafa2f WF |
7 | Release: 1 |
8 | License: GPL v2+/LGPL v2.1+ | |
4238ef64 | 9 | Group: X11/Applications/Games |
70aafa2f | 10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
970a470b | 11 | # Source0-md5: 121130657067286198300cdef9e40059 |
70aafa2f WF |
12 | URL: http://www.kde.org/ |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
4238ef64 WF |
14 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
15 | BuildRequires: Qt5Svg-devel | |
16 | BuildRequires: Qt5Widgets-devel | |
70aafa2f | 17 | BuildRequires: cmake >= 2.8.12 |
4238ef64 WF |
18 | BuildRequires: gettext-devel |
19 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
20 | BuildRequires: kf5-kcrash-devel >= 5.46.0 | |
21 | BuildRequires: kf5-kdbusaddons-devel >= 5.46.0 | |
22 | BuildRequires: kf5-kdoctools-devel >= 5.46.0 | |
23 | BuildRequires: kf5-kguiaddons-devel >= 5.46.0 | |
24 | BuildRequires: kf5-ki18n-devel >= 5.46.0 | |
25 | BuildRequires: kf5-kxmlgui-devel >= 5.46.0 | |
970a470b | 26 | BuildRequires: ninja |
4238ef64 | 27 | BuildRequires: phonon-qt5-devel |
70aafa2f WF |
28 | BuildRequires: qt5-build >= %{qtver} |
29 | BuildRequires: rpmbuild(macros) >= 1.164 | |
30 | BuildRequires: shared-mime-info | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: xz | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
4238ef64 WF |
36 | Blinken is based on an electronic game released in 1978, which |
37 | challenges players to remember sequences of increasing length. On the | |
38 | face of the device, there are 4 different color buttons, each one with | |
39 | their own distinctive sound. These buttons light up randomly, creating | |
40 | the sequence that the player must then recall. If the player is | |
41 | successful in remembering the sequence of lights in the correct order, | |
42 | he advances to the next stage, where an identical sequence with one | |
43 | extra step is presented. If the player makes a mistake, the game is | |
44 | lost, and the player must start again from the beginning. The goal is | |
45 | to get a high score - each step in the sequence is worth one point, so | |
46 | correct entry of a sequence of 8 lights is worth 8 points on the high | |
47 | score table. | |
70aafa2f WF |
48 | |
49 | %prep | |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
970a470b | 56 | -G Ninja \ |
70aafa2f WF |
57 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
58 | .. | |
970a470b | 59 | %ninja_build |
70aafa2f WF |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
970a470b | 63 | %ninja_install -C build |
70aafa2f WF |
64 | |
65 | %find_lang %{kaname} --all-name --with-kde | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files -f %{kaname}.lang | |
74 | %defattr(644,root,root,755) | |
75 | %attr(755,root,root) %{_bindir}/blinken | |
76 | %{_desktopdir}/org.kde.blinken.desktop | |
77 | %{_datadir}/blinken | |
78 | %{_datadir}/config.kcfg/blinken.kcfg | |
79 | %{_iconsdir}/hicolor/128x128/apps/blinken.png | |
80 | %{_iconsdir}/hicolor/16x16/apps/blinken.png | |
81 | %{_iconsdir}/hicolor/22x22/apps/blinken.png | |
82 | %{_iconsdir}/hicolor/32x32/apps/blinken.png | |
83 | %{_iconsdir}/hicolor/48x48/apps/blinken.png | |
84 | %{_iconsdir}/hicolor/64x64/apps/blinken.png | |
85 | %{_iconsdir}/hicolor/scalable/apps/blinken.svgz | |
86 | %{_datadir}/metainfo/org.kde.blinken.appdata.xml |