File OrcaSlicer.spec of Package OrcaSlicer

#
# spec file for package OrcaSlicer
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           OrcaSlicer
Version:        2.2.0
Release:        0
Summary:	Feature-Rich 3D printing slicer
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        AGPL-3.0-only
URL:            https://github.com/SoftFever/OrcaSlicer
Source:         https://github.com/SoftFever/%{name}/archive/refs/tags/v%{version}.tar.gz
# To be dissected:
Patch1:         OrcaSlicer-Build.patch
# known (new) deps:
BuildRequires:  cmake
BuildRequires:  memory-constraints
BuildRequires:  libboost_atomic-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_chrono-devel
BuildRequires:  libboost_date_time-devel
BuildRequires:  libboost_iostreams-devel
BuildRequires:  libboost_locale-devel
BuildRequires:  libboost_log-devel
BuildRequires:  libboost_nowide-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libboost_regex-devel
# BuildRequires:  libboost_system-devel
BuildRequires:  libboost_headers-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libexpat-devel
BuildRequires:  libjpeg-devel
BuildRequires:  memory-constraints
BuildRequires:  nlopt-devel
BuildRequires:  occt-devel
BuildRequires:  openexr-devel
BuildRequires:  openssl-devel
BuildRequires:  openvdb-devel
BuildRequires:  cmake(CGAL)
BuildRequires:  cmake(glfw3)
BuildRequires:  cmake(OpenCV)
BuildRequires:  cmake(Qhull)
BuildRequires:  gstreamer-devel
# BuildRequires:  libOSMesa-devel

# quick copy from prusa ...
BuildRequires:  blosc-devel
BuildRequires:  cereal-devel
BuildRequires:  cmake
BuildRequires:  eigen3-devel >= 3
BuildRequires:  expat
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gtest >= 1.7
BuildRequires:  libboost_atomic-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_iostreams-devel
BuildRequires:  libboost_locale-devel
BuildRequires:  libboost_log-devel
BuildRequires:  libboost_nowide-devel
BuildRequires:  libboost_regex-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libcurl-devel
BuildRequires:  libexpat-devel
BuildRequires:  libjpeg-devel
BuildRequires:  memory-constraints
BuildRequires:  nlopt-devel
BuildRequires:  occt-devel
BuildRequires:  openexr-devel
BuildRequires:  openssl-devel
BuildRequires:  openvdb-devel >= 7.1
BuildRequires:  openvdb-tools
BuildRequires:  pkgconfig
BuildRequires:  tbb-devel
BuildRequires:  wxGTK3-devel >= 3.2
BuildRequires:  nanosvg-devel >= 2022.12.22
BuildRequires:  (cmake(Catch2) >= 2.9 with cmake(Catch2) < 3)
BuildRequires:  cmake(LibBGCode)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(qhullcpp)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-egl)
BuildRequires:  pkgconfig(webkit2gtk-4.1)
Requires:       noto-sans-fonts

%description
OrcaSlicer (orca-slicer) is a member of the slic3r based
programs family with many built-in features.

%prep
%autosetup -p1

%build
%limit_build -m 3072
%cmake -Wno-dev \
  -DSLIC3R_FHS=1 \
  -DSLIC3R_GTK=3 \
  -DOPENVDB_FIND_MODULE_PATH=%{_libdir}/cmake/OpenVDB \
  -D CGAL_CONFIG_DIR=%{_prefix} -D CGAL_ROOT=%{_prefix}
%cmake_build

%install
%cmake_install
# already is %%license:
rm -f %{buildroot}%{_prefix}/LICENSE.txt

%files
%license LICENSE.txt
%doc SECURITY.md README.md
%{_bindir}/orca-slicer
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}*.png
%{_datadir}/applications/%{name}.desktop


%changelog

openSUSE Build Service is sponsored by