From cef33cd059f06d45b2c4d3f085c30ff52bf492cf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 08:11:18 +0000 Subject: [PATCH 01/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 34e5daf..40ce896 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 35%{?dist} +Release: 36%{?dist} Summary: Asteroid like game with powerups License: GPLv2+ and Freely redistributable without restriction URL: https://www.allegro.cc/depot/Zasx/ @@ -63,6 +63,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jan 21 2023 Fedora Release Engineering - 1.30-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Jul 23 2022 Fedora Release Engineering - 1.30-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 39404cad2509cee6cfa3e445042ca69f735e0c0c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 19:36:43 +0000 Subject: [PATCH 02/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 40ce896..99a22a8 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 36%{?dist} +Release: 37%{?dist} Summary: Asteroid like game with powerups License: GPLv2+ and Freely redistributable without restriction URL: https://www.allegro.cc/depot/Zasx/ @@ -63,6 +63,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 22 2023 Fedora Release Engineering - 1.30-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sat Jan 21 2023 Fedora Release Engineering - 1.30-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 8a3156d06d37d34e2204013bc5f08ee9e6f02a46 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jan 2024 10:58:35 +0000 Subject: [PATCH 03/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 99a22a8..16532bf 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 37%{?dist} +Release: 38%{?dist} Summary: Asteroid like game with powerups License: GPLv2+ and Freely redistributable without restriction URL: https://www.allegro.cc/depot/Zasx/ @@ -63,6 +63,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jan 27 2024 Fedora Release Engineering - 1.30-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sat Jul 22 2023 Fedora Release Engineering - 1.30-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From c4ae6bb93153229ea36f4dbe49f0ee51250be5ad Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 10:47:58 +0000 Subject: [PATCH 04/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 16532bf..97062c9 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 38%{?dist} +Release: 39%{?dist} Summary: Asteroid like game with powerups License: GPLv2+ and Freely redistributable without restriction URL: https://www.allegro.cc/depot/Zasx/ @@ -63,6 +63,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 20 2024 Fedora Release Engineering - 1.30-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sat Jan 27 2024 Fedora Release Engineering - 1.30-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From db74914f49ca1dcd308fdcb1de2a264fa2e45b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 29 Oct 2024 22:13:03 +0000 Subject: [PATCH 05/10] Migrate to SPDX license This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- zasx.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 97062c9..477c8f6 100644 --- a/zasx.spec +++ b/zasx.spec @@ -2,7 +2,7 @@ Name: zasx Version: 1.30 Release: 39%{?dist} Summary: Asteroid like game with powerups -License: GPLv2+ and Freely redistributable without restriction +License: GPL-2.0-or-later AND Giftware URL: https://www.allegro.cc/depot/Zasx/ # Original link (down): http://www.bob.allegronetwork.com/zasx/zasx130s.zip Source0: zasx130s.zip From d7ed0b6455fe78464bfe008d3a5e4ab0a3535df8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 16:40:52 +0000 Subject: [PATCH 06/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 477c8f6..19980b9 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 39%{?dist} +Release: 40%{?dist} Summary: Asteroid like game with powerups License: GPL-2.0-or-later AND Giftware URL: https://www.allegro.cc/depot/Zasx/ @@ -63,6 +63,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sun Jan 19 2025 Fedora Release Engineering - 1.30-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Sat Jul 20 2024 Fedora Release Engineering - 1.30-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From e80a732070b86d27f523cb8028a380b2ab4b7090 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 21:15:47 +0000 Subject: [PATCH 07/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 19980b9..55af3bb 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 40%{?dist} +Release: 41%{?dist} Summary: Asteroid like game with powerups License: GPL-2.0-or-later AND Giftware URL: https://www.allegro.cc/depot/Zasx/ @@ -63,6 +63,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1.30-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sun Jan 19 2025 Fedora Release Engineering - 1.30-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 27cae51b1c72dce8335cf9bd6881f428ec3144e3 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 8 Aug 2025 16:29:50 +0200 Subject: [PATCH 08/10] Fix FTBFS with gcc15 Resolves: rhbz#2341600 Resolves: rhbz#2385756 --- zasx-1.30-Makefile.patch | 21 +++++++++ zasx-1.30-remove-al-fix-aliases.patch | 65 +++++++++++++++++++++++++++ zasx.rpmlintrc | 5 +++ zasx.spec | 15 +++++-- 4 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 zasx-1.30-Makefile.patch create mode 100644 zasx-1.30-remove-al-fix-aliases.patch create mode 100644 zasx.rpmlintrc diff --git a/zasx-1.30-Makefile.patch b/zasx-1.30-Makefile.patch new file mode 100644 index 0000000..f9abc26 --- /dev/null +++ b/zasx-1.30-Makefile.patch @@ -0,0 +1,21 @@ +diff -up Zasx/Makefile~ Zasx/Makefile +--- Zasx/Makefile~ 2025-08-07 23:05:43.000000000 +0200 ++++ Zasx/Makefile 2025-08-08 16:18:49.071125278 +0200 +@@ -1,7 +1,7 @@ + PREFIX = /usr/local + DATADIR = $(PREFIX)/share/$(TARGET) + CFLAGS = -g -Wall -Wno-deprecated-declarations -O2 -fsigned-char +-LDFLAGS = `allegro-config --libs` -ldumb -laldmb -lm -lpthread ++LIBS = `allegro-config --libs` -ldumb -laldmb -lm -lpthread + DEFINES = -DDATADIR=\"$(DATADIR)/\" -Iinclude + OBJS = obj/anim.o obj/dataload.o obj/gamemenu.o obj/input.o obj/log.o \ + obj/particle.o obj/scorer.o obj/asteroid.o obj/drs.o obj/gametimer.o \ +@@ -10,7 +10,7 @@ OBJS = obj/anim.o obj/dataload.o obj/ + TARGET = zasx + + $(TARGET): $(OBJS) +- $(CC) $(LDFLAGS) -o $@ $^ ++ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + + obj/%.o: src/%.c + $(CC) $(CFLAGS) $(DEFINES) -o $@ -c $< diff --git a/zasx-1.30-remove-al-fix-aliases.patch b/zasx-1.30-remove-al-fix-aliases.patch new file mode 100644 index 0000000..51bc413 --- /dev/null +++ b/zasx-1.30-remove-al-fix-aliases.patch @@ -0,0 +1,65 @@ +Remove the use of / need for -DALLEGRO_FIX_ALIASES + +Starting with gcc 15 the default C-level is -std=gnu23 this enables +the fsub, fadd, fcos, etc function protypes in math.h causing +a conflict with the use of ALLEGRO_FIX_ALIASES which adds aliased +for allegro's fixed math functions back to the old allegro names +which conflict with the math.h prototypes. + +Since zasx only uses fcos, this can be fixed by dropping the use of +ALLEGRO_FIX_ALIASES, combined with s/fcos/fixcos/ + +diff -up Zasx/Makefile~ Zasx/Makefile +--- Zasx/Makefile~ 2025-08-07 22:08:56.000000000 +0200 ++++ Zasx/Makefile 2025-08-07 23:05:43.640169740 +0200 +@@ -1,6 +1,6 @@ + PREFIX = /usr/local + DATADIR = $(PREFIX)/share/$(TARGET) +-CFLAGS = -g -Wall -Wno-deprecated-declarations -O2 -fsigned-char -DALLEGRO_FIX_ALIASES ++CFLAGS = -g -Wall -Wno-deprecated-declarations -O2 -fsigned-char + LDFLAGS = `allegro-config --libs` -ldumb -laldmb -lm -lpthread + DEFINES = -DDATADIR=\"$(DATADIR)/\" -Iinclude + OBJS = obj/anim.o obj/dataload.o obj/gamemenu.o obj/input.o obj/log.o \ +diff -up Zasx/src/scorer.c~ Zasx/src/scorer.c +--- Zasx/src/scorer.c~ 2025-08-07 22:08:56.000000000 +0200 ++++ Zasx/src/scorer.c 2025-08-07 23:04:39.992540810 +0200 +@@ -39,28 +39,28 @@ void ShowCredits() { + do { + DrawBG(); + +- textout(BackBuffer, font, " Programming and Design", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick) / 10)), ++ textout(BackBuffer, font, " Programming and Design", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick) / 10)), + 30, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Robert J Ohannessian", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 50) / 10)), ++ textout(BackBuffer, font, " Robert J Ohannessian", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 50) / 10)), + 40, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Music:", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 150) / 10)), ++ textout(BackBuffer, font, " Music:", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 150) / 10)), + 60, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Ben Davis", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 200) / 10)), ++ textout(BackBuffer, font, " Ben Davis", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 200) / 10)), + 70, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Graphics:", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 300) / 10)), ++ textout(BackBuffer, font, " Graphics:", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 300) / 10)), + 90, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Robert J Ohannessian", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 350) / 10)), ++ textout(BackBuffer, font, " Robert J Ohannessian", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 350) / 10)), + 100, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Jonathan Soulard", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 400) / 10)), ++ textout(BackBuffer, font, " Jonathan Soulard", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 400) / 10)), + 110, makecol(255, 255, 255)); + +- textout(BackBuffer, font, " Special thanks to:", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 500) / 10)), ++ textout(BackBuffer, font, " Special thanks to:", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 500) / 10)), + 130, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Shawn Hargreaves, (Allegro, one asteroid graphics and some sound effects)", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 550) / 10)), ++ textout(BackBuffer, font, " Shawn Hargreaves, (Allegro, one asteroid graphics and some sound effects)", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 550) / 10)), + 140, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Ivan Baldo, (PPCol)", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 600) / 10)), ++ textout(BackBuffer, font, " Ivan Baldo, (PPCol)", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 600) / 10)), + 150, makecol(255, 255, 255)); +- textout(BackBuffer, font, " Jeffery Guan, (JGMOD)", 10 + fixtoi(10 * fcos(itofix(GameTime - start_tick + 650) / 10)), ++ textout(BackBuffer, font, " Jeffery Guan, (JGMOD)", 10 + fixtoi(10 * fixcos(itofix(GameTime - start_tick + 650) / 10)), + 160, makecol(255, 255, 255)); + + diff --git a/zasx.rpmlintrc b/zasx.rpmlintrc new file mode 100644 index 0000000..2791b40 --- /dev/null +++ b/zasx.rpmlintrc @@ -0,0 +1,5 @@ +addFilter("W: invalid-url Source0") +addFilter("W: no-%check-section") +addFilter("W: no-manual-page-for-binary") +addFilter("E: spelling-error") +addFilter("E: incorrect-fsf-address") diff --git a/zasx.spec b/zasx.spec index 55af3bb..c08bf38 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 41%{?dist} +Release: 42%{?dist} Summary: Asteroid like game with powerups License: GPL-2.0-or-later AND Giftware URL: https://www.allegro.cc/depot/Zasx/ @@ -12,8 +12,9 @@ Patch0: zasx-1.30-fixes.patch Patch1: zasx-1.30-datadir.patch Patch2: zasx-1.30-format-security.patch Patch3: zasx-1.30-locale-fix.patch -BuildRequires: make -BuildRequires: gcc +Patch4: zasx-1.30-remove-al-fix-aliases.patch +Patch5: zasx-1.30-Makefile.patch +BuildRequires: gcc make BuildRequires: dumb-devel ImageMagick desktop-file-utils libappstream-glib Requires: hicolor-icon-theme @@ -31,7 +32,8 @@ mv docs html %build make %{?_smp_mflags} PREFIX=%{_prefix} \ - CFLAGS="$RPM_OPT_FLAGS -fsigned-char -DALLEGRO_FIX_ALIASES -Wno-deprecated-declarations" + CFLAGS="$RPM_OPT_FLAGS -fsigned-char -Wno-deprecated-declarations" \ + LDFLAGS="$RPM_LD_FLAGS" convert -transparent black -resize 64x64 %{name}.ico %{name}.png @@ -63,6 +65,11 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Aug 7 2025 Hans de Goede - 1.30-42 +- Fix FTBFS with gcc15 +- Resolves: rhbz#2341600 +- Resolves: rhbz#2385756 + * Fri Jul 25 2025 Fedora Release Engineering - 1.30-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 9e801bec28560db5b4aec69e6d164f7b88b64765 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 21:05:45 +0000 Subject: [PATCH 09/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index c08bf38..587bbd0 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 42%{?dist} +Release: 43%{?dist} Summary: Asteroid like game with powerups License: GPL-2.0-or-later AND Giftware URL: https://www.allegro.cc/depot/Zasx/ @@ -65,6 +65,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 1.30-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Thu Aug 7 2025 Hans de Goede - 1.30-42 - Fix FTBFS with gcc15 - Resolves: rhbz#2341600 From 6c2389534a53eddab1c18a160679f4ccc0deb7d4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 09:38:15 +0000 Subject: [PATCH 10/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- zasx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zasx.spec b/zasx.spec index 587bbd0..250be0d 100644 --- a/zasx.spec +++ b/zasx.spec @@ -1,6 +1,6 @@ Name: zasx Version: 1.30 -Release: 43%{?dist} +Release: 44%{?dist} Summary: Asteroid like game with powerups License: GPL-2.0-or-later AND Giftware URL: https://www.allegro.cc/depot/Zasx/ @@ -65,6 +65,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 1.30-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Sat Jan 17 2026 Fedora Release Engineering - 1.30-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild