File mingw32-glfw.spec of Package mingw32-glfw
#
# spec file for package mingw32-glfw
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015-2023, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define realname glfw
%define libname glfw3
Name: mingw32-%{realname}
Version: 3.3.9
Release: 0
Summary: Portable framework for OpenGL application development
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
BuildRequires: cmake
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-libusb-1_0-devel
BuildRequires: mingw32-winpthreads-devel
BuildArch: noarch
%{_mingw32_package_header_debug}
%{_mingw32_debug_package}
#!BuildIgnore: post-build-check
%description
GLFW is a free, Open Source, portable framework for OpenGL application
development. In short, it is a single library providing a powerful,
portable API for otherwise operating system specific tasks such as opening
an OpenGL window, and reading keyboard, time, mouse and joystick input.
%package -n mingw32-%{libname}
Summary: Portable framework for OpenGL application development
Group: System/Libraries
%description -n mingw32-%{libname}
GLFW is a free, Open Source, portable framework for OpenGL application
development. In short, it is a single library providing a powerful,
portable API for otherwise operating system specific tasks such as opening
an OpenGL window, and reading keyboard, time, mouse and joystick input.
%package devel
Summary: Portable framework for OpenGL application development
Group: Development/Libraries/C and C++
%description devel
GLFW is a free, Open Source, portable framework for OpenGL application
development. In short, it is a single library providing a powerful,
portable API for otherwise operating system specific tasks such as opening
an OpenGL window, and reading keyboard, time, mouse and joystick input.
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw32_cmake}
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
# libglfw3dll.a -> libglfw3.dll.a
mv %{buildroot}/%{_mingw32_libdir}/libglfw3dll.a %{buildroot}/%{_mingw32_libdir}/libglfw3.dll.a
%files -n mingw32-%{libname}
%{_mingw32_bindir}/glfw3.dll
%files devel
%license LICENSE.md
%doc README.md
%{_mingw32_includedir}/GLFW
%{_mingw32_libdir}/libglfw3.dll.a
%{_mingw32_libdir}/cmake/glfw3
%{_mingw32_libdir}/pkgconfig/glfw3.pc
%changelog