gnuchess/gnuchess.spec

128 lines
3.8 KiB
RPMSpec

%define book_version 1.01
Name: gnuchess
Version: 6.2.8
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: https://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: libgcc
BuildRequires: libncurses-devel
BuildRequires: libreadline-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires(post): %{__install_info}
%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
%dir %{_datadir}/gnuchess
%{_datadir}/gnuchess/smallbook.bin
%{_datadir}/gnuchess/gnuchess.ini
%{_datadir}/games/plugins/logos/gnuchess.png
%{_datadir}/games/plugins/xboard/gnuchess.eng
%{_datadir}/games/gnuchess/book.pgn
%{_infodir}/gnuchess.info*
%{_mandir}/man1/gnuchess.1*
%doc AUTHORS COPYING
# ChangeLog INSTALL NEWS README TODO
%changelog
* Mon May 10 2021 Automatic Build System <autodist@mambasoft.it> 6.2.8-1mamba
- automatic version update by autodist
* Mon Jun 08 2020 Automatic Build System <autodist@mambasoft.it> 6.2.7-1mamba
- automatic version update by autodist
* Sun Apr 19 2020 Automatic Build System <autodist@mambasoft.it> 6.2.6-1mamba
- automatic update by autodist
* Mon Aug 07 2017 Automatic Build System <autodist@mambasoft.it> 6.2.5-1mamba
- automatic version update by autodist
* Sat Oct 29 2016 Automatic Build System <autodist@mambasoft.it> 6.2.4-1mamba
- automatic version update by autodist
* Thu Sep 22 2016 Automatic Build System <autodist@mambasoft.it> 6.2.3-1mamba
- automatic version update by autodist
* Mon Oct 19 2015 Automatic Build System <autodist@mambasoft.it> 6.2.2-1mamba
- automatic version update by autodist
* Fri Jan 16 2015 Automatic Build System <autodist@mambasoft.it> 6.2.1-1mamba
- automatic version update by autodist
* 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