[packages/dreamchess] Rel 3

arekm arekm at pld-linux.org
Thu May 21 15:21:29 CEST 2026


commit 08a769d133fc6792e3b772bda8812f25318fc935
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:21:04 2026 +0200

    Rel 3

 dreamchess-c99-prototype.patch   | 11 +++++++++++
 dreamchess-format-security.patch | 11 +++++++++++
 dreamchess-link-libm.patch       | 10 ++++++++++
 dreamchess.spec                  | 13 ++++++++++---
 4 files changed, 42 insertions(+), 3 deletions(-)
---
diff --git a/dreamchess.spec b/dreamchess.spec
index d31c766..0dd4665 100644
--- a/dreamchess.spec
+++ b/dreamchess.spec
@@ -2,13 +2,16 @@ Summary:	3D chess game for X-Window
 Summary(pl.UTF-8):	Trójwymiarowe szachy dla X-Window
 Name:		dreamchess
 Version:	0.2.0
-Release:	2
+Release:	3
 License:	GPL v3+
 Group:		X11/Applications/Games
-Source0:	http://download.berlios.de/dreamchess/%{name}-%{version}.tar.gz
+Source0:	https://github.com/dreamchess/dreamchess/releases/download/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	0e837e14819c1e7d0232c6beb4d5c185
 Source1:	%{name}.desktop
-URL:		http://www.dreamchess.org/
+Patch0:		%{name}-c99-prototype.patch
+Patch1:		%{name}-format-security.patch
+Patch2:		%{name}-link-libm.patch
+URL:		https://www.dreamchess.org/
 BuildRequires:	SDL-devel
 BuildRequires:	SDL_image-devel
 BuildRequires:	SDL_mixer-devel
@@ -34,12 +37,16 @@ od klasycznej drewnianej planszy i standardowych figur.
 
 %prep
 %setup -q
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+CPPFLAGS="%{rpmcppflags}" \
 %configure
 %{__make}
 
diff --git a/dreamchess-c99-prototype.patch b/dreamchess-c99-prototype.patch
new file mode 100644
index 0000000..bf185ae
--- /dev/null
+++ b/dreamchess-c99-prototype.patch
@@ -0,0 +1,11 @@
+--- dreamchess-0.2.0/src/dreamer/repetition.h.orig
++++ dreamchess-0.2.0/src/dreamer/repetition.h
+@@ -30,7 +30,7 @@ int is_repetition(board_t *board, int pl
+
+ int is_draw(board_t *board);
+
+-void repetition_init();
++void repetition_init(board_t *board);
+
+ void repetition_exit();
+
diff --git a/dreamchess-format-security.patch b/dreamchess-format-security.patch
new file mode 100644
index 0000000..4a519d8
--- /dev/null
+++ b/dreamchess-format-security.patch
@@ -0,0 +1,11 @@
+--- dreamchess-0.2.0/src/ui.c.orig
++++ dreamchess-0.2.0/src/ui.c
+@@ -60,7 +60,7 @@ list_ui_drivers()
+     {
+         if (i > 0)
+             printf(", ");
+-        printf(ui_driver[i]->name);
++        printf("%s", ui_driver[i]->name);
+         i++;
+     }
+     printf("\n");
diff --git a/dreamchess-link-libm.patch b/dreamchess-link-libm.patch
new file mode 100644
index 0000000..69a1c30
--- /dev/null
+++ b/dreamchess-link-libm.patch
@@ -0,0 +1,10 @@
+--- dreamchess-0.2.0/configure.ac.orig
++++ dreamchess-0.2.0/configure.ac
+@@ -295,6 +295,7 @@ AC_CHECK_HEADER([mxml.h], [], [AC_MSG_ER
+ AC_CHECK_LIB(mxml, mxmlLoadFile, [], [AC_MSG_ERROR([Cannot find Mini-XML library.])])
+
+ AM_CONDITIONAL(BEOS_RC, test x"$beos_rc" = x"yes")
++DREAMCHESS_LIBS="${DREAMCHESS_LIBS} ${M_LIBS}"
+ AC_SUBST(DREAMCHESS_LIBS)
+ AC_SUBST(DREAMER_LIBS)
+ AC_SUBST(MINIZIP_LIB)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dreamchess.git/commitdiff/08a769d133fc6792e3b772bda8812f25318fc935



More information about the pld-cvs-commit mailing list