File project.diff of Package openscad
--- openscad.changes.orig
+++ openscad.changes
@@ -1,4 +1,21 @@
-------------------------------------------------------------------
+Mon Mar 24 22:25:37 UTC 2025 - msuchanek@suse.de
+
+- Update to version 2019.05+git3344.194c0a72d:
+ * Add failing testcase for #5768 (#5769)
+ * Added failing testcase for #5766 (#5767)
+ * Add test case for +/-liga font feature available in Amiri font.
+ * Use type specific Get* functions; Use std::shared_ptr in cache.
+ * Added tests for unexpected Manifold conversion warnings (#5742)
+ * Rewrite rotate_extrude mesh generation to directly build PolySet and avoid PolySetBuilder (#5764)
+ * Allow font features to be enabled via the fontconfig specification.
+ * FIX issue #5749 (#5759)
+ * Bugfix: Accidentally left 3D print button disable code during some refactoring (#5762)
+- Remove upstreamed patches: fix_build_with_cgal-5.3.patch CVE-2022-0496.patch
+ CVE-2022-0497.patch fix_build_with_cgal-5.4.patch
+ fix_build_issue_with_overloaded_join.patch fix_fs_error.patch
+
+-------------------------------------------------------------------
Mon Dec 30 15:59:12 UTC 2024 - Torsten Gruner <simmphonie@opensuse.org>
- build with C++17 version. Needed by cgal 6.
--- openscad.spec.orig
+++ openscad.spec
@@ -1,7 +1,7 @@
#
# spec file for package openscad
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,23 +15,18 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-%if 0%{suse_version} < 1600
+
+%if 0%{?suse_version} < 1600
%define gccver 13
%endif
Name: openscad
-Version: 2021.01
+Version: 2019.05+git3344.194c0a72d
Release: 0
Summary: Programmers Solid 3D CAD Modeller
License: GPL-3.0-or-later
Group: Productivity/Graphics/CAD
URL: https://www.openscad.org/
-Source: https://files.openscad.org/%{name}-%{version}.src.tar.gz
-Patch0: fix_build_with_cgal-5.3.patch
-Patch1: CVE-2022-0496.patch
-Patch2: CVE-2022-0497.patch
-Patch3: fix_build_with_cgal-5.4.patch
-Patch4: fix_build_issue_with_overloaded_join.patch
-Patch5: fix_fs_error.patch
+Source: %{name}-%{version}.tar.xz
BuildRequires: bison
BuildRequires: double-conversion-devel
BuildRequires: flex
@@ -49,6 +44,8 @@ BuildRequires: libspnav-devel
BuildRequires: memory-constraints
BuildRequires: opencsg-devel
BuildRequires: pkgconfig
+BuildRequires: python3-Pillow
+BuildRequires: python3-numpy
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
@@ -57,6 +54,7 @@ BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5OpenGL)
+BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(cairo) > 1.14
BuildRequires: pkgconfig(eigen3)
@@ -65,6 +63,7 @@ BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libzip)
+BuildRequires: pkgconfig(tbb)
# With v2019.05, openGL is required but Arm uses openGL ES
ExcludeArch: %{arm} aarch64
@@ -76,22 +75,21 @@ aspects, e.g. modelling of machine parts
%prep
%autosetup -p1
-# build with C++17
-sed -i "s|c++14 strict_c++|c++17 strict_c++|g" c++std.pri
-sed -i "s|Using C++14|Using C++17|g" c++std.pri
-sed -i "s|set(CMAKE_CXX_STANDARD 14)|set(CMAKE_CXX_STANDARD 17)|g" CMakeLists.txt
%build
-%qmake5 %{?gccver:QMAKE_CC=gcc-%{gccver} QMAKE_CXX=g++-%{gccver}} \
- PREFIX=%{_prefix} CONFIG+=qopenglwidget
+%if 0%{?gccver}
+export CC=gcc-%{gccver} CXX=g++-%{gccver}
+%endif
+%cmake
# As of 08.05.2021, memoryperjob constraint is not working correctly,
# so limit memory per job here.
%limit_build -m 2500
-%make_build
+
+%cmake_build
%install
-%qmake5_install
+%cmake_install
install -D -m 0644 doc/openscad.1 %{buildroot}%{_mandir}/man1/openscad.1
@@ -100,8 +98,6 @@ rm -r %{buildroot}%{_datadir}/openscad/f
%find_lang %{name}
-rm %{buildroot}%{_datadir}/openscad/libraries/MCAD/.gitignore
-
%files -f %{name}.lang
%dir %{_datadir}/metainfo