]> git.pld-linux.org Git - packages/xboard.git/blob - xboard.spec
- reverting last change: removing new macros from %p{re,ost}{,un}
[packages/xboard.git] / xboard.spec
1 Summary:        An X Window System graphical chessboard
2 Name:           xboard
3 Version:        4.0.0 
4 Release:        3
5 Group:          X11/Games
6 Group(pl):      X11/Gry
7 Source0:        ftp://ftp.gnu.org/pub/gnu/%{name}-%{version}.tar.gz
8 Patch0:         xboard-header.patch
9 Patch1:         xboard-4.0.0-xref.patch
10 License:        GPL
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %define         _prefix         /usr/X11R6
14 %define         _mandir         /usr/X11R6/man
15
16 %description
17 Xboard is an X Window System based graphical chessboard which can be
18 used with the GNUchess and Crafty chess programs, with Internet Chess
19 Servers (ICSs), with chess via email, or with your own saved games.
20
21 Install the xboard package if you need a graphical chessboard.
22
23 %prep
24 %setup -q 
25 %patch0 -p1
26 %patch1 -p1
27
28 %build
29 %configure
30 %{__make} infodir=%{_infodir}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig
35
36 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} \
37         bindir=$RPM_BUILD_ROOT%{_bindir} \
38         man6dir=$RPM_BUILD_ROOT%{_mandir}/man6 \
39         infodir=$RPM_BUILD_ROOT%{_infodir}
40
41 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/* || :
42
43 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man6/* \
44         $RPM_BUILD_ROOT%{_infodir}/*
45
46 cat > $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig/xboard <<EOF
47 xboard name "xboard"
48 xboard description "Chess"
49 xboard group Games/Strategy
50 xboard exec "xboard &"
51 EOF
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post
57 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
58
59 %postun
60 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
61
62 %files
63 %defattr(644,root,root,755)
64 %config %{_sysconfdir}/X11/wmconfig/xboard
65 %attr(755,root,root) %{_bindir}/xboard
66 %attr(755,root,root) %{_bindir}/zic2xpm
67 %attr(755,root,root) %{_bindir}/cmail
68 %attr(755,root,root) %{_bindir}/pxboard
69 %{_mandir}/man6/xboard.6.gz
70 %{_mandir}/man6/zic2xpm.6.gz
71 %{_mandir}/man6/cmail.6.gz
72 %{_infodir}/xboard.info.gz
This page took 0.452991 seconds and 4 git commands to generate.