2024-01-05 23:16:45 +01:00
|
|
|
%define book_version 1.01
|
|
|
|
Name: gnuchess
|
2024-01-05 23:16:50 +01:00
|
|
|
Version: 6.2.3
|
2024-01-05 23:16:45 +01:00
|
|
|
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
|
2024-01-05 23:16:48 +01:00
|
|
|
%dir %{_datadir}/gnuchess
|
2024-01-05 23:16:45 +01:00
|
|
|
%{_datadir}/gnuchess/smallbook.bin
|
|
|
|
%{_datadir}/gnuchess/gnuchess.ini
|
2024-01-05 23:16:48 +01:00
|
|
|
%{_datadir}/games/plugins/logos/gnuchess.png
|
|
|
|
%{_datadir}/games/plugins/xboard/gnuchess.eng
|
2024-01-05 23:16:45 +01:00
|
|
|
%{_datadir}/games/gnuchess/book.pgn
|
|
|
|
%{_infodir}/gnuchess.info*
|
2024-01-05 23:16:48 +01:00
|
|
|
%{_mandir}/man1/gnuchess.1*
|
2024-01-05 23:16:45 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
# ChangeLog INSTALL NEWS README TODO
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:16:50 +01:00
|
|
|
* Thu Sep 22 2016 Automatic Build System <autodist@mambasoft.it> 6.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:16:49 +01:00
|
|
|
* Mon Oct 19 2015 Automatic Build System <autodist@mambasoft.it> 6.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:16:48 +01:00
|
|
|
* Fri Jan 16 2015 Automatic Build System <autodist@mambasoft.it> 6.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:16:46 +01:00
|
|
|
* Mon Aug 04 2014 Automatic Build System <autodist@mambasoft.it> 6.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:16:45 +01:00
|
|
|
* 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
|