]> git.pld-linux.org Git - packages/Sjeng-Free.git/blob - Sjeng-Free.spec
fd2badf7bf62ec79fe28dd83148de82414afdb32
[packages/Sjeng-Free.git] / Sjeng-Free.spec
1 Summary:        Chess program that plays many variants
2 Name:           Sjeng-Free
3 Version:        11.2
4 Release:        1
5 License:        GPL v2
6 Group:          Applications/Games/Boards
7 Source0:        http://www.sjeng.org/ftp/%{name}-%{version}.tar.gz
8 # Source0-md5:  6561e740b7af703c16701304697d2870
9 Source1:        %{name}.6
10 Source2:        %{name}-README
11 Patch0:         %{name}-cleanup.patch.bz2
12 Patch1:         %{name}-FHS.patch.bz2
13 URL:            http://sjeng.org/
14 BuildRequires:  automake
15 BuildRequires:  gdbm-devel
16 Provides:       chess_backend
17 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Sjeng is a chess program that plays normal chess and many variants
21 like crazyhouse, bughouse, suicide (aka giveaway or anti-chess) and
22 losers. It can also play variants which have the same rules as normal
23 chess, but a different starting position. It uses the XBoard/WinBoard
24 interface by Tim Mann, so it can be used with xboard or eboard. It is
25 also capable of playing on internet chess servers.
26
27 %prep
28 %setup -q
29 %patch0 -p1 -b .cleanup
30 %patch1 -p1 -b .fhs
31 cp %{SOURCE2} README.debian
32
33 # (Abel) supress annoying rpmlint warning message
34 %{__perl} -pi -e 's/\r//g' [[:upper:]][[:upper:]]* ChangeLog
35
36 %build
37 autoreconf --force --install
38 %configure
39
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d ${RPM_BUILD_ROOT}{%{_datadir}/sjeng,%{_sysconfdir},%{_mandir}/man6}
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 install sjeng.rc ${RPM_BUILD_ROOT}%{_sysconfdir}
50 install books/*.opn ${RPM_BUILD_ROOT}%{_datadir}/sjeng
51 install %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man6/sjeng.6
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc AUTHORS BUGS ChangeLog NEWS README* THANKS tests/*.epd
59 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sjeng.rc
60 %{_bindir}/*
61 %dir %{_datadir}/sjeng
62 %{_datadir}/sjeng/*.opn
63 %{_mandir}/man6/*.6*
This page took 0.125383 seconds and 3 git commands to generate.