f3bc4458e1
Added missing Build requires automake and libtool Cleaned the spec file up OBS-URL: https://build.opensuse.org/request/show/122902 OBS-URL: https://build.opensuse.org/package/show/games/gnubg?expand=0&rev=4
120 lines
3.5 KiB
RPMSpec
120 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package gnubg
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2003 Achim Mueller, Germany.
|
|
# Updated by Christopher Hofmann in 2010
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gnubg
|
|
Version: 0.9.0
|
|
Release: 0
|
|
Summary: Plays and analyzes backgammon games and matches on a world class level
|
|
License: GPL-1.0+
|
|
Group: Amusements/Games/Board/Other
|
|
Url: http://www.gnubg.org
|
|
Source: %{name}-%{version}-1.tar.gz
|
|
BuildRequires: automake
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: freetype2-devel
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: gtkglext-devel
|
|
BuildRequires: libesd-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: python-devel
|
|
BuildRequires: sqlite3-devel
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1120
|
|
BuildRequires: libpng-devel >= 1.4
|
|
%else
|
|
BuildRequires: libpng-devel
|
|
%endif
|
|
%if 0%{?suse_version}
|
|
BuildRequires: update-desktop-files
|
|
Recommends: gnubg-databases
|
|
Recommends: gnubg-sounds
|
|
%endif
|
|
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
|
|
Group: Amusements/Games/Board/Other
|
|
Requires: %{name}
|
|
|
|
%description databases
|
|
This package contains the GNU Backgammon bearoff databases.
|
|
|
|
%package sounds
|
|
Summary: Sounds for gnubg
|
|
Group: Amusements/Games/Board/Other
|
|
Requires: %{name}
|
|
|
|
%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 %{_datadir}/gnubg/doc
|
|
%if 0%{?suse_version}
|
|
%{_datadir}/applications/gnubg.desktop
|
|
%endif
|
|
%{_datadir}/gnubg
|
|
%exclude %{_datadir}/gnubg/*.bd
|
|
%exclude %{_datadir}/gnubg/sounds
|
|
|
|
%files databases
|
|
%defattr(-,root,root)
|
|
%{_datadir}/gnubg/*.bd
|
|
|
|
%files sounds
|
|
%defattr(-,root,root)
|
|
%{_datadir}/gnubg/sounds
|
|
|
|
%changelog
|