]>
Commit | Line | Data |
---|---|---|
f8c2b65b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
6238c2f7 | 4 | %define kdeappsver 22.08.2 |
cc1e01ad WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
0ec58578 WF |
7 | %define kaname kjumpingcube |
8 | Summary: kjumpingcube | |
9 | Name: ka5-%{kaname} | |
6238c2f7 WF |
10 | Version: 22.08.2 |
11 | Release: 1 | |
0ec58578 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications/Games | |
b5e215a7 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
6238c2f7 | 15 | # Source0-md5: cff1a360eda293e6413c14de371c7126 |
0ec58578 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 | |
4c0e6085 | 25 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
4e667c6b WF |
26 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
27 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
28 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
29 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
30 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
31 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
32 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
33 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
34 | BuildRequires: kf5-kio-devel >= %{kframever} | |
35 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
36 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
4c0e6085 | 37 | BuildRequires: ninja |
0ec58578 WF |
38 | BuildRequires: qt5-build >= %{qtver} |
39 | BuildRequires: rpmbuild(macros) >= 1.164 | |
40 | BuildRequires: shared-mime-info | |
41 | BuildRequires: tar >= 1:1.22 | |
42 | BuildRequires: xz | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | KJumpingcube is a simple dice driven tactical game. The playing area | |
47 | consists of squares containing points. Players move by clicking on | |
48 | either a vacant square, or on own square. | |
49 | ||
5d50de6f WF |
50 | %description -l pl.UTF-8 |
51 | KJumpingcube jest prostą sterowaną rzutami kostką grą taktyczną. | |
52 | Pole gry składa się z kwadratów zawierających punkty. Ruchy graczy | |
53 | polegają na klikaniu albo w puste, albo we własne kwadraty. | |
54 | ||
0ec58578 WF |
55 | %prep |
56 | %setup -q -n %{kaname}-%{version} | |
57 | ||
58 | %build | |
59 | install -d build | |
60 | cd build | |
61 | %cmake \ | |
4c0e6085 | 62 | -G Ninja \ |
f8c2b65b | 63 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
4e667c6b | 64 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
0ec58578 WF |
65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
66 | .. | |
4c0e6085 | 67 | %ninja_build |
0ec58578 | 68 | |
f8c2b65b WF |
69 | %if %{with tests} |
70 | ctest | |
71 | %endif | |
72 | ||
73 | ||
0ec58578 WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
4c0e6085 | 76 | %ninja_install -C build |
0ec58578 WF |
77 | |
78 | %find_lang %{kaname} --all-name --with-kde | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files -f %{kaname}.lang | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/kjumpingcube | |
86 | %{_desktopdir}/org.kde.kjumpingcube.desktop | |
87 | %{_datadir}/config.kcfg/kjumpingcube.kcfg | |
88 | %{_iconsdir}/hicolor/128x128/apps/kjumpingcube.png | |
89 | %{_iconsdir}/hicolor/16x16/apps/kjumpingcube.png | |
90 | %{_iconsdir}/hicolor/22x22/apps/kjumpingcube.png | |
91 | %{_iconsdir}/hicolor/32x32/apps/kjumpingcube.png | |
92 | %{_iconsdir}/hicolor/48x48/apps/kjumpingcube.png | |
93 | %{_iconsdir}/hicolor/64x64/apps/kjumpingcube.png | |
94 | %{_datadir}/kjumpingcube | |
4e667c6b | 95 | %{_datadir}/metainfo/org.kde.kjumpingcube.appdata.xml |
a315a7b2 | 96 | %{_datadir}/qlogging-categories5/kjumpingcube.categories |