############################################################### # # Spec file for package gnubg (Version 0.9.0). # # Copyright (c) 2003 Achim Mueller, Germany. # Updated by Christopher Hofmann in 2010 # 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 Summary: Plays and analyzes backgammon games and matches on a world class level Version: 0.9.0 Release: 0 Source: %{name}-%{version}-1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.gnubg.org BuildRequires: bison flex python-devel glibc-devel glib2-devel libxml2-devel BuildRequires: freetype2-devel libpng-devel gtk2-devel gtkglext-devel BuildRequires: libesd-devel sqlite3-devel %if 0%{?suse_version} > 1120 BuildRequires: libpng-devel >= 1.4 %else BuildRequires: libpng-devel %endif %if 0%{?suse_version} BuildRequires: update-desktop-files %endif AutoReqProv: on Patch0: gnubgmodule_bufferoverflow.patch Patch1: configure.in_libpngversion.patch Patch2: export.c_libpng14.patch %description Program for playing and analysing backgammon positions, games and matches. It is based on a neural network. It currently plays at about the level of a championship flight tournament player. Depending on its parameters and its luck in recent games, it rates from around 1900 to 2000 on FIBS, the First Internet Backgammon Server -- at its strongest, it ranks in the top 5 of over 6000 rated players there and is gradually improving. %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 -q -n gnubg %patch0 -p1 %if 0%{?suse_version} > 1120 %patch1 %patch2 %endif %build autoreconf -fi export SUSE_ASNEEDED=0 %configure make %{?_smp_mflags} %install %makeinstall %if 0%{?suse_version} %suse_update_desktop_file -c %name "GNU Backgammon" "Backgammon Board Game" "%name -w" /usr/share/%name/%name.png "Game;BoardGame;" %endif %find_lang %{name} %files -f %{name}.lang %defattr(-,root,root) %doc ABOUT-NLS AUTHORS CODING COPYING NEWS README TODO %{_bindir}/* %{_mandir}/man?/%{name}* %docdir /usr/share/gnubg/doc %if 0%{?suse_version} /usr/share/applications/gnubg.desktop %endif /usr/share/gnubg %exclude /usr/share/gnubg/*.bd %exclude /usr/share/gnubg/sounds %files databases %defattr(-,root,root) /usr/share/gnubg/*.bd %files sounds %defattr(-,root,root) /usr/share/gnubg/sounds %changelog -n gnubg