]>
Commit | Line | Data |
---|---|---|
23eb9ce6 | 1 | Summary: Battleships against the computer (character-cell graphics) |
4abc375e | 2 | Summary(pl.UTF-8): Gra w statki przeciwko komputerowi |
23eb9ce6 | 3 | Name: battleships |
bd68e8bd | 4 | Version: 2.9 |
75441a87 | 5 | Release: 2 |
600cd3af AG |
6 | License: GPL |
7 | Group: Applications/Games | |
23eb9ce6 | 8 | Source0: http://www.catb.org/~esr/bs/bs-%{version}.tar.gz |
bd68e8bd | 9 | # Source0-md5: 4d4eec59c1789cffacf367d993e724f4 |
9cee7738 | 10 | Patch0: %{name}-ldflags.patch |
23eb9ce6 AG |
11 | URL: http://www.catb.org/~esr/bs/ |
12 | BuildRequires: ncurses-devel | |
13 | BuildRequires: xmlto | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
600cd3af AG |
17 | The classic game of Battleships against the computer. Uses |
18 | character-cell graphics with a visual point-and-shoot interface. | |
23eb9ce6 AG |
19 | |
20 | If you're using an xterm the mouse will work. | |
21 | ||
0009937a | 22 | %description -l pl.UTF-8 |
23eb9ce6 | 23 | Klasyczna gra w statki, tym razem przeciwko komputerowi. Posiada |
0009937a | 24 | wizualny interfejs "wskaż i strzel" (ang. "point and shoot"). |
23eb9ce6 | 25 | |
0009937a | 26 | Jeśli używasz xterm, mysz nie będzie działać. |
23eb9ce6 AG |
27 | |
28 | %prep | |
29 | %setup -q -n bs-%{version} | |
9cee7738 | 30 | %patch0 -p1 |
23eb9ce6 AG |
31 | |
32 | %build | |
33 | %{__make} \ | |
9cee7738 | 34 | TERMLIB="-lncurses -ltinfo" \ |
24c37a01 | 35 | CC="%{__cc}" \ |
9cee7738 | 36 | CFLAGS="%{rpmcflags} -I /usr/include/ncurses" \ |
37 | LDFLAGS="%{rpmldflags}" | |
23eb9ce6 AG |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6} | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
02603fb8 | 51 | %doc README |
9cee7738 | 52 | %attr(755,root,root) %{_bindir}/bs |
23eb9ce6 | 53 | %{_mandir}/man6/bs.6* |