Christopher Hofmann
08dda173bc
OBS-URL: https://build.opensuse.org/package/show/games/gnubg?expand=0&rev=6
154 lines
4.3 KiB
RPMSpec
154 lines
4.3 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
|
|
%define timestamp 20120711
|
|
Version: 0.9.0.99_%{timestamp}
|
|
Release: 0
|
|
License: GPL-3.0
|
|
Summary: Plays and analyzes backgammon games and matches on a world class level
|
|
Url: http://www.gnubg.org
|
|
Group: Amusements/Games/Board/Other
|
|
Source: %{name}-source-SNAPSHOT-%{timestamp}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
# PATCH-FIX-UPSTREAM docdir.patch cwh@suse.de -- install documentation to a LSB conform place
|
|
Patch0: docdir.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: freetype2-devel
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: gtkglext-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: python-devel
|
|
BuildRequires: readline-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 = %{version}
|
|
Recommends: gnubg-sounds = %{version}
|
|
Recommends: gnubg-doc = %{version}
|
|
BuildRequires: libesd-devel
|
|
BuildRequires: sqlite3-devel
|
|
%endif
|
|
%if 0%{?fedora}
|
|
BuildRequires: esound-devel
|
|
BuildRequires: sqlite-devel
|
|
%endif
|
|
|
|
%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: Bearoff databases for gnubg
|
|
Group: Amusements/Games/Board/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description databases
|
|
Precalculated GNU Backgammon bearoff databases - its intelligence. If you prefer
|
|
a stronger or weaker opponent calculate you own with tweaked parameters
|
|
according to the documentation.
|
|
|
|
%package sounds
|
|
Summary: Sounds for gnubg
|
|
Group: Amusements/Games/Board/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description sounds
|
|
Sounds for GNU Backgammon.
|
|
|
|
%package doc
|
|
Summary: Documentation for gnubg
|
|
Group: Amusements/Games/Board/Other
|
|
|
|
%description doc
|
|
Manual for GNU Backgammon.
|
|
|
|
%prep
|
|
%setup -q -n gnubg
|
|
%patch0 -p0
|
|
|
|
%build
|
|
autoreconf -fi
|
|
#export SUSE_ASNEEDED=0
|
|
%configure --docdir=%{_docdir}/%{name}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
DOC="ABOUT-NLS CODING COPYING NEWS README TODO"
|
|
#for FILE in $DOC ; do
|
|
install -m 0644 $DOC %{buildroot}/%{_docdir}/%{name}/
|
|
#done
|
|
|
|
%if 0%{?suse_version}
|
|
%suse_update_desktop_file -i %{name}
|
|
%endif
|
|
%find_lang %{name}
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_mandir}/man?/%{name}*
|
|
%if 0%{?suse_version}
|
|
%{_datadir}/applications/gnubg.desktop
|
|
%endif
|
|
%{_datadir}/icons/hicolor/*/apps/gnubg.png
|
|
%{_datadir}/gnubg
|
|
%exclude %{_datadir}/gnubg/*.bd
|
|
%exclude %{_datadir}/gnubg/sounds
|
|
%doc %{_docdir}/%{name}
|
|
%exclude %{_docdir}/%{name}/images
|
|
%exclude %{_docdir}/%{name}/gnubg.html
|
|
%exclude %{_docdir}/%{name}/allabout.html
|
|
|
|
|
|
%files databases
|
|
%defattr(-,root,root)
|
|
%{_datadir}/gnubg/*.bd
|
|
|
|
%files sounds
|
|
%defattr(-,root,root)
|
|
%{_datadir}/gnubg/sounds
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc %{_docdir}/%{name}/images
|
|
%doc %{_docdir}/%{name}/gnubg.html
|
|
%doc %{_docdir}/%{name}/allabout.html
|
|
|
|
%changelog
|