File mingw64-SDL3.spec of Package mingw64-SDL3
#
# spec file for package mingw64-SDL3
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#
%{_mingw64_package_header_debug}
Name: mingw64-SDL3
Version: 3.4.2
Release: 0
Summary: Simple DirectMedia Layer Library
License: Zlib
URL: https://libsdl.org/
#Git-Clone: https://github.com/libsdl-org/SDL
Source: https://github.com/libsdl-org/SDL/releases/download/release-%{version}/SDL3-%{version}.tar.gz
Source2: https://github.com/libsdl-org/SDL/releases/download/release-%{version}/SDL3-%{version}.tar.gz.sig
Source3: %{name}.keyring
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: nasm
BuildArch: noarch
BuildSystem: mingw64cmake
BuildOption: -DSDL_SSE3:BOOL=OFF
BuildOption: -DSDL_3DNOW:BOOL=OFF
%ifarch %{ix86}
BuildOption: -DSDL_MMX:BOOL=OFF
BuildOption: -DSDL_SSE:BOOL=OFF
BuildOption: -DSDL_SSE2:BOOL=OFF
%endif
%description
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
%{_mingw64_debug_package}
%install -a
rm %{buildroot}/%{_mingw64_datadir}/licenses/SDL3/LICENSE.txt
%files
%license LICENSE.txt
%{_mingw64_includedir}/SDL3/
%{_mingw64_libdir}/libSDL3.a
%{_mingw64_libdir}/libSDL3_test.a
%{_mingw64_libdir}/pkgconfig/sdl3.pc
%{_mingw64_libdir}/cmake/SDL3/
%changelog