]>
Commit | Line | Data |
---|---|---|
9919c2e8 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
da9e4ba8 | 4 | %define kdeappsver 23.08.5 |
e53a5f72 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
5800ec29 | 7 | %define kaname bovo |
16a2b047 | 8 | Summary: A Gomoku like game |
5800ec29 | 9 | Name: ka5-%{kaname} |
da9e4ba8 | 10 | Version: 23.08.5 |
9a28520b | 11 | Release: 1 |
5800ec29 | 12 | License: GPL v2+/LGPL v2.1+ |
16a2b047 | 13 | Group: X11/Applications/Games |
9a28520b | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
da9e4ba8 | 15 | # Source0-md5: 78b0dbacecbb1ed959f41c90c073742b |
5800ec29 | 16 | URL: http://www.kde.org/ |
9a28520b WF |
17 | BuildRequires: Qt5Concurrent-devel |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
19 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
22 | BuildRequires: Qt5Svg-devel | |
23 | BuildRequires: Qt5Widgets-devel | |
9fcf0c02 | 24 | BuildRequires: cmake >= 3.20 |
16a2b047 | 25 | BuildRequires: gettext-devel |
92d4929e | 26 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
9a28520b WF |
27 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
28 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
29 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
30 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
32 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
92d4929e | 33 | BuildRequires: ninja |
9a28520b | 34 | BuildRequires: qt5-build >= %{qtver} |
5800ec29 WF |
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 | |
16a2b047 WF |
42 | Bovo is a Gomoku like game for two players, where the opponents |
43 | alternate in placing their respective pictogram on the game board. | |
44 | (Also known as: Connect Five, Five in a row, X and O, Naughts and | |
45 | Crosses) | |
5800ec29 | 46 | |
31e912f7 WF |
47 | %description -l pl.UTF-8 |
48 | Bovo to gra w kółko i krzyżyk (do pięciu w rzędzie). | |
49 | ||
5800ec29 WF |
50 | %prep |
51 | %setup -q -n %{kaname}-%{version} | |
52 | ||
53 | %build | |
5800ec29 | 54 | %cmake \ |
9fcf0c02 | 55 | -B build \ |
92d4929e | 56 | -G Ninja \ |
9919c2e8 | 57 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
01fc0b5b | 58 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
9fcf0c02 WF |
59 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
60 | %ninja_build -C build | |
5800ec29 | 61 | |
9919c2e8 | 62 | %if %{with tests} |
9fcf0c02 | 63 | ctest --test-dir build |
9919c2e8 WF |
64 | %endif |
65 | ||
66 | ||
5800ec29 WF |
67 | %install |
68 | rm -rf $RPM_BUILD_ROOT | |
92d4929e | 69 | %ninja_install -C build |
5800ec29 WF |
70 | |
71 | %find_lang %{kaname} --all-name --with-kde | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files -f %{kaname}.lang | |
80 | %defattr(644,root,root,755) | |
81 | %attr(755,root,root) %{_bindir}/bovo | |
82 | %{_desktopdir}/org.kde.bovo.desktop | |
83 | %{_datadir}/bovo | |
84 | %{_iconsdir}/hicolor/128x128/apps/bovo.png | |
85 | %{_iconsdir}/hicolor/16x16/apps/bovo.png | |
86 | %{_iconsdir}/hicolor/22x22/apps/bovo.png | |
87 | %{_iconsdir}/hicolor/32x32/apps/bovo.png | |
88 | %{_iconsdir}/hicolor/48x48/apps/bovo.png | |
89 | %{_iconsdir}/hicolor/64x64/apps/bovo.png | |
5800ec29 | 90 | %{_datadir}/metainfo/org.kde.bovo.appdata.xml |