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