From b11bc31e61b4efca52befa4f3c065458d55a86ad Mon Sep 17 00:00:00 2001
From: Oleg Girko
Date: Fri, 28 Jan 2022 22:05:00 +0000
Subject: [PATCH] Add patch to make configure work on all Linux architectures.
---
algol68g-configure-linux.patch | 11 +++++++++++
algol68g.spec | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 algol68g-configure-linux.patch
diff --git a/algol68g-configure-linux.patch b/algol68g-configure-linux.patch
new file mode 100644
index 0000000..10fb745
--- /dev/null
+++ b/algol68g-configure-linux.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -201,7 +201,7 @@
+ # Linux.
+ #
+ # aarch64*-*-linux* is for RaspberryPi-4 on ARM-64 - otherwise http/tcp isnt found
+-*86-*-gnu | *86_64-*-gnu | *86-*-linux* | *86_64-*-linux* | arm*-*-linux* | aarch*-*-linux*)
++*-gnu | *-linux*)
+ AC_DEFINE(BUILD_LINUX, 1, [Define this if LINUX was detected])
+ AC_DEFINE(HAVE_IEEE_754, 1, [Define this if IEEE_754 compliant])
+ AC_MSG_RESULT([linux])
diff --git a/algol68g.spec b/algol68g.spec
index 3731731..af79a3f 100644
--- a/algol68g.spec
+++ b/algol68g.spec
@@ -7,13 +7,14 @@
Name: algol68g
Summary: Algol 68 Genie compiler-interpreter
Version: 3.0.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv3+
URL: https://jmvdveer.home.xs4all.nl/en.algol-68-genie.html
Source: https://jmvdveer.home.xs4all.nl/%{name}-%{version}.tar.gz
Patch0: algol68g-cflags.patch
Patch1: algol68g-includedir.patch
Patch2: algol68g-libpq-include.patch
+Patch3: algol68g-configure-linux.patch
BuildRequires: gcc
BuildRequires: autoconf
BuildRequires: automake
@@ -62,6 +63,8 @@ autoreconf
%exclude %{_pkgdocdir}/LICENSE
%changelog
+* Fri Jan 28 2022 Oleg Girko - 3.0.3-2
+- Add patch to make configure work on all Linux architectures
* Wed Jan 26 2022 Oleg Girko - 3.0.3-1
- Update to 3.0.3
- Fix download URL to use HTTPS