forked from pool/gnubg
Accepting request 122902 from home:worldcitizen:branches:games
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
This commit is contained in:
parent
7ed0be104e
commit
f3bc4458e1
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 30 12:32:15 UTC 2012 - joop.boonen@opensuse.org
|
||||
|
||||
- Added missing Build requires automake and libtool
|
||||
- Cleaned the spec file up
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 2 13:18:26 UTC 2011 - jengelh@medozas.de
|
||||
|
||||
|
105
gnubg.spec
105
gnubg.spec
@ -1,60 +1,75 @@
|
||||
###############################################################
|
||||
#
|
||||
# Spec file for package gnubg (Version 0.9.0).
|
||||
# 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
|
||||
# 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
|
||||
#
|
||||
###############################################################
|
||||
# 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.
|
||||
|
||||
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
|
||||
# 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
|
||||
BuildRequires: libpng-devel >= 1.4
|
||||
%else
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libpng-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: update-desktop-files
|
||||
Recommends: gnubg-databases
|
||||
Recommends: gnubg-sounds
|
||||
BuildRequires: update-desktop-files
|
||||
Recommends: gnubg-databases
|
||||
Recommends: gnubg-sounds
|
||||
%endif
|
||||
AutoReqProv: on
|
||||
Patch0: gnubgmodule_bufferoverflow.patch
|
||||
Patch1: configure.in_libpngversion.patch
|
||||
Patch2: export.c_libpng14.patch
|
||||
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
|
||||
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
|
||||
Requires: %{name}
|
||||
Group: Amusements/Games/Board/Other
|
||||
Summary: Sounds for gnubg
|
||||
Group: Amusements/Games/Board/Other
|
||||
Requires: %{name}
|
||||
|
||||
%description sounds
|
||||
This package contains the sounds for GNU Backgammon.
|
||||
@ -76,7 +91,7 @@ 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;"
|
||||
%suse_update_desktop_file -c %{name} "GNU Backgammon" "Backgammon Board Game" "%{name} -w" /usr/share/%{name}/%{name}.png "Game;BoardGame;"
|
||||
%endif
|
||||
%find_lang %{name}
|
||||
|
||||
@ -85,20 +100,20 @@ make %{?_smp_mflags}
|
||||
%doc ABOUT-NLS AUTHORS CODING COPYING NEWS README TODO
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man?/%{name}*
|
||||
%docdir /usr/share/gnubg/doc
|
||||
%docdir %{_datadir}/gnubg/doc
|
||||
%if 0%{?suse_version}
|
||||
/usr/share/applications/gnubg.desktop
|
||||
%{_datadir}/applications/gnubg.desktop
|
||||
%endif
|
||||
/usr/share/gnubg
|
||||
%exclude /usr/share/gnubg/*.bd
|
||||
%exclude /usr/share/gnubg/sounds
|
||||
%{_datadir}/gnubg
|
||||
%exclude %{_datadir}/gnubg/*.bd
|
||||
%exclude %{_datadir}/gnubg/sounds
|
||||
|
||||
%files databases
|
||||
%defattr(-,root,root)
|
||||
/usr/share/gnubg/*.bd
|
||||
%{_datadir}/gnubg/*.bd
|
||||
|
||||
%files sounds
|
||||
%defattr(-,root,root)
|
||||
/usr/share/gnubg/sounds
|
||||
%{_datadir}/gnubg/sounds
|
||||
|
||||
%changelog -n gnubg
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user