Accepting request 687068 from graphics
OBS-URL: https://build.opensuse.org/request/show/687068 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openscad?expand=0&rev=3
This commit is contained in:
22
openscad-git_c68684f9520d.patch
Normal file
22
openscad-git_c68684f9520d.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
From c68684f9520d6c241dd5d96e57a0020837504a32 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marius Kintel <marius@kintel.net>
|
||||||
|
Date: Sun, 21 Oct 2018 12:02:50 -0400
|
||||||
|
Subject: [PATCH] Build fix for boost 1.69
|
||||||
|
|
||||||
|
---
|
||||||
|
src/CSGTermEvaluator.cc | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/CSGTermEvaluator.cc b/src/CSGTermEvaluator.cc
|
||||||
|
index 6416f29b6e..b3753cf431 100644
|
||||||
|
--- a/src/CSGTermEvaluator.cc
|
||||||
|
+++ b/src/CSGTermEvaluator.cc
|
||||||
|
@@ -109,7 +109,7 @@ static shared_ptr<CSGTerm> evaluate_csg_term_from_geometry(const State &state,
|
||||||
|
shared_ptr<const PolySet> ps = dynamic_pointer_cast<const PolySet>(geom);
|
||||||
|
// Since is_convex() doesn't handle non-planar faces, we need to tessellate
|
||||||
|
// also in the indeterminate state so we cannot just use a boolean comparison. See #1061
|
||||||
|
- bool convex = ps->convexValue();
|
||||||
|
+ bool convex{ps->convexValue()};
|
||||||
|
if (ps && !convex) {
|
||||||
|
assert(ps->getDimension() == 3);
|
||||||
|
PolySet *ps_tri = new PolySet(3, ps->convexValue());
|
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 20 00:14:44 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Cleanup BuildRequires, sort, remove duplicates
|
||||||
|
- Fix Url:, openscad.org redirects to www.openscad.org
|
||||||
|
- Add openscad-git_c68684f9520d.patch, fix build with Boost 1.69
|
||||||
|
- Use %license, remove %defattr
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 15 02:12:01 UTC 2017 - plinnell@opensuse.org
|
Fri Dec 15 02:12:01 UTC 2017 - plinnell@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package openscad
|
# spec file for package openscad
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@@ -20,49 +20,45 @@ Name: openscad
|
|||||||
Version: 2015.03
|
Version: 2015.03
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Programmers Solid 3D CAD Modeller
|
Summary: Programmers Solid 3D CAD Modeller
|
||||||
License: GPL-3.0+
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Graphics/CAD
|
Group: Productivity/Graphics/CAD
|
||||||
Url: http://openscad.org/
|
Url: http://www.openscad.org/
|
||||||
Source: http://files.openscad.org/%{name}-%{version}-2.src.tar.gz
|
Source: http://files.openscad.org/%{name}-%{version}-2.src.tar.gz
|
||||||
#PATCH-FIX-UPSTREAM openscad-git4fa5f0340a.patch -- Fix Build with Qt 5.7.1
|
#PATCH-FIX-UPSTREAM openscad-git4fa5f0340a.patch -- Fix Build with Qt 5.7.1
|
||||||
Patch0: openscad-git4fa5f0340a.patch
|
Patch0: openscad-git4fa5f0340a.patch
|
||||||
|
# PATCH-FIX-UPSTREAM https://github.com/openscad/openscad/commit/c68684f9520d.patch -- Fix build with Boost 1.69
|
||||||
|
Patch1: openscad-git_c68684f9520d.patch
|
||||||
|
BuildRequires: eigen3-devel
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
|
BuildRequires: fontconfig-devel
|
||||||
|
BuildRequires: freetype2-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glew-devel
|
BuildRequires: glew-devel
|
||||||
BuildRequires: harfbuzz-devel
|
BuildRequires: harfbuzz-devel
|
||||||
BuildRequires: libcgal-devel
|
BuildRequires: libcgal-devel
|
||||||
BuildRequires: opencsg-devel
|
BuildRequires: opencsg-devel
|
||||||
BuildRequires: freetype2-devel
|
|
||||||
BuildRequires: harfbuzz-devel
|
|
||||||
BuildRequires: boost-devel
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires: Mesa-devel
|
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: libeigen3-devel
|
BuildRequires: libboost_filesystem-devel
|
||||||
|
BuildRequires: libboost_program_options-devel
|
||||||
|
BuildRequires: libboost_regex-devel
|
||||||
|
BuildRequires: libboost_system-devel
|
||||||
|
BuildRequires: libboost_thread-devel
|
||||||
BuildRequires: libqscintilla-qt5-devel
|
BuildRequires: libqscintilla-qt5-devel
|
||||||
BuildRequires: pkgconfig(Qt5Concurrent)
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
||||||
BuildRequires: pkgconfig(Qt5Core)
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
BuildRequires: pkgconfig(Qt5OpenGL)
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
||||||
BuildRequires: pkgconfig(Qt5Widgets)
|
BuildRequires: pkgconfig(Qt5Widgets)
|
||||||
BuildRequires: fontconfig-devel
|
|
||||||
BuildRequires: libboost_thread-devel
|
|
||||||
BuildRequires: libboost_program_options-devel
|
|
||||||
BuildRequires: libboost_filesystem-devel
|
|
||||||
BuildRequires: libboost_system-devel
|
|
||||||
BuildRequires: libboost_regex-devel
|
|
||||||
|
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora_version}
|
%if 0%{?fedora_version}
|
||||||
|
BuildRequires: boost-devel
|
||||||
BuildRequires: byacc
|
BuildRequires: byacc
|
||||||
BuildRequires: eigen3-devel
|
|
||||||
BuildRequires: mesa-libGL-devel
|
BuildRequires: mesa-libGL-devel
|
||||||
BuildRequires: mesa-libGLU-devel
|
BuildRequires: mesa-libGLU-devel
|
||||||
BuildRequires: qscintilla-devel
|
BuildRequires: qscintilla-devel
|
||||||
BuildRequires: qt-devel
|
BuildRequires: qt-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenSCAD is a software for creating solid 3D CAD objects. It does not
|
OpenSCAD is a software for creating solid 3D CAD objects. It does not
|
||||||
@@ -73,6 +69,7 @@ aspects, e.g. modelling of machine parts.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-2
|
%setup -q -n %{name}-%{version}-2
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@@ -89,8 +86,8 @@ install -D -m 0644 doc/openscad.1 %{buildroot}%{_mandir}/man1/openscad.1
|
|||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%doc README.md RELEASE_NOTES doc/*.pdf
|
||||||
%doc COPYING README.md RELEASE_NOTES doc/*.pdf
|
%license COPYING
|
||||||
%{_bindir}/openscad
|
%{_bindir}/openscad
|
||||||
%{_datadir}/openscad/
|
%{_datadir}/openscad/
|
||||||
%{_datadir}/applications/openscad.desktop
|
%{_datadir}/applications/openscad.desktop
|
||||||
|
Reference in New Issue
Block a user