Accepting request 815263 from science

- This is mainly a cosmetic update so that the package gets rebuilt
  in Factory. Rebuild is needed because of wxWidgets - boo#1172750
- Add openvdb-tools package for better cmake reporting.
- Make the 32-bit floating point workaround more readable.
  gh#prusa3d/PrusaSlicer#3781

OBS-URL: https://build.opensuse.org/request/show/815263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/PrusaSlicer?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-06-17 12:51:08 +00:00 committed by Git OBS Bridge
commit 911886c546
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jun 16 12:09:13 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- This is mainly a cosmetic update so that the package gets rebuilt
in Factory. Rebuild is needed because of wxWidgets - boo#1172750
- Add openvdb-tools package for better cmake reporting.
- Make the 32-bit floating point workaround more readable.
gh#prusa3d/PrusaSlicer#3781
-------------------------------------------------------------------
Fri Apr 24 07:24:26 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -48,6 +48,7 @@ BuildRequires: libexpat-devel
BuildRequires: memory-constraints
BuildRequires: nlopt-devel
BuildRequires: openvdb-devel >= 5
BuildRequires: openvdb-tools
BuildRequires: tbb-devel
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-devel >= 3.1
@ -67,13 +68,12 @@ sed -i 's/UNKNOWN/OpenSUSE/' version.inc
%build
%limit_build -m 4096
# sse2 flags: see upstream github issue#3781
%cmake -DSLIC3R_FHS=1 \
%ifarch i686 i586 i386
-DCMAKE_C_FLAGS:STRING="%optflags -mfpmath=sse -msse2" \
-DCMAKE_CXX_FLAGS:STRING="%optflags -mfpmath=sse -msse2"
# sse2 flags for 32-bit: see gh#prusa3d/PrusaSlicer#3781
%ifarch %ix86
export CFLAGS="%optflags -mfpmath=sse -msse2"
export CXXFLAGS="$CFLAGS"
%endif
%cmake -DSLIC3R_FHS=1
%cmake_build
%install