File project.diff of Package glfw
--- glfw.spec.orig
+++ glfw.spec
@@ -30,11 +30,24 @@ Summary: Framework for OpenGL app
License: Zlib
Group: Development/Libraries/C and C++
URL: https://www.glfw.org/
-Source: https://github.com/glfw/glfw/archive/%{version}.tar.gz#/glfw-%{version}.tar.gz
+Source: glfw-%{version}.tar.xz
Source99: glfw-rpmlintrc
+%if %{with wayland}
+# https://github.com/Admicos/minecraft-wayland
+Patch1: 0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch
+Patch2: 0002-Wayland-Continue-poll-if-timerfd-can-t-be-read.patch
+Patch3: 0003-Don-t-crash-on-calls-to-focus-or-icon.patch
+Patch4: 0004-wayland-fix-broken-opengl-screenshots-on-mutter.patch
+Patch5: 0005-Add-warning-about-being-an-unofficial-patch.patch
+Patch6: 0006-Don-t-crash-getting-scancode-name.patch
+Patch7: 0007-libdecor-proper-decorations-with-title-and-window-bu.patch
+Patch8: 0008-Add-libdecoration-marker-to-stderr-warning.patch
+Patch9: 0009-Wayland-Fix-cursor-offset-when-shape-changes.patch
+%endif
BuildRequires: cmake >= 3.0
BuildRequires: doxygen
BuildRequires: gcc-c++
+BuildRequires: libdecor-devel
BuildRequires: pkgconfig
BuildRequires: vulkan-devel
BuildRequires: pkgconfig(gl)
@@ -92,6 +105,18 @@ reading keyboard, time, mouse and joysti
%setup -q -n glfw-%{version}
find . -type f | xargs sed -i 's/\r//'
+%if %{with wayland}
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%endif
+
# temp geany config directory for allow geany to generate tags
mkdir -p geany_config
@@ -128,6 +153,7 @@ install -m0644 glfw.c.tags %{buildroot}/
%license LICENSE.md
%doc README.md
%{_libdir}/libglfw.so.%{sover}*
+%{_datadir}/doc/GLFW
%if %{without wayland}
%files -n libglfw-devel