summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--glfw-devel.spec68
-rw-r--r--sources1
3 files changed, 70 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7a799dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glfw-devel-3.6.0.tar.gz
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..c482680
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+73bbba847701f4660f2047bee3b7a335 glfw-devel-3.6.0.tar.gz