diff options
Diffstat (limited to 'libglfw3-dev.spec')
| -rw-r--r-- | libglfw3-dev.spec | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/libglfw3-dev.spec b/libglfw3-dev.spec index 37cd13a..c6531ed 100644 --- a/libglfw3-dev.spec +++ b/libglfw3-dev.spec @@ -1,7 +1,7 @@ # topdir: libglfw3-dev-%{version} Name: libglfw3-dev Version: 3.6.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A multi-platform library for OpenGL, window and input License: Zlib @@ -12,6 +12,8 @@ Group: Development/Libraries Packager: openEuler Builder <builder@openeuler.org> BuildRequires: cmake +BuildRequires: gcc +BuildRequires: make BuildRequires: gcc-c++ BuildRequires: libX11-devel BuildRequires: libXrandr-devel @@ -37,15 +39,23 @@ files and pkg-config file needed to develop applications with GLFW. %autosetup -n %{name}-%{version} %build -%cmake \ +# Explicit out-of-source build: this openEuler's %cmake macro runs cmake +# in-source (no build subdir), while %cmake_build expects a %{_target_platform} +# build dir -> mismatch ("aarch64-openEuler-linux-gnu is not a directory"). +# Configure/build in a dedicated build dir with %make_build avoids the macro pit. +mkdir -p build +cd build +%cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DGLFW_BUILD_EXAMPLES=OFF \ -DGLFW_BUILD_TESTS=OFF \ -DGLFW_BUILD_DOCS=OFF -%cmake_build +%make_build %install -%cmake_install +# Install from the out-of-source build dir; cmake --install reads DESTDIR. +cd build +DESTDIR=%{buildroot} cmake --install . %files %license LICENSE.md @@ -57,5 +67,9 @@ files and pkg-config file needed to develop applications with GLFW. %{_libdir}/pkgconfig/glfw3.pc %changelog +* Wed Sep 23 2026 openEuler Builder <builder@openeuler.org> - 3.6.0-2 +- Switch to explicit out-of-source cmake build to fix %cmake_build macro + mismatch on openEuler (in-source config vs %{_target_platform} build dir) + * Wed Sep 23 2026 openEuler Builder <builder@openeuler.org> - 3.6.0-1 - Initial package |
