]>
Commit | Line | Data |
---|---|---|
ec23890f WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
cd833cb9 | 4 | %define kdeappsver 22.08.1 |
901ae6f8 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
94695a32 | 7 | %define kaname bomber |
7a9fe733 | 8 | Summary: Single player arcade game |
94695a32 | 9 | Name: ka5-%{kaname} |
cd833cb9 | 10 | Version: 22.08.1 |
813f1204 | 11 | Release: 3 |
94695a32 | 12 | License: GPL v2+/LGPL v2.1+ |
7a9fe733 | 13 | Group: X11/Applications/Games |
8b5591e1 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
cd833cb9 | 15 | # Source0-md5: 3d9511437daab4abda3465afd6c762ca |
94695a32 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
7a9fe733 WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Widgets-devel | |
94695a32 | 22 | BuildRequires: cmake >= 2.8.12 |
7a9fe733 | 23 | BuildRequires: gettext-devel |
ccd299be | 24 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
12c29954 WF |
25 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
26 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
27 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
29 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
30 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
31 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
32 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
ccd299be | 33 | BuildRequires: ninja |
94695a32 WF |
34 | BuildRequires: qt5-build >= %{qtver} |
35 | BuildRequires: rpmbuild(macros) >= 1.164 | |
36 | BuildRequires: shared-mime-info | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
7a9fe733 WF |
42 | Bomber is a single player arcade game. The player is invading various |
43 | cities in a plane that is decreasing in height. | |
44 | ||
45 | The goal of the game is to destroy all the buildings and advance to | |
46 | the next level. Each level gets a bit harder by increasing the speed | |
47 | of the plane and the height of the buildings. | |
94695a32 | 48 | |
2e11b2de WF |
49 | %description -l pl.UTF-8 |
50 | Bomber jest jednoosobową grą zręcznościową. Gracz bombarduje różne miasta | |
ea4ea556 | 51 | samolotem, z każdym przelotem wysokość na której leci bombowiec obniża się. |
2e11b2de WF |
52 | |
53 | Celem gry jest zniszczenie wszystkich budynków, żeby przejść do następnego | |
54 | poziomu. Każdy następny poziom jest coraz trudniejszy przez zwiększającą | |
55 | się prędkość samolotu i wyższe budynki. | |
56 | ||
94695a32 WF |
57 | %prep |
58 | %setup -q -n %{kaname}-%{version} | |
59 | ||
60 | %build | |
61 | install -d build | |
62 | cd build | |
63 | %cmake \ | |
ccd299be | 64 | -G Ninja \ |
ec23890f | 65 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
12c29954 | 66 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
94695a32 WF |
67 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
68 | .. | |
ccd299be | 69 | %ninja_build |
94695a32 | 70 | |
ec23890f WF |
71 | %if %{with tests} |
72 | ctest | |
73 | %endif | |
74 | ||
75 | ||
94695a32 WF |
76 | %install |
77 | rm -rf $RPM_BUILD_ROOT | |
ccd299be | 78 | %ninja_install -C build |
94695a32 WF |
79 | |
80 | %find_lang %{kaname} --all-name --with-kde | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files -f %{kaname}.lang | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_bindir}/bomber | |
88 | %{_desktopdir}/org.kde.bomber.desktop | |
89 | %{_datadir}/bomber | |
90 | %{_datadir}/config.kcfg/bomber.kcfg | |
91 | %{_iconsdir}/hicolor/128x128/apps/bomber.png | |
92 | %{_iconsdir}/hicolor/32x32/apps/bomber.png | |
93 | %{_iconsdir}/hicolor/48x48/apps/bomber.png | |
94 | %{_iconsdir}/hicolor/64x64/apps/bomber.png | |
94695a32 | 95 | %{_datadir}/metainfo/org.kde.bomber.appdata.xml |