############################################################### # # Spec file for package gnubg (Version 0.14). # # Copyright (c) 2003 Achim Mueller, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # please send bugfixes or comments to info@gnubg.org # ############################################################### Name: gnubg License: GNU General Public License (GPL) - all versions Group: Amusements/Games/Board/Other Packager: Summary: A backgammon game and analyser Version: 0.14 Release: 7 Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.gnubg.org %define prefix /usr %description Authors: -------- GNU Backgammon (@gnubg{}) is software for playing and analysing backgammon positions, games and matches. It's based on a neural network. Although it already plays at a very high level, it's still work in progress. You may play GNU Backgammon using the command line or a graphical interface Authors: -------- Joseph Heled Oystein Johansen David Montgomery Jim Segrave Joern Thyssen Gary Wong %package databases Summary: Databases for gnubg Requires: %{name} Group: Amusements/Games/Board/Other %description databases This package contains the GNU Backgammon bearoff databases. %package sounds Summary: Sounds for gnubg Requires: %{name} Group: Amusements/Games/Board/Other %description sounds This package contains the sounds for GNU Backgammon. %prep %setup %build export CFLAGS="$RPM_OPT_FLAGS" #aclocal -I m4 #autoconf #automake --gnu Makefile ./configure --prefix=%{prefix} \ --with-python \ --infodir=${RPM_BUILD_ROOT}%{prefix}/share/info \ --mandir=${RPM_BUILD_ROOT}%{prefix}/share/man \ --without-gdbm \ --without-guile \ --with-board3d make %install [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; mkdir -p $RPM_BUILD_ROOT%{prefix} make prefix=$RPM_BUILD_ROOT%{prefix} install-strip # create this dir empty so we can own it mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/aclocal rm -f $RPM_BUILD_ROOT%{_infodir}/dir %post /sbin/install-info %{_infodir}/gnubg.info.gz %{_infodir}/dir %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/gnubg.info.gz %{_infodir}/dir fi %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) # %doc AUTHORS README COPYING ChangeLog %{prefix}/bin/* %{prefix}/share/info/* %{prefix}/share/gnubg/met/* %{prefix}/share/gnubg/scripts/* %{prefix}/share/gnubg/textures/* %{prefix}/share/gnubg/*.png %{prefix}/share/gnubg/boards.xml %{prefix}/share/gnubg/gnubg.* %{prefix}/share/gnubg/texinfo.dtd %{prefix}/share/gnubg/textures* %{prefix}/share/locale/*/*/* %{prefix}/share/man/*/* %files databases %{prefix}/share/gnubg/*.bd %files sounds %{prefix}/share/gnubg/sounds/* %changelog -n gnubg * Wed Dec 28 2004 - - new weights including pruning * Mon Oct 11 2004 - - fixed some minor bugs * Wed Sep 01 2004 - - new rpms with 3d enabled * Wed Nov 05 2003 - - made the spec suit to redhat and suse - disabled 3d (still problems with nvidia) - added gpg signature * Thu Oct 23 2003 - - disabled gdbm and guile - changed info- and manpath * Mon Oct 20 2003 - - divided into three packages (gnubg, databases, sounds) * Fri Oct 18 2003 - - initial package (Version 0.14)