1 |
# |
2 |
# Please do not update/rebuild/touch this package before asking first to mikala and/or neoclust |
3 |
# This package is part of the KDE Stack. |
4 |
# |
5 |
|
6 |
|
7 |
%define rel 1 |
8 |
|
9 |
Name: knavalbattle |
10 |
Version: 4.12.2 |
11 |
Summary: Battleship game with built-in game server |
12 |
Group: Games/Strategy |
13 |
URL: http://www.kde.org/applications/games/navalbattle/ |
14 |
Release: %mkrel %{rel} |
15 |
Epoch: 1 |
16 |
License: GPLv2 and LGPLv2 and GFDL |
17 |
Source: ftp://ftp.kde.org/pub/kde/stable/%version/src/%name-%version.tar.xz |
18 |
BuildRequires: kdegames-devel >= 1:%version |
19 |
Suggests: knavalbattle-handbook |
20 |
Conflicts: kbattleship < 1:4.9.80 |
21 |
Obsoletes: kbattleship < 1:4.9.80 |
22 |
|
23 |
%description |
24 |
KBattleship is a Battle Ship game for KDE. |
25 |
|
26 |
Ships are placed on a board which represents the sea. Players try to hit each |
27 |
others ships in turns without knowing where they are placed. The first player to |
28 |
destroy all ships wins the game. |
29 |
|
30 |
%files |
31 |
%_kde_bindir/knavalbattle |
32 |
%_kde_appsdir/knavalbattle |
33 |
%_datadir/applications/kde4/knavalbattle.desktop |
34 |
%_kde_datadir/kde4/services/knavalbattle.protocol |
35 |
%_kde_iconsdir/hicolor/*/apps/knavalbattle.png |
36 |
%_kde_appsdir/kconf_update/knavalbattle.upd |
37 |
|
38 |
#------------------------------------------------------------------------------ |
39 |
|
40 |
%package handbook |
41 |
Summary: Knavalbattle Handbook |
42 |
Conflicts: kbattleship < 1:4.7.1-2 |
43 |
Conflicts: kbattleship-handbook < 1:4.9.80 |
44 |
Obsoletes: kbattleship-handbook < 1:4.9.80 |
45 |
Requires: knavalbattle >= %{epoch}:%{version}-%{release} |
46 |
BuildArch: noarch |
47 |
Group: Documentation |
48 |
%description handbook |
49 |
This package provides the knavalbattle handbook. |
50 |
|
51 |
%files handbook |
52 |
%_kde_docdir/HTML/en/knavalbattle |
53 |
|
54 |
#------------------------------------------------------------------------------ |
55 |
|
56 |
%prep |
57 |
%setup -q |
58 |
%apply_patches |
59 |
|
60 |
%build |
61 |
export LD=/usr/bin/ld.gold |
62 |
%cmake_kde4 |
63 |
%make |
64 |
|
65 |
%install |
66 |
rm -fr %buildroot |
67 |
%makeinstall_std -C build |