]> git.pld-linux.org Git - packages/gnuchess.git/blob - gnuchess.spec
8634cdc4ffcafcb2ccd4a26cc2e3536b07d249a9
[packages/gnuchess.git] / gnuchess.spec
1 Summary:        Computer chess program
2 Summary(de):    Computerschachprogramm
3 Summary(fr):    Jeu d'échecs
4 Summary(pl):    Gra w szachy
5 Summary(tr):    Bilgisayar satranç oyunu
6 Name:           gnuchess
7 Version:        4.0.pl80
8 Release:        6
9 License:        GPL
10 Group:          Games
11 Group(pl):      Gry
12 Source0:        ftp://prep.ai.mit.edu/pub/gnu/gnuchess/%{name}-%{version}.tar.gz
13 Source1:        xchess.png
14 Source2:        gnuchess.desktop
15 Patch0:         gnuchess-fhs.patch
16 Patch1:         gnuchess-ncurses.patch
17 Icon:           xchess.xpm
18 BuildRequires:  ncurses-devel >= 5.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Provides:       chessprogram
21
22 %description
23 The gnuchess package contains the GNU chess program. By default,
24 GNUchess uses a curses text-based interface. Alternatively, GNUchess
25 can be used in conjunction with the xboard user interface and the X
26 Window System for a graphical chessboard.
27
28 %description -l de
29 Das berühmte GNU-Schachprogramm. Es ist textorientiert, kann aber mit
30 'xboard' verwendet werden, um X-orientiertes Schach zu spielen.
31
32 %description -l fr
33 Le fameux programme de jeu d'échecs de GNU. Il est en mode texte mais
34 peut être utilisé avec xboard pour y jouer sous X.
35
36 %description -l pl
37 Oto s³awny GNU program szachowy. Jest w trybie tekstowym, ale w
38 po³±czeniu z xboard mo¿e mieæ interfejs w X Window.
39
40 %description -l tr
41 Bu ünlü GNU satranç programýdýr. Metin ekranda çalýþýr ama xboard
42 programý ile birlikte kullanýlarak X altýnda da oynanabilir.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48
49 %build
50 cd src
51 rm -f config.status config.cache
52 LDFLAGS="-s"; export LDFLAGS
53 %configure
54 %{__make} CFLAGS="$RPM_OPT_FLAGS"
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/gnuchess,%{_mandir}/man6} \
59         $RPM_BUILD_ROOT{%{_applnkdir}/Games,/usr/X11R6/share/pixmaps}
60
61 cd src
62 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} \
63         exec_prefix=$RPM_BUILD_ROOT%{_prefix}
64
65 install %{SOURCE1} $RPM_BUILD_ROOT/usr/X11R6/share/pixmaps
66 install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Games
67
68 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man6/*
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_bindir}/*
76 %{_applnkdir}/Games/*
77 /usr/X11R6/share/pixmaps/*
78 %{_datadir}/games/gnuchess
79 %{_mandir}/man6/*
This page took 0.059671 seconds and 2 git commands to generate.