diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-23 11:16:02 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-23 11:16:02 +0000 |
| commit | 0d17df8305bcdd1cb21f81c10366c75939f8f261 (patch) | |
| tree | cb56e3406e4985070a896dd0c6c63678945fb707 | |
| parent | 860b4761c2ff771da4879cf8f4096486fdc66d16 (diff) | |
automatic import of libglfw3-dev
| -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 |
