diff options
Diffstat (limited to 'ros-humble-draco-devel.spec')
| -rw-r--r-- | ros-humble-draco-devel.spec | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/ros-humble-draco-devel.spec b/ros-humble-draco-devel.spec index dee5a1a..aae5f88 100644 --- a/ros-humble-draco-devel.spec +++ b/ros-humble-draco-devel.spec @@ -1,6 +1,6 @@ Name: ros-humble-draco-devel Version: 1.5.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library for compressing and decompressing 3D geometric meshes and point clouds License: Apache-2.0 @@ -12,6 +12,7 @@ Group: Development/Libraries Packager: openEuler Builder <builder@openeuler.org> BuildRequires: cmake +BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: python3 @@ -27,14 +28,24 @@ and other contexts where bandwidth is constrained. %autosetup -n %{name}-%{version} %build -%cmake \ +# Draco forbids in-source builds (CMakeLists.txt guard: CMAKE_SOURCE_DIR == +# CMAKE_BINARY_DIR -> FATAL_ERROR). Use an out-of-source build directory. +mkdir -p build +cd build +cmake .. \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ + -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG \ -DBUILD_SHARED_LIBS=ON \ -DDRACO_TESTS=OFF \ -DDRACO_TRANSCODER_SUPPORTED=OFF -%cmake_build +%make_build %install -%cmake_install +cd build +%make_install %files %license LICENSE @@ -49,5 +60,8 @@ and other contexts where bandwidth is constrained. %{_libdir}/pkgconfig/draco.pc %changelog +* Tue Oct 13 2026 openEuler Builder <builder@openeuler.org> - 1.5.7-2 +- Switch to out-of-source build: Draco CMakeLists forbids in-source builds + * Tue Oct 13 2026 openEuler Builder <builder@openeuler.org> - 1.5.7-1 - Initial package |
