Thread: BUG #17852: gdal34: RPM build broken for RHEL8 and RHEL9 since 2023.01.08

BUG #17852: gdal34: RPM build broken for RHEL8 and RHEL9 since 2023.01.08

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      17852
Logged by:          Andris Pavenis
Email address:      andris.pavenis@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system:   Linux
Description:

Change 54e340aba0b0f761b035a8281d10e5156df36ad5 (gdal34: Use libspatialite50
on SLES 15. This is a followup commit to fix PostGIS issues on SLES 15, and
7ae8e6b9ba8.) 6df36ad5 breaks RHEL8 and RHEL9 builds of gdal34 RPMs

Condition in RPM SPEC file has incorrectly changed to opposite:
-%if 0%{?rhel} == 7 || 0%{?suse_version} >= 1315
+%if 0%{?rhel} == 7 || 0%{?suse_version} <= 1400