Accepting request 1069524 from home:marxin:branches:graphics

- Use -fexcess-precision=fast as GCC 13 changes the default
  for C++ compiler and without the change some tests fail on i586.
  More info can be seen here:
  https://gcc.gnu.org/gcc-13/porting_to.html#excess-precision

OBS-URL: https://build.opensuse.org/request/show/1069524
OBS-URL: https://build.opensuse.org/package/show/graphics/lib2geom?expand=0&rev=5
This commit is contained in:
Michael Vetter 2023-03-06 06:59:19 +00:00 committed by Git OBS Bridge
parent a029f739cf
commit b57453b329
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Mar 2 10:46:51 UTC 2023 - Martin Liška <mliska@suse.cz>
- Use -fexcess-precision=fast as GCC 13 changes the default
for C++ compiler and without the change some tests fail on i586.
More info can be seen here:
https://gcc.gnu.org/gcc-13/porting_to.html#excess-precision
-------------------------------------------------------------------
Sun Dec 18 14:52:12 UTC 2022 - thod_@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package lib2geom
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -32,15 +32,15 @@ Group: System/Libraries
Source0: %{url}/-/archive/%{short_version}/%{name}-%{short_version}.tar.gz
# PATCH-FIX-OPENSUSE
Patch1: fix-pkgconfig-libdir-path.patch
BuildRequires: libboost_headers-devel
BuildRequires: cmake >= 2.6
BuildRequires: cmake(double-conversion)
BuildRequires: gcc-c++
BuildRequires: glib2
BuildRequires: gsl-devel
BuildRequires: gtest
BuildRequires: gtk3-devel
BuildRequires: libboost_headers-devel
BuildRequires: ninja
BuildRequires: cmake(double-conversion)
%description
A C++ 2D geometry library geared towards processing data
@ -68,6 +68,7 @@ needed to develop applications that require %{name}.
%autosetup -n %{name}-%{short_version} -p1
%build
%global optflags %optflags -fexcess-precision=fast
%cmake -Wno-dev \
-D2GEOM_BUILD_SHARED:BOOL=ON \
-D2GEOM_TOYS:BOOL=OFF \