%{?mingw_package_header} Name: mingw-SDL2 Version: 2.0.10 Release: %mkrel 1 Summary: MinGW Windows port of SDL2 cross-platform multimedia library License: LGPLv2+ Group: Development/Other URL: http://www.libsdl.org/ Source0: http://www.libsdl.org/release/SDL2-%{version}.tar.gz BuildArch: noarch BuildRequires: dos2unix BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc # Not required at the moment, but SDL does contain plenty of C++ code, # I just haven't worked out how to enable it. #BuildRequires: mingw32-gcc-c++ %ifarch %{ix86} BuildRequires: nasm %endif %description Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. # Win32 %package -n mingw32-SDL2 Summary: MinGW Windows port of SDL cross-platform multimedia library %description -n mingw32-SDL2 Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. # Win32 (static) %package -n mingw32-SDL2-static Summary: MinGW Windows port of SDL cross-platform multimedia library Requires: mingw32-SDL2 = %{version}-%{release} %description -n mingw32-SDL2-static Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. # Win64 %package -n mingw64-SDL2 Summary: MinGW Windows port of SDL cross-platform multimedia library %description -n mingw64-SDL2 Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. # Win64 (static) %package -n mingw64-SDL2-static Summary: MinGW Windows port of SDL cross-platform multimedia library Requires: mingw64-SDL2 = %{version}-%{release} %description -n mingw64-SDL2-static Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. %?mingw_debug_package %prep %autosetup -p1 -n SDL2-%{version} dos2unix COPYING.txt README.txt %build %mingw_configure %mingw_make %{?_smp_mflags} %install %mingw_make DESTDIR=$RPM_BUILD_ROOT install # Remove test library. rm $RPM_BUILD_ROOT%{mingw32_libdir}/libSDL2_test.a rm $RPM_BUILD_ROOT%{mingw64_libdir}/libSDL2_test.a # Drop all .la files find $RPM_BUILD_ROOT -name "*.la" -delete # Win32 %files -n mingw32-SDL2 %doc README.txt COPYING.txt %{mingw32_bindir}/SDL2.dll %{mingw32_bindir}/sdl2-config %{mingw32_libdir}/libSDL2.dll.a %{mingw32_libdir}/libSDL2main.a %{mingw32_libdir}/cmake/SDL2/ %{mingw32_libdir}/pkgconfig/sdl2.pc %{mingw32_datadir}/aclocal/sdl2.m4 %{mingw32_includedir}/SDL2 # Win32 (static) %files -n mingw32-SDL2-static %{mingw32_libdir}/libSDL2.a # Win64 %files -n mingw64-SDL2 %doc README.txt COPYING.txt %{mingw64_bindir}/SDL2.dll %{mingw64_bindir}/sdl2-config %{mingw64_libdir}/libSDL2.dll.a %{mingw64_libdir}/libSDL2main.a %{mingw64_libdir}/cmake/SDL2/ %{mingw64_libdir}/pkgconfig/sdl2.pc %{mingw64_datadir}/aclocal/sdl2.m4 %{mingw64_includedir}/SDL2 # Win64 (static) %files -n mingw64-SDL2-static %{mingw64_libdir}/libSDL2.a %changelog * Sat Aug 31 2019 akien <akien> 2.0.10-1.mga6 + Revision: 1435907 - Version 2.0.10, fixes CVE-2019-757[2-8], CVE-2019-763[5-8], CVE-2019-13616 (mga#24497) - Version 2.0.9, needed for SDL2_image 2.0.4 (mga#22769) - Upstream patch to fix CVE-2017-2888 (mga#21882) * Fri Nov 18 2016 akien <akien> 2.0.5-1.mga6 + Revision: 1068240 - Drop no longer relevant patches (thus syncing with Fedora 2.0.5-1.fc26) + neoclust <neoclust> - imported package mingw-SDL2