File mingw64-sdl2-compat.spec of Package mingw64-sdl2-compat
#
# spec file for package mingw64-sdl2-compat
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
%define realname sdl2-compat
%define lname mingw64-libSDL2
Name: mingw64-%{realname}
Version: 2.32.54
Release: 0
Summary: SDL-2.0 Compatibility Layer for Simple DirectMedia Layer 3.0
License: MIT
Group: Development/Libraries/X11
URL: https://github.com/libsdl-org/sdl2-compat
Source: https://github.com/libsdl-org/sdl2-compat/releases/download/release-%version/sdl2-compat-%version.tar.gz
Source2: https://github.com/libsdl-org/sdl2-compat/releases/download/release-%version/sdl2-compat-%version.tar.gz.sig
BuildRequires: mingw64-libSDL3-devel >= 3.2.4
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch: noarch
%description
This is the "Simple DirectMedia Layer" library built from sdl2-compat.
it provides a binary and source compatible API for programs written
against SDL 2.0, but it uses SDL 3.0 behind the scenes.
%package -n %lname
Summary: SDL Graphics Routines for Primitives and Other Support Functions
Group: System/Libraries
Conflicts: mingw64-libSDL2
%description -n %lname
This is the "Simple DirectMedia Layer" library built from sdl2-compat.
it provides a binary and source compatible API for programs written
against SDL 2.0, but it uses SDL 3.0 behind the scenes.
%package -n mingw64-sdl2-compat-devel
Summary: Libraries, includes and more to develop SDL-2.0 applications
Group: Development/Libraries/X11
Conflicts: mingw64-SDL2-devel
Provides: mingw64-SDL2-devel = %version-%release
%description -n mingw64-sdl2-compat-devel
This package contains files needed for development with the SDL2
library.
%_mingw64_debug_package
%prep
%autosetup -n %{realname}-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
rm -Rv "%{buildroot}/%{_mingw64_datadir}/licenses"
%files -n %lname
%license LICENSE.txt
%_mingw64_bindir/SDL2.dll
%files -n mingw64-sdl2-compat-devel
%{_mingw64_bindir}/sdl2-config
%{_mingw64_libdir}/libSDL2.dll.a
%{_mingw64_libdir}/libSDL2main.a
%{_mingw64_libdir}/libSDL2_test.a
%{_mingw64_includedir}/SDL2/
%{_mingw64_libdir}/pkgconfig/sdl2-compat.pc
%{_mingw64_libdir}/cmake/SDL2/
%{_mingw64_datadir}/aclocal/
%changelog