]>
Commit | Line | Data |
---|---|---|
9531b08f WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
3 | %define kaname knavalbattle | |
4 | Summary: knavalbattle | |
5 | Name: ka5-%{kaname} | |
6 | Version: 18.12.0 | |
7 | Release: 1 | |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Applications/Games | |
10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
11 | # Source0-md5: 755b0c594e155fdd6a168cca5d3f8da6 | |
12 | URL: http://www.kde.org/ | |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
14 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
15 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
16 | BuildRequires: Qt5Quick-devel >= 5.11.1 | |
17 | BuildRequires: Qt5Widgets-devel | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: ka5-libkdegames-devel >= 18.12.0 | |
20 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
21 | BuildRequires: kf5-kconfig-devel >= 5.30.0 | |
22 | BuildRequires: kf5-kcrash-devel >= 5.30.0 | |
23 | BuildRequires: kf5-kdbusaddons-devel >= 5.30.0 | |
24 | BuildRequires: kf5-kdnssd-devel >= 5.30.0 | |
25 | BuildRequires: kf5-kdoctools-devel >= 5.30.0 | |
26 | BuildRequires: kf5-ki18n-devel >= 5.30.0 | |
27 | BuildRequires: kf5-ktextwidgets-devel >= 5.30.0 | |
28 | BuildRequires: kf5-kxmlgui-devel >= 5.30.0 | |
29 | BuildRequires: qt5-build >= %{qtver} | |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: shared-mime-info | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xz | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | Naval Battle is a ship sinking game by KDE. Ships are placed on a | |
38 | board which represents the sea. Players try to hit each others ships | |
39 | in turns without knowing where they are placed. The first player to | |
40 | destroy all ships wins the game. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{kaname}-%{version} | |
44 | ||
45 | %build | |
46 | install -d build | |
47 | cd build | |
48 | %cmake \ | |
49 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
50 | .. | |
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__make} -C build install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %find_lang %{kaname} --all-name --with-qm | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files -f %{kaname}.lang | |
64 | %defattr(644,root,root,755) | |
65 | %attr(755,root,root) %{_bindir}/knavalbattle | |
66 | %{_desktopdir}/org.kde.knavalbattle.desktop | |
67 | %{_iconsdir}/hicolor/128x128/apps/knavalbattle.png | |
68 | %{_iconsdir}/hicolor/16x16/apps/knavalbattle.png | |
69 | %{_iconsdir}/hicolor/22x22/apps/knavalbattle.png | |
70 | %{_iconsdir}/hicolor/32x32/apps/knavalbattle.png | |
71 | %{_iconsdir}/hicolor/48x48/apps/knavalbattle.png | |
72 | %{_iconsdir}/hicolor/64x64/apps/knavalbattle.png | |
73 | %{_datadir}/kconf_update/knavalbattle.upd | |
74 | %{_datadir}/knavalbattle | |
75 | %{_datadir}/kservices5/knavalbattle.protocol | |
76 | %dir %{_datadir}/kxmlgui5/knavalbattle | |
77 | %{_datadir}/kxmlgui5/knavalbattle/knavalbattleui.rc | |
78 | %{_datadir}/metainfo/org.kde.knavalbattle.appdata.xml |