]>
Commit | Line | Data |
---|---|---|
92d4929e | 1 | %define kdeappsver 18.12.1 |
16a2b047 | 2 | %define qtver 5.9.0 |
5800ec29 | 3 | %define kaname bovo |
16a2b047 | 4 | Summary: A Gomoku like game |
5800ec29 | 5 | Name: ka5-%{kaname} |
92d4929e | 6 | Version: 18.12.1 |
5800ec29 WF |
7 | Release: 1 |
8 | License: GPL v2+/LGPL v2.1+ | |
16a2b047 | 9 | Group: X11/Applications/Games |
5800ec29 | 10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
92d4929e | 11 | # Source0-md5: 1b4a569802c5d5d24a3adda14b962f40 |
5800ec29 | 12 | URL: http://www.kde.org/ |
16a2b047 | 13 | BuildRequires: Qt5Concurrent-devel |
5800ec29 | 14 | BuildRequires: Qt5Core-devel >= %{qtver} |
16a2b047 WF |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
16 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
17 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
18 | BuildRequires: Qt5Svg-devel | |
19 | BuildRequires: Qt5Widgets-devel | |
5800ec29 | 20 | BuildRequires: cmake >= 2.8.12 |
16a2b047 | 21 | BuildRequires: gettext-devel |
92d4929e | 22 | BuildRequires: ka5-libkdegames-devel >= %{kdeappsver} |
16a2b047 WF |
23 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 |
24 | BuildRequires: kf5-kcoreaddons-devel >= 5.30.0 | |
25 | BuildRequires: kf5-kcrash-devel >= 5.30.0 | |
26 | BuildRequires: kf5-kdbusaddons-devel >= 5.30.0 | |
27 | BuildRequires: kf5-kdoctools-devel >= 5.30.0 | |
28 | BuildRequires: kf5-kxmlgui-devel >= 5.30.0 | |
92d4929e | 29 | BuildRequires: ninja |
5800ec29 WF |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
16a2b047 WF |
38 | Bovo is a Gomoku like game for two players, where the opponents |
39 | alternate in placing their respective pictogram on the game board. | |
40 | (Also known as: Connect Five, Five in a row, X and O, Naughts and | |
41 | Crosses) | |
5800ec29 WF |
42 | |
43 | %prep | |
44 | %setup -q -n %{kaname}-%{version} | |
45 | ||
46 | %build | |
47 | install -d build | |
48 | cd build | |
49 | %cmake \ | |
92d4929e | 50 | -G Ninja \ |
5800ec29 WF |
51 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
52 | .. | |
92d4929e | 53 | %ninja_build |
5800ec29 WF |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
92d4929e | 57 | %ninja_install -C build |
5800ec29 WF |
58 | |
59 | %find_lang %{kaname} --all-name --with-kde | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post -p /sbin/ldconfig | |
65 | %postun -p /sbin/ldconfig | |
66 | ||
67 | %files -f %{kaname}.lang | |
68 | %defattr(644,root,root,755) | |
69 | %attr(755,root,root) %{_bindir}/bovo | |
70 | %{_desktopdir}/org.kde.bovo.desktop | |
71 | %{_datadir}/bovo | |
72 | %{_iconsdir}/hicolor/128x128/apps/bovo.png | |
73 | %{_iconsdir}/hicolor/16x16/apps/bovo.png | |
74 | %{_iconsdir}/hicolor/22x22/apps/bovo.png | |
75 | %{_iconsdir}/hicolor/32x32/apps/bovo.png | |
76 | %{_iconsdir}/hicolor/48x48/apps/bovo.png | |
77 | %{_iconsdir}/hicolor/64x64/apps/bovo.png | |
78 | %dir %{_datadir}/kxmlgui5/bovo | |
79 | %{_datadir}/kxmlgui5/bovo/bovoui.rc | |
80 | %{_datadir}/metainfo/org.kde.bovo.appdata.xml |