]>
Commit | Line | Data |
---|---|---|
a246d97c WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
e681507e | 4 | %define kdeappsver 22.08.1 |
16868cc0 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
5d985db1 WF |
7 | %define kaname kbounce |
8 | Summary: Kbounce | |
9 | Name: ka5-%{kaname} | |
e681507e | 10 | Version: 22.08.1 |
229a429e | 11 | Release: 2 |
5d985db1 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications/Games | |
724bc6c1 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
e681507e | 15 | # Source0-md5: 7c1b2662440921e2e168ac522a935a16 |
5d985db1 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Svg-devel | |
22 | BuildRequires: Qt5Widgets-devel | |
23 | BuildRequires: cmake >= 2.8.12 | |
24 | BuildRequires: gettext-devel | |
29211501 | 25 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
a16740f4 WF |
26 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
27 | BuildRequires: kf5-kcompletion-devel >= %{kframever} | |
28 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
29 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
30 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
32 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
33 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
34 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
35 | BuildRequires: kf5-kio-devel >= %{kframever} | |
36 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
37 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
29211501 | 38 | BuildRequires: ninja |
5d985db1 WF |
39 | BuildRequires: qt5-build >= %{qtver} |
40 | BuildRequires: rpmbuild(macros) >= 1.164 | |
41 | BuildRequires: shared-mime-info | |
42 | BuildRequires: tar >= 1:1.22 | |
43 | BuildRequires: xz | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | KBounce is a single player arcade game with the elements of puzzle. It | |
48 | is played on a field, surrounded by wall, with two or more balls | |
49 | bouncing around within the walls. The object of the game is to build | |
50 | new walls to decrease the size of the active field. | |
51 | ||
667e92d1 WF |
52 | %description -l pl.UTF-8 |
53 | KBounce jest jednoosobową grą zręcznościową z elementami zagadki. Jest | |
54 | rozgrywana na polu otoczonym ścianami, z dwoma lub więcej piłkami | |
55 | odbijającymi się od ścian. Celem gry jest budowanie nowych ścian, żeby | |
56 | zmniejszać rozmiar aktywnego pola gry. | |
57 | ||
5d985db1 WF |
58 | %prep |
59 | %setup -q -n %{kaname}-%{version} | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake \ | |
29211501 | 65 | -G Ninja \ |
a246d97c | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
a16740f4 | 67 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
5d985db1 WF |
68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
69 | .. | |
29211501 | 70 | %ninja_build |
5d985db1 | 71 | |
a246d97c WF |
72 | %if %{with tests} |
73 | ctest | |
74 | %endif | |
75 | ||
76 | ||
5d985db1 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
29211501 | 79 | %ninja_install -C build |
5d985db1 WF |
80 | |
81 | %find_lang %{kaname} --all-name --with-kde | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files -f %{kaname}.lang | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_bindir}/kbounce | |
89 | %{_desktopdir}/org.kde.kbounce.desktop | |
90 | %{_iconsdir}/hicolor/128x128/apps/kbounce.png | |
91 | %{_iconsdir}/hicolor/16x16/apps/kbounce.png | |
92 | %{_iconsdir}/hicolor/22x22/apps/kbounce.png | |
93 | %{_iconsdir}/hicolor/32x32/apps/kbounce.png | |
94 | %{_iconsdir}/hicolor/48x48/apps/kbounce.png | |
95 | %{_iconsdir}/hicolor/64x64/apps/kbounce.png | |
96 | %{_datadir}/kbounce | |
5d985db1 | 97 | %{_datadir}/metainfo/org.kde.kbounce.appdata.xml |
18d4b4bd | 98 | %{_datadir}/qlogging-categories5/kbounce.categories |