diff --git a/tuxmath-2.0.3-rename-blits-to-tmblits.patch b/tuxmath-2.0.3-rename-blits-to-tmblits.patch new file mode 100644 index 0000000..c5b5108 --- /dev/null +++ b/tuxmath-2.0.3-rename-blits-to-tmblits.patch @@ -0,0 +1,54 @@ +Bug-Debian: https://bugs.debian.org/986623 +Forwarded: no +Last-Update: 2021-04-20 + +--- tuxmath-2.0.3.orig/src/titlescreen.c ++++ tuxmath-2.0.3/src/titlescreen.c +@@ -55,7 +55,7 @@ struct blit { + SDL_Rect *srcrect; + SDL_Rect *dstrect; + unsigned char type; +-} blits[MAX_UPDATES]; ++} tmblits[MAX_UPDATES]; + + // Lessons available for play + char **lesson_list_titles = NULL; +@@ -1019,8 +1019,8 @@ void init_blits(void) { + int i; + + for (i = 0; i < MAX_UPDATES; ++i) { +- blits[i].srcrect = &srcupdate[i]; +- blits[i].dstrect = &dstupdate[i]; ++ tmblits[i].srcrect = &srcupdate[i]; ++ tmblits[i].dstrect = &dstupdate[i]; + } + } + +@@ -1032,14 +1032,14 @@ void update_screen(int *frame) { + + /* -- First erase everything we need to -- */ + for (i = 0; i < numupdates; i++) +- if (blits[i].type == 'E') +- SDL_LowerBlit(blits[i].src, blits[i].srcrect, screen, blits[i].dstrect); ++ if (tmblits[i].type == 'E') ++ SDL_LowerBlit(tmblits[i].src, tmblits[i].srcrect, screen, tmblits[i].dstrect); + // SNOW_erase(); + + /* -- then draw -- */ + for (i = 0; i < numupdates; i++) +- if (blits[i].type == 'D') +- SDL_BlitSurface(blits[i].src, blits[i].srcrect, screen, blits[i].dstrect); ++ if (tmblits[i].type == 'D') ++ SDL_BlitSurface(tmblits[i].src, tmblits[i].srcrect, screen, tmblits[i].dstrect); + // SNOW_draw(); + + /* -- update the screen only where we need to! -- */ +@@ -1067,7 +1067,7 @@ void add_rect(SDL_Rect* src, SDL_Rect* d + return; + } + +- update = &blits[numupdates++]; ++ update = &tmblits[numupdates++]; + + update->srcrect->x = src->x; + update->srcrect->y = src->y; diff --git a/tuxmath-2.0.3-src-menu_lan.c-Remove-unused-duplicate-lan_player_in.patch b/tuxmath-2.0.3-src-menu_lan.c-Remove-unused-duplicate-lan_player_in.patch new file mode 100644 index 0000000..ee192e9 --- /dev/null +++ b/tuxmath-2.0.3-src-menu_lan.c-Remove-unused-duplicate-lan_player_in.patch @@ -0,0 +1,26 @@ +From c471e2a94798787afbad4e547a1e2485ef9835db Mon Sep 17 00:00:00 2001 +From: Adrian Bunk +Date: Sun, 3 Jan 2021 14:22:29 +0200 +Subject: src/menu_lan.c: Remove unused duplicate lan_player_info definition + +This broke the build with gcc 10: +https://bugs.debian.org/976513 +--- + src/menu_lan.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/menu_lan.c b/src/menu_lan.c +index 4512eb1..d85f2c6 100644 +--- a/src/menu_lan.c ++++ b/src/menu_lan.c +@@ -37,7 +37,6 @@ along with this program. If not, see . */ + + + /* lan_player_type now defined in network.h */ +-lan_player_type lan_player_info[MAX_CLIENTS]; + + /* Local function prototypes: ------------------- */ + void draw_player_table(void); +-- +2.20.1 + diff --git a/tuxmath.spec b/tuxmath.spec index f9f8bd0..c1c740d 100644 --- a/tuxmath.spec +++ b/tuxmath.spec @@ -1,32 +1,45 @@ Epoch: 1 Name: tuxmath -Version: 2.0.1 +Version: 2.0.3 Release: 1mamba Summary: TuxMath is an educational arcade game starring Tux, the Linux mascot! Group: Graphical Desktop/Applications/Educational Vendor: openmamba Distribution: openmamba -Packager: Tiziana Ferro -URL: http://tux4kids.alioth.debian.org -Source: http://downloads.sourceforge.net/project/tuxmath/tuxmath-source/TuxMath%20%{version}%20-%20Source/tuxmath_w_fonts-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://github.com/tux4kids/tuxmath +Source: https://github.com/tux4kids/tuxmath.git/debian%2f%{version}-1/tuxmath-%{version}.tar.bz2 +Patch0: tuxmath-2.0.3-src-menu_lan.c-Remove-unused-duplicate-lan_player_in.patch +Patch1: tuxmath-2.0.3-rename-blits-to-tmblits.patch License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libSDL-devel +BuildRequires: libSDL_Pango-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel -BuildRequires: libSDL_ttf-devel +BuildRequires: libSDL_net-devel +BuildRequires: libcairo-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libpango-devel +BuildRequires: librsvg-devel +BuildRequires: libt4kcommon-devel +BuildRequires: libxml2-devel ## AUTOBUILDREQ-END -BuildRequires: libt4k_common-devel %description "Tux, of Math Command" ("TuxMath," for short) is an educational arcade game starring Tux, the Linux mascot! Based on the classic arcade game "Missile Command," Tux must defend his cities. In this case, though, he must do it by solving math problems. +%debug_package + %prep -%setup -q -n %{name}_w_fonts-%{version} +%setup -q +%patch0 -p1 -b .src-menu_lan.c-Remove-unused-duplicate-lan_player_in +%patch1 -p1 -b .rename-blits-to-tmblits %build %configure @@ -70,6 +83,9 @@ EOF %{_datadir}/%{name}/* %changelog +* Sat Nov 26 2022 Silvan Calarco 2.0.3-1mamba +- update to 2.0.3 + * Sun Jul 24 2011 Automatic Build System 2.0.1-1mamba - automatic version update by autodist