%define pname chess Name: emacs-%{pname} Summary: A client and library for playing Chess from Emacs Version: 2.0b5 Release: 8 License: GPL Group: Editors Source: %{pname}-%{version}.tar.bz2 Patch0: chess-2.0b5-texi.patch Url: http://www.newartisans.com/johnw/EmacsChess.html BuildRequires: emacs-bin BuildRequires: texinfo BuildArch: noarch %{expand:%%define emacs_version %(rpm -q emacs|sed 's/emacs-\([0-9].*\)-.*$/\1/')} %description Chess.el does not know how to play chess against you. While the library does know all legal moves, there is no "thinking" module. For this, you must download one of the publically available chess engines, such as gnuchess, crafty or phalanx. You will find all of these sufficiently challenging, I'm sure. Once they are installed, chess.el will use them, provided the locations of the binaries is on your PATH. %prep %setup -q -n %{pname}-%{version} %patch0 -p1 %build make clean %make %install mkdir -p %{buildroot}/%{_datadir}/emacs/site-lisp install *.el *.elc %{buildroot}/%{_datadir}/emacs/site-lisp install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d cp chess-auto.el %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{pname}-emacs.el %files %doc COPYING ChangeLog EPD.txt PGN.txt PLAN README TODO %{_datadir}/emacs/site-lisp/*.el %{_datadir}/emacs/site-lisp/*.elc %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{pname}-emacs.el