Dominique Leuenberger 2023-03-07 15:48:31 +00:00 committed by Git OBS Bridge
commit 7fe1a6c4a3
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 Sun Dec 18 14:52:12 UTC 2022 - thod_@gmx.de

View File

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