--- /dev/null
+README for the Debian package of sjeng
+--------------------------------------
+
+File locations have been changed to adhere to the usual
+conventions. The default sjeng.rc is installed in /etc/sjeng.rc, the
+opening books are in /usr/share/games/sjeng. When sjeng is started for
+the first time, a subdirectory .sjeng is created in the user's home
+directory if it is not already present. If this directory contains a
+readable file named sjeng.rc, it will be used instead of the system
+default. Furthermore, learning files will be placed in .sjeng.
+
+This version of sjeng does not read or write any files (book,
+learning) in the current working directory, as opposed to the upstream
+version. (Except for the case, where your working directory is
+~/.sjeng or /usr/share/games/sjeng, of course...)
+
+Lukas Geyer <lukas@debian.org>
--- /dev/null
+.\" Hey, EMACS: -*- nroff -*-
+.TH SJENG 6 "May 28, 2002"
+.SH NAME
+sjeng \- Chess program which supports several variants
+.SH SYNOPSIS
+.B sjeng
+.SH DESCRIPTION
+Documentation for sjeng is available in /usr/share/doc/sjeng*/README.
+It is strongly recommended that you use sjeng in combination with some
+interface like xboard or eboard. Please read the documentation of
+xboard and eboard to find out how to use other chess engines.
+.PP
+There are no command line options for sjeng, but sjeng uses a
+configuration file, by default /etc/sjeng.rc. If present, the file
+~/.sjeng/sjeng.rc in the user's home directory will be read instead of
+the system default. A well-documented example configuration can be
+found in /usr/share/doc/sjeng*/examples/.
+.PP
+This manual page was written for the Debian distribution because the
+original program does not have a manual page, and was also adopted by
+Mandriva package.
+.SH AUTHOR
+Sjeng was written by Gian-Carlo Pascutto <gcp@sjeng.org>, based on
+work done by Adrien Regimbald <adrien@gpu.srv.ualberta.ca>.
+.PP
+This manual page was written by Lukas Geyer
+<lukas@debian.org>, for the Debian GNU/Linux system (but may
+be used by others).
--- /dev/null
+Summary: Chess program that plays many variants
+Name: Sjeng-Free
+Version: 11.2
+Release: 1
+License: GPL v2
+Group: Applications/Games/Boards
+Source0: http://www.sjeng.org/ftp/%{name}-%{version}.tar.gz
+# Source0-md5: 6561e740b7af703c16701304697d2870
+Source1: %{name}.6
+Source2: %{name}-README
+Patch0: %{name}-cleanup.patch.bz2
+Patch1: %{name}-FHS.patch.bz2
+URL: http://sjeng.org/
+BuildRequires: automake
+BuildRequires: gdbm-devel
+Provides: chess_backend
+Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sjeng is a chess program that plays normal chess and many variants
+like crazyhouse, bughouse, suicide (aka giveaway or anti-chess) and
+losers. It can also play variants which have the same rules as normal
+chess, but a different starting position. It uses the XBoard/WinBoard
+interface by Tim Mann, so it can be used with xboard or eboard. It is
+also capable of playing on internet chess servers.
+
+%prep
+%setup -q
+%patch0 -p1 -b .cleanup
+%patch1 -p1 -b .fhs
+cp %{SOURCE2} README.debian
+
+# (Abel) supress annoying rpmlint warning message
+%{__perl} -pi -e 's/\r//g' [[:upper:]][[:upper:]]* ChangeLog
+
+%build
+autoreconf --force --install
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d ${RPM_BUILD_ROOT}{%{_datadir}/sjeng,%{_sysconfdir},%{_mandir}/man6}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install sjeng.rc ${RPM_BUILD_ROOT}%{_sysconfdir}
+install books/*.opn ${RPM_BUILD_ROOT}%{_datadir}/sjeng
+install %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man6/sjeng.6
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BUGS ChangeLog NEWS README* THANKS tests/*.epd
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sjeng.rc
+%{_bindir}/*
+%dir %{_datadir}/sjeng
+%{_datadir}/sjeng/*.opn
+%{_mandir}/man6/*.6*