From 4ed8d213a00e8fd0af900cbf7e5b78f482ca1d4a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 22 Sep 2026 08:45:35 +0000 Subject: automatic import of glfw-devel --- glfw-devel.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 glfw-devel.spec (limited to 'glfw-devel.spec') diff --git a/glfw-devel.spec b/glfw-devel.spec new file mode 100644 index 0000000..fd324ef --- /dev/null +++ b/glfw-devel.spec @@ -0,0 +1,68 @@ +%global commit 92dcf4ce74f2e2554a98fea09be7c705c17daa5a + +Name: glfw-devel +Version: 3.6.0 +Release: 1%{?dist} +Summary: Development files and shared library for GLFW + +License: Zlib +URL: https://www.glfw.org/ +Source0: https://github.com/glfw/glfw/archive/%{commit}.tar.gz#/glfw-devel-%{version}.tar.gz + +Group: Development/Libraries +Packager: openEuler Builder + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: make +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXrandr-devel +BuildRequires: libXinerama-devel +BuildRequires: libXcursor-devel +BuildRequires: libXi-devel +BuildRequires: xorg-x11-proto-devel +BuildRequires: wayland-devel +BuildRequires: libxkbcommon-devel + +%description +GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and +Vulkan application development. It provides a simple, platform-independent +API for creating windows, contexts and surfaces, reading input, handling +events, etc. + +This package provides the GLFW shared library together with its development +files (headers, CMake package files and pkgconfig file). On Linux, GLFW is +built with both the X11 and the Wayland backends enabled. + +# topdir: glfw-devel-3.6.0 (produced by the packaging transform; equals name-version) + +%prep +%autosetup -n %{name}-%{version} + +%build +%cmake \ + -DBUILD_SHARED_LIBS=ON \ + -DGLFW_BUILD_EXAMPLES=OFF \ + -DGLFW_BUILD_TESTS=OFF \ + -DGLFW_BUILD_DOCS=OFF \ + -DGLFW_BUILD_X11=ON \ + -DGLFW_BUILD_WAYLAND=ON +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE.md +%doc README.md +%{_libdir}/libglfw.so +%{_libdir}/libglfw.so.3 +%{_libdir}/libglfw.so.3.6 +%{_includedir}/GLFW/ +%{_libdir}/cmake/glfw3/ +%{_libdir}/pkgconfig/glfw3.pc + +%changelog +* Tue Sep 22 2026 openEuler Builder - 3.6.0-1 +- Initial package -- cgit v1.2.3