[packages/teg] Rel 6; fix build
arekm
arekm at pld-linux.org
Mon Aug 25 20:12:56 CEST 2025
commit bf872839e9600a71bd243ef0f9047bc592ce91ad
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Aug 25 20:12:52 2025 +0200
Rel 6; fix build
build.patch | 22 ++++++++++++++++++++++
teg-desktop.patch | 10 ++++++----
teg.spec | 4 +++-
3 files changed, 31 insertions(+), 5 deletions(-)
---
diff --git a/teg.spec b/teg.spec
index 754b109..081be58 100644
--- a/teg.spec
+++ b/teg.spec
@@ -2,12 +2,13 @@ Summary: Risk clone
Summary(pl.UTF-8): Klon Ryzyka
Name: teg
Version: 0.11.2
-Release: 5
+Release: 6
License: GPL
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/teg/%{name}-%{version}.tar.bz2
# Source0-md5: 880c18eb586c4642fe14e6b41e8a642f
Patch0: %{name}-desktop.patch
+Patch1: build.patch
URL: http://teg.sourceforge.net/
BuildRequires: automake
BuildRequires: glib2-devel >= 2.0.0
@@ -36,6 +37,7 @@ turowej dla wielu graczy. Niektóre zasady są inne.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
cp -f /usr/share/automake/config.* .
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..1aca213
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,22 @@
+--- teg-0.11.2/server/main.c~ 2004-08-04 15:03:07.000000000 +0200
++++ teg-0.11.2/server/main.c 2025-08-25 20:03:55.632664295 +0200
+@@ -194,7 +194,7 @@ void main_loop( void )
+ {
+ int listenfd,fd, nready;
+ struct sockaddr client;
+- ssize_t client_len;
++ socklen_t client_len;
+ fd_set read_set;
+ struct timeval timeout, timeofday_old, timeofday_new;
+ struct timezone tz;
+--- teg-0.11.2/client/gui-gnome/priv.c~ 2002-10-14 05:26:36.000000000 +0200
++++ teg-0.11.2/client/gui-gnome/priv.c 2025-08-25 20:09:26.994623806 +0200
+@@ -30,7 +30,7 @@
+ #include "interface.h"
+ #include "priv.h"
+
+-struct _gui_private gui_private;
++extern struct _gui_private gui_private;
+
+ /* Prefs */
+ GConfClient *g_conf_client = NULL;
diff --git a/teg-desktop.patch b/teg-desktop.patch
index 1fb6b2c..09a28c7 100644
--- a/teg-desktop.patch
+++ b/teg-desktop.patch
@@ -1,6 +1,7 @@
---- teg-0.11.0/client/gui-gnome/teg.desktop.orig 2002-05-11 20:58:57.000000000 +0200
-+++ teg-0.11.0/client/gui-gnome/teg.desktop 2004-04-08 20:37:56.074717944 +0200
-@@ -1,11 +1,16 @@
+diff -ur teg-0.11.2.org/client/gui-gnome/teg.desktop teg-0.11.2/client/gui-gnome/teg.desktop
+--- teg-0.11.2.org/client/gui-gnome/teg.desktop 2007-03-13 19:03:56.000000000 +0100
++++ teg-0.11.2/client/gui-gnome/teg.desktop 2025-08-25 20:01:22.345091160 +0200
+@@ -1,12 +1,17 @@
[Desktop Entry]
+Encoding=UTF-8
Name=T.E.G. client
@@ -17,5 +18,6 @@
-Terminal=0
+Terminal=false
Type=Application
-+Categories=GTK;GNOME;Game;StrategyGame;
+ Categories=GTK;GNOME;Game;StrategyGame;
+# vi: encoding=utf-8
++Categories=GTK;GNOME;Game;StrategyGame;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/teg.git/commitdiff/bf872839e9600a71bd243ef0f9047bc592ce91ad
More information about the pld-cvs-commit
mailing list