From f0ee85da6fa6e9113015c0d39dce1cbcfc468fda Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mon, 7 Feb 2011 18:48:30 -0600 Subject: [PATCH 01/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index e5df594..a33516c 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -81,6 +81,9 @@ fi %changelog +* Mon Feb 07 2011 Fedora Release Engineering - 1.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Fri Jul 24 2009 Fedora Release Engineering - 1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From f5fae1244ffa3ed4eb9ab9e7596f51635881cde2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 15 Jul 2011 16:30:42 +0200 Subject: [PATCH 02/43] Rebuild for new allegro-4.4 --- alex4.spec | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/alex4.spec b/alex4.spec index a33516c..8cc7018 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -12,7 +12,6 @@ Patch0: alex4-unix.patch Patch1: alex4-allegro-4.2.patch Patch2: alex4-dot-files-endian-clean.patch Patch3: alex4-fsf-address.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: allegro-devel dumb-devel desktop-file-utils ImageMagick Requires: hicolor-icon-theme @@ -39,7 +38,6 @@ popd %install -rm -rf $RPM_BUILD_ROOT pushd src make install PREFIX=$RPM_BUILD_ROOT%{_prefix} popd @@ -54,22 +52,18 @@ install -p -m 644 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps -%clean -rm -rf $RPM_BUILD_ROOT - - %post -touch --no-create %{_datadir}/icons/hicolor || : -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %files %defattr(-,root,root,-) @@ -81,6 +75,9 @@ fi %changelog +* Fri Jul 15 2011 Hans de Goede - 1.0-11 +- Rebuild for new allegro-4.4 + * Mon Feb 07 2011 Fedora Release Engineering - 1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From e3f45bc0538fd79171db36c7e8b339f0c5cad1bb Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 12 Jan 2012 15:08:38 -0600 Subject: [PATCH 03/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 8cc7018..d2845f5 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -75,6 +75,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Jan 12 2012 Fedora Release Engineering - 1.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Fri Jul 15 2011 Hans de Goede - 1.0-11 - Rebuild for new allegro-4.4 From e6ed38b8d54843bd474ad829a404f8b0a897609c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 18 Jul 2012 10:45:58 -0500 Subject: [PATCH 04/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index d2845f5..fbc1ce6 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -75,6 +75,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Jul 18 2012 Fedora Release Engineering - 1.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Thu Jan 12 2012 Fedora Release Engineering - 1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From e677cfe1f03714972ae59e62cfc451f4e14bfb2f Mon Sep 17 00:00:00 2001 From: Rahul Sundaram Date: Sat, 9 Feb 2013 12:18:21 -0500 Subject: [PATCH 05/43] remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines --- alex4.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/alex4.spec b/alex4.spec index fbc1ce6..9a00928 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,11 +1,11 @@ Name: alex4 Version: 1.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ URL: http://allegator.sourceforge.net/ -Source0: http://dl.sf.net/sourceforge/allegator/alex4src_data.zip +Source0: http://downloads.sf.net/allegator/Alex4/source%20and%20data/alex4src_data.zip Source1: alex4.desktop Source2: alex4.png Patch0: alex4-unix.patch @@ -44,8 +44,7 @@ popd # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications -desktop-file-install --vendor fedora \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications \ +desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps install -p -m 644 %{SOURCE2} \ @@ -66,15 +65,18 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -%defattr(-,root,root,-) %doc license.txt readme.txt %{_bindir}/%{name} %{_datadir}/%{name} -%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %changelog +* Sat Feb 09 2013 Rahul Sundaram - 1.0-14 +- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 +- clean up spec to follow current guidelines + * Wed Jul 18 2012 Fedora Release Engineering - 1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From 53f9cd4a9de0dd9f4883c29dd5f287f92435495c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 2 Aug 2013 19:32:13 -0500 Subject: [PATCH 06/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 9a00928..f5571ac 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 1.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Sat Feb 09 2013 Rahul Sundaram - 1.0-14 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines From d42b0fca248401b908e840ad6bf4424cb2f47afe Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 6 Jun 2014 19:25:16 -0500 Subject: [PATCH 07/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index f5571ac..92b41b3 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 1.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sat Aug 03 2013 Fedora Release Engineering - 1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From 13d4441638898e65d4c86e27169014d7f4f017bf Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Fri, 15 Aug 2014 20:16:29 +0000 Subject: [PATCH 08/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 92b41b3..5cdc19a 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Aug 15 2014 Fedora Release Engineering - 1.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Sat Jun 07 2014 Fedora Release Engineering - 1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From 2a1e71e0531add25da88b06212d0b33ac3689aef Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 16 Jun 2015 23:45:56 +0000 Subject: [PATCH 09/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 5cdc19a..5a8421a 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Tue Jun 16 2015 Fedora Release Engineering - 1.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Aug 15 2014 Fedora Release Engineering - 1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From 104e84b23952a7733243053919d919547c826391 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 16:05:09 +0000 Subject: [PATCH 10/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 5a8421a..8c56ba4 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 1.0-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Tue Jun 16 2015 Fedora Release Engineering - 1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From c8857c137811856e5f4931ad6e7e1407ac4bc5f0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 05:51:38 +0000 Subject: [PATCH 11/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 8c56ba4..1032315 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 1.0-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Wed Feb 03 2016 Fedora Release Engineering - 1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From f9ab7b4dd9dd15f1bf21aeb48c46480b22ad0ec1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 02:44:24 +0000 Subject: [PATCH 12/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 1032315..4afe05d 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 1.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Fri Feb 10 2017 Fedora Release Engineering - 1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 4448ff09299daf4b3b3d739d5b331baff1c1dd3a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 17:29:35 +0000 Subject: [PATCH 13/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 4afe05d..182932e 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -73,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 1.0-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 4ada0023c44e5523f38672c0c5395b03dae388a3 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 8 Sep 2017 12:21:48 +0200 Subject: [PATCH 14/43] Run windowed rather then fullscreen by default Add example alex4.ini to the documentation (for e.g. setting fullscreen mode) Add appdata --- alex4-ini-comment.patch | 19 +++++++++++++++++++ alex4-unix.patch | 8 ++------ alex4.appdata.xml | 28 ++++++++++++++++++++++++++++ alex4.desktop | 2 +- alex4.png | Bin 1051 -> 1122 bytes alex4.spec | 35 ++++++++++++++++++++++------------- alex4src-warnings.patch | 24 ++++++++++++++++++++++++ 7 files changed, 96 insertions(+), 20 deletions(-) create mode 100644 alex4-ini-comment.patch create mode 100644 alex4.appdata.xml create mode 100644 alex4src-warnings.patch diff --git a/alex4-ini-comment.patch b/alex4-ini-comment.patch new file mode 100644 index 0000000..fe29d03 --- /dev/null +++ b/alex4-ini-comment.patch @@ -0,0 +1,19 @@ +diff -up alex4src/alex4.ini~ alex4src/alex4.ini +--- alex4src/alex4.ini~ 2003-07-26 12:55:26.000000000 +0200 ++++ alex4src/alex4.ini 2017-09-08 11:50:17.095282921 +0200 +@@ -1,12 +1,11 @@ + ############################################################## + # +-# Configuration file for Alex 4 (v1.1) ++# Example configuration file for Alex 4 (v1.1) + # + ############################################################## + # +-# If you lose control of the contents of this file +-# and wants to restore to the defaults, you will have +-# to reinstall the game. Conclusion: Handle with care! ++# To make cchanges to alex4's configuration copy this file to ++# ~/.alex4/alex4.ini and edit it. + # + ############################################################## + diff --git a/alex4-unix.patch b/alex4-unix.patch index 0de8031..b0b3b70 100644 --- a/alex4-unix.patch +++ b/alex4-unix.patch @@ -83,7 +83,7 @@ w = get_config_int("graphics", "f_width", 640); h = get_config_int("graphics", "f_height", 480); } -@@ -672,10 +681,10 @@ +@@ -672,7 +681,7 @@ h = get_config_int("graphics", "w_height", 480); } @@ -91,11 +91,7 @@ + log2file(" entering gfx mode set in alex4.ini (%dx%d %s)", w, h, (get_config_int("graphics", "fullscreen", 1) ? "full" : "win")); if (set_gfx_mode( -- (get_config_int("graphics", "fullscreen", 0) ? GFX_AUTODETECT_FULLSCREEN : GFX_AUTODETECT_WINDOWED), -+ (get_config_int("graphics", "fullscreen", 1) ? GFX_AUTODETECT_FULLSCREEN : GFX_AUTODETECT_WINDOWED), - w, h, 0, 0)) { - log2file(" *** failed"); - log2file(" entering gfx mode (640x480 windowed)"); + (get_config_int("graphics", "fullscreen", 0) ? GFX_AUTODETECT_FULLSCREEN : GFX_AUTODETECT_WINDOWED), @@ -695,6 +704,7 @@ textout_centre(swap_screen, font, "loading...", 320, 200, 1); blit_to_screen(swap_screen); diff --git a/alex4.appdata.xml b/alex4.appdata.xml new file mode 100644 index 0000000..8d19c63 --- /dev/null +++ b/alex4.appdata.xml @@ -0,0 +1,28 @@ + + + alex4.desktop + CC0-1.0 + GPL+ + Alex the Allegator 4 + Old school platform game + +

+ Alex the Allegator 4 is a true jump'n'run, just like the old classic ones. + Guide Alex through the jungle in order to save his girlfriend Lola from + evil humans who want to make a bag of her. +

+

+ Alex 4 is a very small game. It runs in a very low resolution with only + four colors and will not provide you with any real time video or 3D + effects. Nor will it snare you with a compelling storyline. It's only a + short platform game with a few tricks up it's sleeve. We're sure you'll + like it. +

+
+ https://obiot.github.io/Alex4-WE/readme.html + https://obiot.github.io/Alex4-WE/readme.html#play + + https://obiot.github.io/Alex4-WE/images/overview.gif + + jwrdegoede_at_fedoraproject.org +
diff --git a/alex4.desktop b/alex4.desktop index 549aa7b..392e3f8 100644 --- a/alex4.desktop +++ b/alex4.desktop @@ -1,5 +1,4 @@ [Desktop Entry] -Encoding=UTF-8 Name=Alex the Allegator 4 Comment=Old school platform game Exec=alex4 @@ -8,3 +7,4 @@ Terminal=false StartupNotify=false Type=Application Categories=Game;ArcadeGame;ActionGame; +Keywords=Game;Arcade;Platform;Retro; diff --git a/alex4.png b/alex4.png index 2c8807ae9dcbadb9f78ce1970c216d75b2b3ef19..07a7aceb7423b0a50f5ed41f5a63706246b7b63f 100644 GIT binary patch delta 327 zcmV-N0l5B~2;vAYiBL{Q4GJ0x0000DNk~Le0000$0000$2m=5B0G+pi>;M1)`cO<% zMJOmJ2nYzVGV}rj1RI=glPUu^f8hxT2|F;%(#!$?007}hL_t(o!|j$^62l+}MZ*TV z1ZDrLtjry%$%ikLb~>Ifr-hTKh`FxAp$R3PBToU*D8ngrOmUlHV{O5`ihf+??0PeBNJq3b~! zNM9gOMP5KXOnw3=^yL9FHn&q`79cRUQ*17#)%Ye`CU`3N!$3V41^OAQQ<%6~%z}eE ZZvd`HwGU|M&j0`b07*qo1w^hwV1l+qd-DJQ delta 255 zcmVko)hGaM%=eo*1EfEK z4vE4iA*=wGHpxwQk)@q{Q1^K#!Q2q6D*CWJq21OuIsoGR62g`Q#4-Q?002ovPDHLk FV1f;1T*?3d diff --git a/alex4.spec b/alex4.spec index 182932e..17dc35f 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,17 +1,20 @@ Name: alex4 Version: 1.0 -Release: 22%{?dist} +Release: 23%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ -URL: http://allegator.sourceforge.net/ +URL: https://obiot.github.io/Alex4-WE/readme.html Source0: http://downloads.sf.net/allegator/Alex4/source%20and%20data/alex4src_data.zip Source1: alex4.desktop Source2: alex4.png +Source3: alex4.appdata.xml Patch0: alex4-unix.patch Patch1: alex4-allegro-4.2.patch Patch2: alex4-dot-files-endian-clean.patch Patch3: alex4-fsf-address.patch +Patch4: alex4-ini-comment.patch +Patch5: alex4src-warnings.patch BuildRequires: allegro-devel dumb-devel desktop-file-utils ImageMagick Requires: hicolor-icon-theme @@ -22,18 +25,14 @@ nice colors guaranteed! %prep -%setup -q -n alex4src -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -sed -i 's/\r//' *.txt +%autosetup -p1 -n alex4src +sed -i 's/\r//' *.txt *.ini %build pushd src make %{?_smp_mflags} PREFIX=%{_prefix} \ - CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations" + CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations -Wno-unused-result" popd @@ -46,9 +45,13 @@ popd mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} -mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps install -p -m 644 %{SOURCE2} \ - $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata +appstream-util validate-relax --nonet \ + $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml %post @@ -65,14 +68,20 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -%doc license.txt readme.txt +%doc license.txt readme.txt alex4.ini %{_bindir}/%{name} %{_datadir}/%{name} +%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/32x32/apps/%{name}.png +%{_datadir}/icons/hicolor/64x64/apps/%{name}.png %changelog +* Fri Sep 08 2017 Hans de Goede - 1.0-23 +- Run windowed rather then fullscreen by default +- Add example alex4.ini to the documentation (for e.g. setting fullscreen mode) +- Add appdata + * Wed Aug 02 2017 Fedora Release Engineering - 1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/alex4src-warnings.patch b/alex4src-warnings.patch new file mode 100644 index 0000000..2e73f64 --- /dev/null +++ b/alex4src-warnings.patch @@ -0,0 +1,24 @@ +diff -up alex4src/src/main.c~ alex4src/src/main.c +--- alex4src/src/main.c~ 2017-09-08 12:11:48.000000000 +0200 ++++ alex4src/src/main.c 2017-09-08 12:15:45.784592931 +0200 +@@ -2579,7 +2579,7 @@ int get_string(BITMAP *bmp, char *string + if (block == NULL) + return 1; + +- blit(bmp, block, pos_x - 1, pos_y - 1, 0, 0, block->w, block->h); ++ blit(bmp, block, pos_x - 1, pos_y - 1, 0, 0, block->w, block->h); + + clear_keybuf(); + while(1) { +diff -up alex4src/src/shooter.c~ alex4src/src/shooter.c +--- alex4src/src/shooter.c~ 2017-09-08 12:11:48.000000000 +0200 ++++ alex4src/src/shooter.c 2017-09-08 12:14:27.389952486 +0200 +@@ -903,7 +903,7 @@ void s_check_collision(Tspace_object *ar + s_var.score += 1000000; + } + else { // increase power +- s_var.power_level = MIN(s_var.power_level ++, 7); ++ s_var.power_level++; + } + play_sound_id(SMPL_HEART); + From 8b0e04c95c3049b8a1b8b6d5aa9da086fccb706c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 8 Sep 2017 13:12:58 +0200 Subject: [PATCH 15/43] Fix missing libappstream-glib BuildRequires --- alex4.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 17dc35f..cb979bc 100644 --- a/alex4.spec +++ b/alex4.spec @@ -15,7 +15,7 @@ Patch2: alex4-dot-files-endian-clean.patch Patch3: alex4-fsf-address.patch Patch4: alex4-ini-comment.patch Patch5: alex4src-warnings.patch -BuildRequires: allegro-devel dumb-devel desktop-file-utils ImageMagick +BuildRequires: allegro-devel dumb-devel desktop-file-utils libappstream-glib Requires: hicolor-icon-theme %description From cc175a4c8a46a7a37c2f2ef5e3d54942e2c9dc98 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 7 Jan 2018 19:04:22 +0100 Subject: [PATCH 16/43] Remove obsolete scriptlets Signed-off-by: Igor Gnatenko --- alex4.spec | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/alex4.spec b/alex4.spec index cb979bc..e472609 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -54,19 +54,6 @@ appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml -%post -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - - %files %doc license.txt readme.txt alex4.ini %{_bindir}/%{name} @@ -77,6 +64,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Jan 07 2018 Igor Gnatenko - 1.0-24 +- Remove obsolete scriptlets + * Fri Sep 08 2017 Hans de Goede - 1.0-23 - Run windowed rather then fullscreen by default - Add example alex4.ini to the documentation (for e.g. setting fullscreen mode) From 449bef7e7db29ae27de634b4f6ace3c874e0c02f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 02:05:21 +0000 Subject: [PATCH 17/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index e472609..b997a51 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -64,6 +64,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 1.0-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Sun Jan 07 2018 Igor Gnatenko - 1.0-24 - Remove obsolete scriptlets From b48d8f15feed60bae137efaec3517ef26ba5c246 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 12 Jul 2018 20:07:19 +0000 Subject: [PATCH 18/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index b997a51..b882319 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 25%{?dist} +Release: 26%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -64,6 +64,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jul 12 2018 Fedora Release Engineering - 1.0-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering - 1.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From c6888e66c62b89ead516dd2a74b65005994a9c38 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 24 Jul 2018 16:21:47 +0200 Subject: [PATCH 19/43] Add missing BuildRequires on gcc make: cc: Command not found References: https://bugzilla.redhat.com/show_bug.cgi?id=1603365 Signed-off-by: Igor Gnatenko --- alex4.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/alex4.spec b/alex4.spec index b882319..a5c7d23 100644 --- a/alex4.spec +++ b/alex4.spec @@ -15,6 +15,7 @@ Patch2: alex4-dot-files-endian-clean.patch Patch3: alex4-fsf-address.patch Patch4: alex4-ini-comment.patch Patch5: alex4src-warnings.patch +BuildRequires: gcc BuildRequires: allegro-devel dumb-devel desktop-file-utils libappstream-glib Requires: hicolor-icon-theme From e69b5627ec2be70016c5b27d0bc74f55b5669813 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 29 Jul 2018 22:33:57 +0200 Subject: [PATCH 20/43] Fix FTBFS (rhbz#1603365) --- alex4.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/alex4.spec b/alex4.spec index a5c7d23..3717e96 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -33,7 +33,7 @@ sed -i 's/\r//' *.txt *.ini %build pushd src make %{?_smp_mflags} PREFIX=%{_prefix} \ - CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations -Wno-unused-result" + CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations -Wno-unused-result -DALLEGRO_FIX_ALIASES" popd @@ -65,6 +65,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sun Jul 29 2018 Hans de Goede - 1.0-27 +- Fix FTBFS (rhbz#1603365) + * Thu Jul 12 2018 Fedora Release Engineering - 1.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 9145ea0a053ae1bd311b9b871a7d08410cf27c1e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 31 Jul 2018 10:41:42 +0200 Subject: [PATCH 21/43] Rebuild with fixed binutils --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 3717e96..ef3bf21 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 27%{?dist} +Release: 28%{?dist} Summary: Alex the Allegator 4 - Platform game Group: Amusements/Games License: GPL+ @@ -65,6 +65,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Jul 31 2018 Florian Weimer - 1.0-28 +- Rebuild with fixed binutils + * Sun Jul 29 2018 Hans de Goede - 1.0-27 - Fix FTBFS (rhbz#1603365) From 2bea587b694339b7d9c8da57e3f7101839e89095 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:38 +0100 Subject: [PATCH 22/43] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- alex4.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index ef3bf21..a23e63b 100644 --- a/alex4.spec +++ b/alex4.spec @@ -2,7 +2,6 @@ Name: alex4 Version: 1.0 Release: 28%{?dist} Summary: Alex the Allegator 4 - Platform game -Group: Amusements/Games License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html Source0: http://downloads.sf.net/allegator/Alex4/source%20and%20data/alex4src_data.zip From 22f7ad688ba7c16491956435123a05409c7296ea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 13:09:56 +0000 Subject: [PATCH 23/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index a23e63b..728aa83 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 28%{?dist} +Release: 29%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -64,6 +64,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 1.0-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Tue Jul 31 2018 Florian Weimer - 1.0-28 - Rebuild with fixed binutils From 297a07898beb1504553c5da180f68924b869ae99 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 17:44:33 +0000 Subject: [PATCH 24/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 728aa83..3b9d542 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 29%{?dist} +Release: 30%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -64,6 +64,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 1.0-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 1.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 2d4d3e46bfee4f72579d71ef626db27741abd7d8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 11:23:59 +0000 Subject: [PATCH 25/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 3b9d542..0c23e69 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 30%{?dist} +Release: 31%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -64,6 +64,9 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 1.0-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Jul 24 2019 Fedora Release Engineering - 1.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 48f5e4eaee26577344362e9029f8a8365a495173 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 14 Feb 2020 23:31:19 +0100 Subject: [PATCH 26/43] Fix FTBFS (rhbz#1799146) --- alex4-fcommon-fix.patch | 177 ++++++++++++++++++++++++++++++++++++++++ alex4.spec | 6 +- alex4src-warnings.patch | 9 ++ 3 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 alex4-fcommon-fix.patch diff --git a/alex4-fcommon-fix.patch b/alex4-fcommon-fix.patch new file mode 100644 index 0000000..5ef36b0 --- /dev/null +++ b/alex4-fcommon-fix.patch @@ -0,0 +1,177 @@ +diff -ur alex4src/src/bullet.c alex4src.nre/src/bullet.c +--- alex4src/src/bullet.c 2003-07-26 12:53:52.000000000 +0200 ++++ alex4src.nre/src/bullet.c 2020-02-14 16:55:54.227165835 +0100 +@@ -26,6 +26,8 @@ + #include "timer.h" + #include "../data/data.h" + ++// the bullets themselves ++Tbullet bullet[MAX_BULLETS]; + + // sets values on a bullet + void set_bullet(Tbullet *b, int x, int y, double dx, double dy, BITMAP *bmp, int bad) { +diff -ur alex4src/src/bullet.h alex4src.nre/src/bullet.h +--- alex4src/src/bullet.h 2020-02-14 20:21:00.557446660 +0100 ++++ alex4src.nre/src/bullet.h 2020-02-14 16:55:54.227165835 +0100 +@@ -42,7 +42,7 @@ + #define MAX_BULLETS 64 + + // the bullets themselves +-Tbullet bullet[MAX_BULLETS]; ++extern Tbullet bullet[MAX_BULLETS]; + + // functions + void reset_bullets(Tbullet *b, int max); +diff -ur alex4src/src/edit.c alex4src.nre/src/edit.c +--- alex4src/src/edit.c 2020-02-14 20:21:00.559446658 +0100 ++++ alex4src.nre/src/edit.c 2020-02-14 20:14:07.160857305 +0100 +@@ -33,8 +33,6 @@ + int edit_tile = 0; + // path to current map + char edit_path_and_file[1024]; +-// datafile to use +-DATAFILE *data; + // current edit mode + int edit_mode; + +diff -ur alex4src/src/main.h alex4src.nre/src/main.h +--- alex4src/src/main.h 2020-02-14 20:21:00.556446662 +0100 ++++ alex4src.nre/src/main.h 2020-02-14 20:13:57.681842152 +0100 +@@ -59,6 +59,7 @@ + #define SMPL_TALK 24 + #define SMPL_BEAM 25 + ++extern DATAFILE *data; + + // functions + char *get_init_string(); +diff -ur alex4src/src/particle.c alex4src.nre/src/particle.c +--- alex4src/src/particle.c 2003-07-26 12:53:52.000000000 +0200 ++++ alex4src.nre/src/particle.c 2020-02-14 20:17:53.166697996 +0100 +@@ -21,16 +21,11 @@ + + + ++#include "main.h" + #include "particle.h" + +-// pointer to datafile +-DATAFILE *data; +- +- +-// set datafile to use +-void set_datafile(DATAFILE *d) { +- data = d; +-} ++// the particles themselves ++Tparticle particle[MAX_PARTICLES]; + + + // inits variables in a particle +diff -ur alex4src/src/particle.h alex4src.nre/src/particle.h +--- alex4src/src/particle.h 2020-02-14 20:21:00.555446663 +0100 ++++ alex4src.nre/src/particle.h 2020-02-14 20:15:57.210817230 +0100 +@@ -42,10 +42,9 @@ + + + // the particles themselves +-Tparticle particle[MAX_PARTICLES]; ++extern Tparticle particle[MAX_PARTICLES]; + + // functions +-void set_datafile(DATAFILE *d); + void reset_particles(Tparticle *p, int max); + Tparticle *get_free_particle(Tparticle *p, int max); + void set_particle(Tparticle *p, int x, int y, double dx, double dy, int color, int life, int bmp); +diff -ur alex4src/src/player.c alex4src.nre/src/player.c +--- alex4src/src/player.c 2003-07-26 12:53:52.000000000 +0200 ++++ alex4src.nre/src/player.c 2020-02-14 16:55:54.229165835 +0100 +@@ -25,6 +25,9 @@ + #include "timer.h" + #include "../data/data.h" + ++// the player ++Tplayer player; ++ + // draws the player depending on his state + void draw_player(BITMAP *bmp, Tplayer *p, int x, int y) { + BITMAP *head, *body; +diff -ur alex4src/src/player.h alex4src.nre/src/player.h +--- alex4src/src/player.h 2020-02-14 20:21:00.554446664 +0100 ++++ alex4src.nre/src/player.h 2020-02-14 16:55:54.229165835 +0100 +@@ -53,7 +53,7 @@ + + + // the player +-Tplayer player; ++extern Tplayer player; + + // functions + void draw_player(BITMAP *bmp, Tplayer *p, int x, int y); +diff -ur alex4src/src/script.c alex4src.nre/src/script.c +--- alex4src/src/script.c 2020-02-14 20:21:00.560446657 +0100 ++++ alex4src.nre/src/script.c 2020-02-14 20:14:25.441886527 +0100 +@@ -33,9 +33,8 @@ + // silly value + #define NO_CHANGE -3249587 + +- +-// datafile to use +-DATAFILE *data; ++// array holding the sounds ids ++int active_sounds[MAX_SCRIPT_SOUNDS]; + // internal buffers + BITMAP *buffer; + BITMAP *swap_buffer; +diff -ur alex4src/src/script.h alex4src.nre/src/script.h +--- alex4src/src/script.h 2020-02-14 20:21:00.556446662 +0100 ++++ alex4src.nre/src/script.h 2020-02-14 16:55:54.230165835 +0100 +@@ -42,7 +42,7 @@ + // max number of sounds played by the script + #define MAX_SCRIPT_SOUNDS 16 + // array holding the sounds ids +-int active_sounds[MAX_SCRIPT_SOUNDS]; ++extern int active_sounds[MAX_SCRIPT_SOUNDS]; + + + // functions +diff -ur alex4src/src/timer.c alex4src.nre/src/timer.c +--- alex4src/src/timer.c 2020-02-14 20:21:00.557446660 +0100 ++++ alex4src.nre/src/timer.c 2020-02-14 16:55:54.226165836 +0100 +@@ -23,6 +23,14 @@ + #include "allegro.h" + #include "timer.h" + ++// the variables used by the timers ++volatile int frame_count; ++volatile int fps; ++volatile int logic_count; ++volatile int lps; ++volatile int cycle_count; ++volatile int game_count; ++ + // keeps track of frames each second + void fps_counter(void) { + fps = frame_count; +diff -ur alex4src/src/timer.h alex4src.nre/src/timer.h +--- alex4src/src/timer.h 2020-02-14 20:21:00.556446662 +0100 ++++ alex4src.nre/src/timer.h 2020-02-14 16:55:54.227165835 +0100 +@@ -24,12 +24,12 @@ + #define _TIMERS_H_ + + // the variables used by the timers +-volatile int frame_count; +-volatile int fps; +-volatile int logic_count; +-volatile int lps; +-volatile int cycle_count; +-volatile int game_count; ++extern volatile int frame_count; ++extern volatile int fps; ++extern volatile int logic_count; ++extern volatile int lps; ++extern volatile int cycle_count; ++extern volatile int game_count; + + + // functions diff --git a/alex4.spec b/alex4.spec index 0c23e69..c4746d5 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 31%{?dist} +Release: 32%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -14,6 +14,7 @@ Patch2: alex4-dot-files-endian-clean.patch Patch3: alex4-fsf-address.patch Patch4: alex4-ini-comment.patch Patch5: alex4src-warnings.patch +Patch6: alex4-fcommon-fix.patch BuildRequires: gcc BuildRequires: allegro-devel dumb-devel desktop-file-utils libappstream-glib Requires: hicolor-icon-theme @@ -64,6 +65,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Feb 14 2020 Hans de Goede - 1.0-32 +- Fix FTBFS (rhbz#1799146) + * Tue Jan 28 2020 Fedora Release Engineering - 1.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/alex4src-warnings.patch b/alex4src-warnings.patch index 2e73f64..66bf30d 100644 --- a/alex4src-warnings.patch +++ b/alex4src-warnings.patch @@ -1,6 +1,15 @@ diff -up alex4src/src/main.c~ alex4src/src/main.c --- alex4src/src/main.c~ 2017-09-08 12:11:48.000000000 +0200 +++ alex4src/src/main.c 2017-09-08 12:15:45.784592931 +0200 +@@ -452,7 +452,7 @@ void load_level_files(const char *filena + mode = 2; + } + else { +- char full_path_to_map[1024]; ++ char full_path_to_map[2048]; + + clear_trailing_whitespace(buf); + sprintf(full_path_to_map, "%s%s", path, buf); @@ -2579,7 +2579,7 @@ int get_string(BITMAP *bmp, char *string if (block == NULL) return 1; From 39170e91f126278f689593f81daff5a63fa51d7f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 11:54:26 +0000 Subject: [PATCH 27/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index c4746d5..2bff5e7 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 32%{?dist} +Release: 33%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -65,6 +65,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 1.0-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Feb 14 2020 Hans de Goede - 1.0-32 - Fix FTBFS (rhbz#1799146) From ec101877cafa20691d957a9d561792e1e4616db3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 31 Jul 2020 23:54:04 +0000 Subject: [PATCH 28/43] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 2bff5e7..0556a4e 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 33%{?dist} +Release: 34%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -65,6 +65,10 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jul 31 2020 Fedora Release Engineering - 1.0-34 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 1.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 3982ddf1b3790d5d60ace987d712b33c631e4c4a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 16 Dec 2020 23:22:56 +0000 Subject: [PATCH 29/43] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- alex4.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/alex4.spec b/alex4.spec index 0556a4e..1aaedd1 100644 --- a/alex4.spec +++ b/alex4.spec @@ -17,6 +17,7 @@ Patch5: alex4src-warnings.patch Patch6: alex4-fcommon-fix.patch BuildRequires: gcc BuildRequires: allegro-devel dumb-devel desktop-file-utils libappstream-glib +BuildRequires: make Requires: hicolor-icon-theme %description From f33992ca871ee144bccb366e58a8a4093adef0df Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 25 Jan 2021 23:57:50 +0000 Subject: [PATCH 30/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 1aaedd1..3cbc6fb 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 34%{?dist} +Release: 35%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Jan 25 2021 Fedora Release Engineering - 1.0-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Fri Jul 31 2020 Fedora Release Engineering - 1.0-34 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From c9237aca507317fba47aa4bcc2ba87291bd72c79 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 12:30:03 +0000 Subject: [PATCH 31/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 6db4e0149204161d7fe554b0f74133e34354dd0c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 17:25:22 +0000 Subject: [PATCH 32/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 3cbc6fb..69cf3ba 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 35%{?dist} +Release: 36%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 1.0-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Mon Jan 25 2021 Fedora Release Engineering - 1.0-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 6a9c793e8c761b772c90d4630147f5bf4f32f93f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jan 2022 21:06:05 +0000 Subject: [PATCH 33/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 69cf3ba..e5ebe11 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 36%{?dist} +Release: 37%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jan 19 2022 Fedora Release Engineering - 1.0-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Jul 21 2021 Fedora Release Engineering - 1.0-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 39f1b05ebf4dfcaa2caa79b8b06a4b19fd9036d3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 20 Jul 2022 20:37:23 +0000 Subject: [PATCH 34/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index e5ebe11..8c4365c 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 37%{?dist} +Release: 38%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 20 2022 Fedora Release Engineering - 1.0-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Wed Jan 19 2022 Fedora Release Engineering - 1.0-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 53230feb086cacec4a573ac85d1f66a1d31ce8c9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 18 Jan 2023 21:34:24 +0000 Subject: [PATCH 35/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 8c4365c..10d0e09 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 38%{?dist} +Release: 39%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jan 18 2023 Fedora Release Engineering - 1.0-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Wed Jul 20 2022 Fedora Release Engineering - 1.0-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 1d61b340257c7acd26f9647826a1e60688cc209a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 13:06:09 +0000 Subject: [PATCH 36/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 10d0e09..11aac99 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 39%{?dist} +Release: 40%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 1.0-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jan 18 2023 Fedora Release Engineering - 1.0-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 1eec8398804049cfc0046bcc58068e0a1fbc218c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 12:39:09 +0000 Subject: [PATCH 37/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 11aac99..cb3f82c 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 40%{?dist} +Release: 41%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 1.0-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 1.0-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 9d5ba30360fc6693c0e9575b3150bfc9602c21dc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 22:52:55 +0000 Subject: [PATCH 38/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index cb3f82c..61e627a 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 41%{?dist} +Release: 42%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL+ URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 1.0-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 1.0-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From cb9a31ed9e4058d76163b144d1a2eb41b39b2658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 17 Jun 2024 12:23:30 +0200 Subject: [PATCH 39/43] convert GPL+ license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- alex4.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/alex4.spec b/alex4.spec index 61e627a..792d633 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,8 +1,8 @@ Name: alex4 Version: 1.0 -Release: 42%{?dist} +Release: 43%{?dist} Summary: Alex the Allegator 4 - Platform game -License: GPL+ +License: GPL-1.0-or-later URL: https://obiot.github.io/Alex4-WE/readme.html Source0: http://downloads.sf.net/allegator/Alex4/source%20and%20data/alex4src_data.zip Source1: alex4.desktop @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Jun 17 2024 Miroslav Suchý - 1.0-43 +- convert license to SPDX + * Mon Jan 22 2024 Fedora Release Engineering - 1.0-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From efac2ac1e08d7673fa3af170b08cdcbad4616b2d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 16:49:20 +0000 Subject: [PATCH 40/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 792d633..46d3340 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 43%{?dist} +Release: 44%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL-1.0-or-later URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 1.0-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Mon Jun 17 2024 Miroslav Suchý - 1.0-43 - convert license to SPDX From 1a714c345049bef55acc686b01fff2a0a1fba9eb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 10:50:15 +0000 Subject: [PATCH 41/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 46d3340..2d12b82 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 44%{?dist} +Release: 45%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL-1.0-or-later URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 1.0-45 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Jul 17 2024 Fedora Release Engineering - 1.0-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 446b8e04403689722187a8450e19a4dd6fdd7993 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 16:53:04 +0000 Subject: [PATCH 42/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 2d12b82..2dc3d98 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 45%{?dist} +Release: 46%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL-1.0-or-later URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 1.0-46 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 16 2025 Fedora Release Engineering - 1.0-45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 4321cd4061fcda4934ac8e910ac2671ba496ed60 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 03:34:30 +0000 Subject: [PATCH 43/43] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- alex4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alex4.spec b/alex4.spec index 2dc3d98..872a0d3 100644 --- a/alex4.spec +++ b/alex4.spec @@ -1,6 +1,6 @@ Name: alex4 Version: 1.0 -Release: 46%{?dist} +Release: 47%{?dist} Summary: Alex the Allegator 4 - Platform game License: GPL-1.0-or-later URL: https://obiot.github.io/Alex4-WE/readme.html @@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 1.0-47 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Wed Jul 23 2025 Fedora Release Engineering - 1.0-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild