%global soversion 1.2.0 Name: mcut Version: 1.3.0 Release: 2%{?dist} Summary: A library for resolving intersections between surface meshes # The entire source is LGPL-3.0-or-later, except: # - include/mcut/internal/cdt/ is MPL-2.0 License: LGPL-3.0-or-later AND MPL-2.0 URL: https://github.com/cutdigital/mcut/ Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Backport https://github.com/cutdigital/mcut/pull/40 (fixes compilation) Patch1: mcut-install-lib.patch # Add missing include (fixes compilation) Patch2: mcut-stdtypes.patch BuildRequires: cmake >= 3.12 BuildRequires: gcc-c++ %global common_description %{expand: A library for detecting and resolving intersections between two surface meshes. This project is called "MCUT" (short for 'mesh cutting'), and it provides functionality to perform robust geometry operations between surfaces. The project is designed for a broad range of real-world problems relating to 3D modelling and design tasks. Application areas include computer animation, aerospace and automotive engineering, digital dental modelling, mining, civil and mechanical engineering amongst others.} %description %{common_description} %package devel Summary: Headers and object files for mcut Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{common_description} This package contains headers and object files for developing with mcut. %prep %autosetup -p1 %build %cmake \ -DMCUT_BUILD_AS_SHARED_LIB=ON \ -DMCUT_BUILD_TESTS=OFF \ -DMCUT_BUILD_TUTORIALS=OFF %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_libdir} mv %{buildroot}%{_prefix}/bin/libmcut.so* %{buildroot}%{_libdir} rm -f %{buildroot}%{_prefix}/LICENSE.txt %{buildroot}%{_prefix}/README.md # Sorry, no tests for now because they require a library # that is not packaged yetL # https://github.com/sheredom/utest.h %files %license LICENSE.txt %doc README.md %{_libdir}/libmcut.so.%{soversion} %files devel %doc README.md %{_includedir}/mcut %{_libdir}/libmcut.so %changelog * Sun Nov 2 2025 Oleg Girko