| |
@@ -1,7 +1,7 @@
|
| |
Name: openscad
|
| |
Version: 2021.01
|
| |
%global upversion %{version}
|
| |
- Release: 8%{?dist}
|
| |
+ Release: 9%{?dist}
|
| |
Summary: The Programmers Solid 3D CAD Modeller
|
| |
# COPYING contains a linking exception for CGAL
|
| |
# Appdata file is CC0
|
| |
@@ -174,7 +174,10 @@
|
| |
sed -i 's@MCAD/__init__.py@MCAD/gears.scad@' tests/CMakeLists.txt
|
| |
|
| |
%build
|
| |
- %{qmake_qt5} PREFIX=%{_prefix} VERSION=%{upversion} CONFIG-=debug
|
| |
+ # qmake tries to detect version of lib3mf by looking for lib3mf_implicit.hpp
|
| |
+ # see https://github.com/openscad/openscad/blob/openscad-2021.01/features/lib3mf.prf#L40
|
| |
+ # but that file is in different location in Fedora.
|
| |
+ %{qmake_qt5} LIB3MF_INCLUDEPATH=/usr/include/lib3mf/Bindings/Cpp PREFIX=%{_prefix} VERSION=%{upversion} CONFIG-=debug
|
| |
%make_build
|
| |
|
| |
# tests
|
| |
@@ -227,6 +230,9 @@
|
| |
%{_datadir}/%{name}/libraries/MCAD/bitmap/*.scad
|
| |
|
| |
%changelog
|
| |
+ * Wed Apr 06 2022 Lumír Balhar <lbalhar@redhat.com> - 2021.01-9
|
| |
+ - Fix build with lib3mf 2.2.0
|
| |
+
|
| |
* Tue Apr 05 2022 Lumír Balhar <lbalhar@redhat.com> - 2021.01-8
|
| |
- Security fixes for CVE-2022-0496 and CVE-2022-0497
|
| |
- Fixes: rhbz#2050696 rhbz#2050700
|
| |
This fixes the build with lib3mf 2.2.0. See: https://copr.fedorainfracloud.org/coprs/lbalhar/openscad/build/4084851/
This is just a workaround. If qmake does not find lib3mf it disables its support so this hack is enough because cmake has its own logic to find the library when compiling. Support for qmake is removed upstream and a lot of files changed their locations so it's not easy to backport more possibly useful patches.
There is still one failing test with 3mf in the name -
3mfexport_3mf-export
- but I've tested importing and exporting 3mf files in a headless environment and it works fine. I'm not able to test this on my machine without building this for Fedora 35.