File project.diff of Package mingw64-glfw
--- mingw64-glfw.changes.orig
+++ mingw64-glfw.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Feb 6 23:12:31 UTC 2024 - Martin Hauke <mardnh@gmx.de>
+
+- Add patch:
+ * 001-3.2-cmake-suffix.patch
+
+-------------------------------------------------------------------
Fri Dec 15 12:33:33 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Update to version 3.3.9
--- mingw64-glfw.spec.orig
+++ mingw64-glfw.spec
@@ -27,6 +27,8 @@ License: Zlib
Group: Development/Libraries/C and C++
URL: https://www.glfw.org
Source: https://github.com/glfw/glfw/archive/refs/tags/%{version}.tar.gz
+# see: https://github.com/msys2/MINGW-packages/issues/19599
+Patch0: https://raw.githubusercontent.com/msys2/MINGW-packages/master/mingw-w64-glfw/001-3.2-cmake-suffix.patch
BuildRequires: cmake
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-cmake
@@ -35,10 +37,9 @@ BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libusb-1_0-devel
BuildRequires: mingw64-winpthreads-devel
-BuildArch: noarch
%{_mingw64_package_header_debug}
-%{_mingw64_debug_package}
#!BuildIgnore: post-build-check
+BuildArch: noarch
%description
GLFW is a free, Open Source, portable framework for OpenGL application
@@ -46,6 +47,8 @@ development. In short, it is a single li
portable API for otherwise operating system specific tasks such as opening
an OpenGL window, and reading keyboard, time, mouse and joystick input.
+%{_mingw64_debug_package}
+
%package -n mingw64-%{libname}
Summary: Portable framework for OpenGL application development
Group: System/Libraries
@@ -68,6 +71,7 @@ an OpenGL window, and reading keyboard,
%prep
%setup -q -n %{realname}-%{version}
+%autopatch -p1
%build
%{_mingw64_cmake}
@@ -75,8 +79,6 @@ an OpenGL window, and reading keyboard,
%install
%{_mingw64_cmake_install}
-# libglfw3dll.a -> libglfw3.dll.a
-mv %{buildroot}/%{_mingw64_libdir}/libglfw3dll.a %{buildroot}/%{_mingw64_libdir}/libglfw3.dll.a
%files -n mingw64-%{libname}
%{_mingw64_bindir}/glfw3.dll