File mingw64-SDL2.spec of Package mingw64-SDL2
#
# spec file for package mingw64-SDL2
#
# Copyright (c) 2021 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/
#
Name: mingw64-SDL2
%define lname mingw64-libSDL2
Version: 2.32.4
Release: 0
Summary: Simple DirectMedia Layer Library
License: Zlib
Group: Development/Libraries/X11
URL: https://libsdl.org/
#DL-URL: https://libsdl.org/download-2.0.php
Source: https://libsdl.org/release/SDL2-%version.tar.gz
Source2: https://libsdl.org/release/SDL2-%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
%_mingw64_package_header_debug
%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.
%package -n %lname
Summary: Simple DirectMedia Layer Library for MinGW-i686
Group: System/Libraries
Provides: SDL2 = %version-%release
%description -n %lname
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
%package -n mingw64-libSDL2-devel
Summary: SDL2 Library Developer Files
Group: Development/Libraries/X11
Provides: mingw64-SDL2-devel = %version-%release
Requires: %lname = %version-%release
%description -n mingw64-libSDL2-devel
This package contains files needed for development with the SDL2
library.
%_mingw64_debug_package
%prep
%autosetup -n SDL2-%version
perl -i -pe 's{\r\n}{\n}g' *.txt README.md
%build
%_mingw64_cmake -DCMAKE_INSTALL_LIBDIR:PATH=lib
%make_build
%install
%_mingw64_cmake_install
rm %buildroot/%_mingw64_datadir/licenses/SDL2/LICENSE.txt
%check
%files -n %lname
%license LICENSE.txt
%doc README.md README-SDL.txt
%_mingw64_bindir/SDL2.dll
%files -n mingw64-libSDL2-devel
%_mingw64_bindir/sdl2-config
%_mingw64_libdir/libSDL2.dll.a
%_mingw64_libdir/libSDL2main.a
%_mingw64_libdir/libSDL2_test.a
%_mingw64_includedir/SDL2/
%_mingw64_datadir/aclocal/
%_mingw64_libdir/pkgconfig/sdl2.pc
%_mingw64_libdir/cmake/SDL2/
%changelog