diff --git a/SDL2.spec b/SDL2.spec index 652a269f7cc7bed46509b92466b8ebf70e84d938..f15170daac6ef7af2f40dcbb653829b7337e88d1 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -1,6 +1,6 @@ Name: SDL2 Version: 2.0.12 -Release: 4 +Release: 5 Summary: Cross-platform multimedia library License: zlib and MIT URL: http://www.libsdl.org/ @@ -18,7 +18,11 @@ BuildRequires: mesa-libGLU-devel mesa-libEGL-devel libglvnd-devel BuildRequires: libXext-devel libX11-devel libXi-devel libXrandr-devel BuildRequires: libXrender-devel libXScrnSaver-devel libusb-devel BuildRequires: libXinerama-devel libXcursor-devel systemd-devel +%ifarch loongarch64 +BuildRequires: pkgconfig(libpulse-simple) +%else BuildRequires: pkgconfig(libpulse-simple) pkgconfig(jack) +%endif BuildRequires: pkgconfig(dbus-1) pkgconfig(ibus-1.0) BuildRequires: pkgconfig(wayland-client) pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-cursor) pkgconfig(wayland-protocols) @@ -93,6 +97,9 @@ rm -vf %{buildroot}%{_libdir}/*.la %{_libdir}/lib*.a %changelog +* Fri Nov 18 2022 Wenlong Zhang - 2.0.12-5 +- add loongarch support + * Mon Apr 11 2022 yaoxin - 2.0.12-4 - Fix CVE-2020-14409 CVE-2020-14410 diff --git a/SDL_config.h b/SDL_config.h index 78625495505a5f4b27fed787ebb14af09dd3b200..a91c02d0bd3667320ad7179a90b3b8a285b6197b 100644 --- a/SDL_config.h +++ b/SDL_config.h @@ -76,6 +76,8 @@ #include "SDL_config-mips.h" #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 #include "SDL_config-riscv64.h" +#elif defined(__loongarch64) +#include "SDL_config-loongarch64.h" #else #error "The SDL2-devel package is not usable with the architecture." #endif