Accepting request 1219336 from Application:Geo

OBS-URL: https://build.opensuse.org/request/show/1219336
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/proj?expand=0&rev=46
This commit is contained in:
Dominique Leuenberger 2024-10-30 16:37:49 +00:00 committed by Git OBS Bridge
commit 1d9c265be0
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 21 14:38:33 UTC 2024 - Manfred Schwarb <manfred99@gmx.ch>
- Leap 16.0 (suse_version==1600) has GCC 13 as default compiler
-------------------------------------------------------------------
Wed Jul 3 19:55:43 UTC 2024 - Stephan Hemeier <Sauerlandlinux@gmx.de>

View File

@ -29,7 +29,7 @@ URL: https://proj.org/
Source0: https://github.com/OSGeo/PROJ/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/OSGeo/PROJ-data/releases/download/%{data_version}.0/%{name}-data-%{data_version}.tar.gz
BuildRequires: cmake >= 3.16
%if 0%{?suse_version} <= 1650
%if 0%{?suse_version} < 1600
BuildRequires: gcc11-c++
%else
BuildRequires: gcc-c++
@ -120,13 +120,13 @@ License: MIT
%autosetup
%build
%if 0%{?suse_version} <= 1650
%if 0%{?suse_version} < 1600
export CC=gcc-11
export CXX=g++-11
%endif
# c++14 needed to build tests using gtest >= 1.14
%cmake \
%if 0%{?suse_version} >= 1650
%if 0%{?suse_version} >= 1600
-DCMAKE_CXX_STANDARD=14 \
%endif
%{nil}