From c38974600bdc01f4ecd64f51e500a1550bfecc1da53d9c497eb9c6aef1c7ad16 Mon Sep 17 00:00:00 2001 From: Christopher Hofmann Date: Mon, 19 Aug 2013 08:41:32 +0000 Subject: [PATCH 1/3] - Update to 1.02.000 - Improved performance (speed) - Support for AVX(SIMD) - Better Python support - Stronger neural network - Even/Odd ply effect reduced - Some analysis options have been simplified - Various miscellaneous bug fixes OBS-URL: https://build.opensuse.org/package/show/games/gnubg?expand=0&rev=14 --- gnubg-release-1.02.000-sources.tar.bz2 | 3 +++ gnubg-source-SNAPSHOT-20130725.tar.bz2 | 3 --- gnubg.changes | 12 ++++++++++++ gnubg.spec | 19 ++++++++----------- 4 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 gnubg-release-1.02.000-sources.tar.bz2 delete mode 100644 gnubg-source-SNAPSHOT-20130725.tar.bz2 diff --git a/gnubg-release-1.02.000-sources.tar.bz2 b/gnubg-release-1.02.000-sources.tar.bz2 new file mode 100644 index 0000000..00461af --- /dev/null +++ b/gnubg-release-1.02.000-sources.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41a31ffa4e767aeb0e42ab4a7f83a4b08016db7f77152fa64cca6667576c7ad7 +size 14199949 diff --git a/gnubg-source-SNAPSHOT-20130725.tar.bz2 b/gnubg-source-SNAPSHOT-20130725.tar.bz2 deleted file mode 100644 index 12104bf..0000000 --- a/gnubg-source-SNAPSHOT-20130725.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5cf34da617e37f09a7c76bcf85aacbd91d9393e06b562080a2ea40126837e25a -size 13436624 diff --git a/gnubg.changes b/gnubg.changes index 729207f..bcc22cf 100644 --- a/gnubg.changes +++ b/gnubg.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Aug 19 07:50:13 UTC 2013 - cwh@suse.com + +- Update to 1.02.000 +- Improved performance (speed) +- Support for AVX(SIMD) +- Better Python support +- Stronger neural network +- Even/Odd ply effect reduced +- Some analysis options have been simplified +- Various miscellaneous bug fixes + ------------------------------------------------------------------- Mon Jul 29 13:22:43 UTC 2013 - cwh@suse.com diff --git a/gnubg.spec b/gnubg.spec index f7aca7c..8b38799 100644 --- a/gnubg.spec +++ b/gnubg.spec @@ -19,14 +19,13 @@ Name: gnubg -%define timestamp 20130725 -Version: 0.9.0.99_%{timestamp} +Version: 1.02.000 Release: 0 Summary: Plays and analyzes backgammon games and matches on a world class level License: GPL-3.0+ Group: Amusements/Games/Board/Other Url: http://www.gnubg.org -Source: %{name}-source-SNAPSHOT-%{timestamp}.tar.bz2 +Source: http://gnubg.org/media/sources/gnubg-release-1.02.000-sources.tar.bz2 Source1: %{name}.desktop # PATCH-FIX-UPSTREAM docdir.patch cwh@suse.de -- install documentation to a LSB conform place Patch0: docdir.patch @@ -91,7 +90,7 @@ Group: Amusements/Games/Board/Other Requires: %{name} = %{version} %description sounds -Sounds for GNU Backgammon. +Sounds for GNU Backgammon. See description of gnubg for more details. %package doc Summary: Documentation for gnubg @@ -99,25 +98,22 @@ License: GFDL-1.3 Group: Amusements/Games/Board/Other %description doc -Manual for GNU Backgammon. +Manual for GNU Backgammon. See description of gnubg for more details. %prep -%setup -q -c gnubg +%setup -q 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 +DOC="ABOUT-NLS COPYING NEWS README TODO" +install -m 0644 $DOC %{buildroot}/%{_docdir}/%{name}/ %if 0%{?suse_version} %suse_update_desktop_file -i %{name} @@ -133,6 +129,7 @@ DOC="ABOUT-NLS CODING COPYING NEWS README TODO" %endif %{_datadir}/icons/hicolor/*/apps/gnubg.png %{_datadir}/gnubg +%attr(755, -, root) %{_datadir}/gnubg/scripts/query_player.sh %exclude %{_datadir}/gnubg/*.bd %exclude %{_datadir}/gnubg/sounds %doc %{_docdir}/%{name} From 5a55a7897547f3599551a69f3c73b4bbaf461970225691c8c2cd5c92ba0332d9 Mon Sep 17 00:00:00 2001 From: Christopher Hofmann Date: Tue, 20 Aug 2013 08:19:24 +0000 Subject: [PATCH 2/3] - (Re)Enabled 3d board by fixing GLU linking (oS!=12.3) OBS-URL: https://build.opensuse.org/package/show/games/gnubg?expand=0&rev=15 --- glu.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++++ gnubg.changes | 5 +++++ gnubg.spec | 11 +++++++---- 3 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 glu.patch diff --git a/glu.patch b/glu.patch new file mode 100644 index 0000000..918ba0f --- /dev/null +++ b/glu.patch @@ -0,0 +1,47 @@ +Index: gnubg-1.02.000/Makefile.am +=================================================================== +--- gnubg-1.02.000.orig/Makefile.am ++++ gnubg-1.02.000/Makefile.am +@@ -161,7 +161,7 @@ if USE_PYTHON + gnubg_LDADD += @PYTHON_LIBS@ + endif + if USE_BOARD3D +-gnubg_LDADD += -L$(srcdir)/board3d board3d/libboard3d.la @GTKGLEXT_LIBS@ ++gnubg_LDADD += -L$(srcdir)/board3d board3d/libboard3d.la $(GTKGLEXT_LIBS) $(GLU_LIBS) + endif + + if WIN32 +Index: gnubg-1.02.000/board3d/Makefile.am +=================================================================== +--- gnubg-1.02.000.orig/board3d/Makefile.am ++++ gnubg-1.02.000/board3d/Makefile.am +@@ -7,7 +7,7 @@ AM_CPPFLAGS = -I$(srcdir)/.. $(COMMON_IN + -I$(srcdir)/../lib \ + -DLOCALEDIR=\"$(localedir)\" \ + -DAC_DATADIR='"$(datadir)"' -DAC_PKGDATADIR=='"$(datadir)/gnubg"'\ +- @FREETYPE2_CFLAGS@ @GTKGLEXT_CFLAGS@ ++ @FREETYPE2_CFLAGS@ @GTKGLEXT_CFLAGS@ $(GLU_CFLAGS) + + if USE_BOARD3D + noinst_LTLIBRARIES = libboard3d.la +Index: gnubg-1.02.000/configure.ac +=================================================================== +--- gnubg-1.02.000.orig/configure.ac ++++ gnubg-1.02.000/configure.ac +@@ -130,6 +130,7 @@ PKG_CHECK_MODULES(LIBPNG, [libpng >= 1.2 + PKG_CHECK_MODULES(CAIRO, [cairo >= 1.2], have_cairo="yes", [AC_MSG_WARN([no cairo support])]) + PKG_CHECK_MODULES(PANGOCAIRO, [pangocairo >= 1.0], have_pangocairo="yes", [AC_MSG_WARN([no pangocairo support])]) + PKG_CHECK_MODULES(SQLITE, [sqlite3], have_sqlite="yes", AC_MSG_WARN([no sqlite support])) ++PKG_CHECK_MODULES(GLU, [glu], have_glu="yes", AC_MSG_WARN([no glu support])) + + if test "x$win32" != "xyes"; then + PKG_CHECK_MODULES(CANBERRA, [libcanberra-gtk], have_canberra="yes", AC_MSG_WARN([no libcanberra-gtk support])) +@@ -302,7 +303,7 @@ fi + + AC_CHECK_HEADERS(GL/glx.h) + +-if test "$with_board3d" != "no" && test "$with_gtk" != "no" && test "x$have_gtk" = "xyes" && test "x$have_gtkglext" = "xyes"; then ++if test "$with_board3d" != "no" && test "$with_gtk" != "no" && test "x$have_gtk" = "xyes" && test "x$have_gtkglext" = "xyes" -a "x$have_glu" = "xyes"; then + AC_DEFINE(USE_BOARD3D,1, [Define if you want to use the 3d boards]) + no_board3d="no" + fi diff --git a/gnubg.changes b/gnubg.changes index bcc22cf..6c731eb 100644 --- a/gnubg.changes +++ b/gnubg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 20 08:16:35 UTC 2013 - cwh@suse.com + +- (Re)Enabled 3d board by fixing GLU linking (oS!=12.3) + ------------------------------------------------------------------- Mon Aug 19 07:50:13 UTC 2013 - cwh@suse.com diff --git a/gnubg.spec b/gnubg.spec index 8b38799..9470692 100644 --- a/gnubg.spec +++ b/gnubg.spec @@ -29,22 +29,25 @@ Source: http://gnubg.org/media/sources/gnubg-release-1.02.000-sources.ta Source1: %{name}.desktop # PATCH-FIX-UPSTREAM docdir.patch cwh@suse.de -- install documentation to a LSB conform place Patch0: docdir.patch +Patch1: glu.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: flex BuildRequires: freetype2-devel BuildRequires: glibc-devel -%if 0%{?suse_version} <= 1220 +%if 0%{?suse_version} != 1230 +BuildRequires: glu-devel BuildRequires: gtkglext-devel %endif +BuildRequires: gmp-devel +BuildRequires: libcanberra-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 @@ -56,11 +59,9 @@ 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 @@ -103,9 +104,11 @@ Manual for GNU Backgammon. See description of gnubg for more details. %prep %setup -q gnubg %patch0 -p0 +%patch1 -p1 %build autoreconf -fi +export SUSE_ASNEEDED=1 %configure --docdir=%{_docdir}/%{name} make %{?_smp_mflags} From 8a5f1ce0a5bccb152fd99e202c09b418cd811258f82c668339e0e1a26a134ac0 Mon Sep 17 00:00:00 2001 From: Christopher Hofmann Date: Wed, 18 Sep 2013 08:29:23 +0000 Subject: [PATCH 3/3] - Leaving tarball as gz OBS-URL: https://build.opensuse.org/package/show/games/gnubg?expand=0&rev=16 --- gnubg-release-1.02.000-sources.tar.bz2 | 3 --- gnubg-release-1.02.000-sources.tar.gz | 3 +++ gnubg.changes | 5 +++++ gnubg.spec | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 gnubg-release-1.02.000-sources.tar.bz2 create mode 100644 gnubg-release-1.02.000-sources.tar.gz diff --git a/gnubg-release-1.02.000-sources.tar.bz2 b/gnubg-release-1.02.000-sources.tar.bz2 deleted file mode 100644 index 00461af..0000000 --- a/gnubg-release-1.02.000-sources.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41a31ffa4e767aeb0e42ab4a7f83a4b08016db7f77152fa64cca6667576c7ad7 -size 14199949 diff --git a/gnubg-release-1.02.000-sources.tar.gz b/gnubg-release-1.02.000-sources.tar.gz new file mode 100644 index 0000000..8846a96 --- /dev/null +++ b/gnubg-release-1.02.000-sources.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ece7fc02481f8e6c08869306f1cf52cad9ec5ddd675de67782cf028a6dcb504 +size 14985346 diff --git a/gnubg.changes b/gnubg.changes index 6c731eb..5396cd4 100644 --- a/gnubg.changes +++ b/gnubg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 18 08:28:30 UTC 2013 - cwh@suse.com + +- Leaving tarball as gz + ------------------------------------------------------------------- Tue Aug 20 08:16:35 UTC 2013 - cwh@suse.com diff --git a/gnubg.spec b/gnubg.spec index 9470692..06d88df 100644 --- a/gnubg.spec +++ b/gnubg.spec @@ -25,7 +25,7 @@ Summary: Plays and analyzes backgammon games and matches on a world class License: GPL-3.0+ Group: Amusements/Games/Board/Other Url: http://www.gnubg.org -Source: http://gnubg.org/media/sources/gnubg-release-1.02.000-sources.tar.bz2 +Source: http://gnubg.org/media/sources/gnubg-release-1.02.000-sources.tar.gz Source1: %{name}.desktop # PATCH-FIX-UPSTREAM docdir.patch cwh@suse.de -- install documentation to a LSB conform place Patch0: docdir.patch