]> git.pld-linux.org Git - packages/battleships.git/blob - battleships.spec
- ncurses rebuild
[packages/battleships.git] / battleships.spec
1 Summary:        Battleships against the computer (character-cell graphics)
2 Summary(pl.UTF-8):      Gra w statki przeciwko komputerowi
3 Name:           battleships
4 Version:        2.9
5 Release:        2
6 License:        GPL
7 Group:          Applications/Games
8 Source0:        http://www.catb.org/~esr/bs/bs-%{version}.tar.gz
9 # Source0-md5:  4d4eec59c1789cffacf367d993e724f4
10 Patch0:         %{name}-ldflags.patch
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
17 The classic game of Battleships against the computer. Uses
18 character-cell graphics with a visual point-and-shoot interface.
19
20 If you're using an xterm the mouse will work.
21
22 %description -l pl.UTF-8
23 Klasyczna gra w statki, tym razem przeciwko komputerowi. Posiada
24 wizualny interfejs "wskaż i strzel" (ang. "point and shoot").
25
26 Jeśli używasz xterm, mysz nie będzie działać.
27
28 %prep
29 %setup -q -n bs-%{version}
30 %patch0 -p1
31
32 %build
33 %{__make} \
34         TERMLIB="-lncurses -ltinfo" \
35         CC="%{__cc}" \
36         CFLAGS="%{rpmcflags} -I /usr/include/ncurses" \
37         LDFLAGS="%{rpmldflags}"
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)
51 %doc README
52 %attr(755,root,root) %{_bindir}/bs
53 %{_mandir}/man6/bs.6*
This page took 0.066427 seconds and 4 git commands to generate.