diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-22 08:45:35 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-22 08:45:35 +0000 |
| commit | 4ed8d213a00e8fd0af900cbf7e5b78f482ca1d4a (patch) | |
| tree | a13972fbcbbc33973a0b4d2790a036b373f6eb5c /glfw-devel.spec | |
| parent | d9df0bbbb548ae92a414138eca375e70092c7900 (diff) | |
automatic import of glfw-devel
Diffstat (limited to 'glfw-devel.spec')
| -rw-r--r-- | glfw-devel.spec | 68 |
1 files changed, 68 insertions, 0 deletions
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 <builder@openeuler.org> + +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 <builder@openeuler.org> - 3.6.0-1 +- Initial package |
