]> git.pld-linux.org Git - packages/ka5-blinken.git/blame_incremental - ka5-blinken.spec
- updated to 23.08.2
[packages/ka5-blinken.git] / ka5-blinken.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_with tests # build with tests
4%define kdeappsver 23.08.2
5%define kframever 5.94.0
6%define qtver 5.15.2
7%define kaname blinken
8Summary: Blinken
9Name: ka5-%{kaname}
10Version: 23.08.2
11Release: 1
12License: GPL v2+/LGPL v2.1+
13Group: X11/Applications/Games
14Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
15# Source0-md5: 0c3e631fbb4cd2127aae933ccdb4aaa5
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Gui-devel >= 5.11.1
19BuildRequires: Qt5Svg-devel
20BuildRequires: Qt5Widgets-devel
21BuildRequires: cmake >= 3.20
22BuildRequires: gettext-devel
23BuildRequires: kf5-extra-cmake-modules >= %{kframever}
24BuildRequires: kf5-kcrash-devel >= %{kframever}
25BuildRequires: kf5-kdbusaddons-devel >= %{kframever}
26BuildRequires: kf5-kdoctools-devel >= %{kframever}
27BuildRequires: kf5-kguiaddons-devel >= %{kframever}
28BuildRequires: kf5-ki18n-devel >= %{kframever}
29BuildRequires: kf5-kxmlgui-devel >= %{kframever}
30BuildRequires: ninja
31BuildRequires: phonon-qt5-devel
32BuildRequires: qt5-build >= %{qtver}
33BuildRequires: rpmbuild(macros) >= 1.164
34BuildRequires: shared-mime-info
35BuildRequires: tar >= 1:1.22
36BuildRequires: xz
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
40Blinken is based on an electronic game released in 1978, which
41challenges players to remember sequences of increasing length. On the
42face of the device, there are 4 different color buttons, each one with
43their own distinctive sound. These buttons light up randomly, creating
44the sequence that the player must then recall. If the player is
45successful in remembering the sequence of lights in the correct order,
46he advances to the next stage, where an identical sequence with one
47extra step is presented. If the player makes a mistake, the game is
48lost, and the player must start again from the beginning. The goal is
49to get a high score - each step in the sequence is worth one point, so
50correct entry of a sequence of 8 lights is worth 8 points on the high
51score table.
52
53%description -l pl.UTF-8
54Blinken jest oparty na grze elektronicznej wydanej w 1978 roku.
55Wyzwaniem dla gracza jest zapamiętywanie coraz dłuższych sekwencji. Na
56urządzeniu są 4 różne kolorowe przyciski, każdy z odróżnialnym
57dźwiękiem. Przyciski te zapalają się losowo, tworząc sekwencję, którą
58gracz musi zapamiętać i odtworzyć. Jeśli mu się to uda, przechodzi do
59następnego poziomu, gdzie do identycznej sekwencji dodawany jest jeden
60element. Jeśli gracz się pomyli, przegrywa i musi zacząć od początku.
61Celem jest uzyskanie rekordu, każdy krok w sekwencji jest warty 1
62punkt, więc prawidłowe powtórzenie 8 świateł jest warte 8 punktów w
63tabeli rekordów.
64
65%prep
66%setup -q -n %{kaname}-%{version}
67
68%build
69%cmake \
70 -B build \
71 -G Ninja \
72 %{!?with_tests:-DBUILD_TESTING=OFF} \
73 -DHTML_INSTALL_DIR=%{_kdedocdir} \
74 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
75%ninja_build -C build
76
77%if %{with tests}
78ctest --test-dir build
79%endif
80
81
82%install
83rm -rf $RPM_BUILD_ROOT
84%ninja_install -C build
85
86%find_lang %{kaname} --all-name --with-kde
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
94%files -f %{kaname}.lang
95%defattr(644,root,root,755)
96%attr(755,root,root) %{_bindir}/blinken
97%{_desktopdir}/org.kde.blinken.desktop
98%{_datadir}/blinken
99%{_datadir}/config.kcfg/blinken.kcfg
100%{_iconsdir}/hicolor/128x128/apps/blinken.png
101%{_iconsdir}/hicolor/16x16/apps/blinken.png
102%{_iconsdir}/hicolor/22x22/apps/blinken.png
103%{_iconsdir}/hicolor/32x32/apps/blinken.png
104%{_iconsdir}/hicolor/48x48/apps/blinken.png
105%{_iconsdir}/hicolor/64x64/apps/blinken.png
106%{_iconsdir}/hicolor/scalable/apps/blinken.svgz
107%{_datadir}/metainfo/org.kde.blinken.appdata.xml
This page took 0.081252 seconds and 4 git commands to generate.