gnuchess/gnuchess.spec

99 lines
2.7 KiB
RPMSpec
Raw Normal View History

%define book_version 1.01
Name: gnuchess
Version: 6.1.2
Release: 1mamba
Summary: GNU Chess lets most modern computers play a full game of chess
Group: Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnu.org/software/chess/
Source: http://ftp.gnu.org/pub/gnu/chess/%{name}-%{version}.tar.gz
Source1: http://ftp.gnu.org/pub/gnu/chess/book_%{book_version}.pgn.gz
Patch0: %{name}-5.07-input_thread.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libreadline-devel
## AUTOBUILDREQ-END
Requires(post): %{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
GNU Chess lets most modern computers play a full game of chess.
It has a plain terminal interface but supports visual interfaces such as X-Windows "xboard".
%prep
%setup -q
#%patch0
gunzip -c %{SOURCE1} > book.pgn
%build
%configure
%make
# compile book
./src/gnuchess xboard << EOF
book add book.pgn
quit
_EOF
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
install -D book.pgn %{buildroot}%{_datadir}/games/gnuchess/book.pgn
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
%install_info %{name}.info
%preun
%uninstall_info %{name}.info
exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/gnuchess
%{_bindir}/gnuchessu
%{_bindir}/gnuchessx
%{_datadir}/gnuchess/smallbook.bin
%{_datadir}/gnuchess/gnuchess.ini
%{_datadir}/games/gnuchess/book.pgn
%{_infodir}/gnuchess.info*
%doc AUTHORS COPYING
# ChangeLog INSTALL NEWS README TODO
%changelog
* Mon Aug 04 2014 Automatic Build System <autodist@mambasoft.it> 6.1.2-1mamba
- automatic version update by autodist
* Tue Nov 26 2013 Automatic Build System <autodist@mambasoft.it> 6.1.1-1mamba
- automatic version update by autodist
* Tue Nov 12 2013 Automatic Build System <autodist@mambasoft.it> 6.1.0-1mamba
- automatic version update by autodist
* Mon Oct 21 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.3-2mamba
- fixed the opening book generation
* Thu Mar 14 2013 Automatic Build System <autodist@mambasoft.it> 6.0.3-1mamba
- automatic version update by autodist
* Wed Jun 13 2012 Automatic Build System <autodist@mambasoft.it> 6.0.2-1mamba
- update to 6.0.2
* Wed Jun 15 2011 Automatic Build System <autodist@mambasoft.it> 6.0.0-1mamba
- automatic update by autodist
* Wed Apr 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.07-2mamba
- specfile updates
- added opening book in /usr/share/gnuchess
* Thu Nov 25 2004 Davide Madrisan <davide.madrisan@qilinux.it> 5.07-1qilnx
- package created by autospec