public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sdl2-compat] rawhide: Add loongarch64 support.
@ 2026-09-03  9:36 Sun Haiyong
  0 siblings, 0 replies; only message in thread
From: Sun Haiyong @ 2026-09-03  9:36 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/sdl2-compat
            Branch : rawhide
            Commit : a1c0da84736a0e9c417c86bfe09cb58f0d74a368
            Author : Sun Haiyong <sunhaiyong@zdbr.net>
            Date   : 2026-07-24T10:50:55+08:00
            Stats  : +8/-1 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/sdl2-compat/c/a1c0da84736a0e9c417c86bfe09cb58f0d74a368?branch=rawhide

            Log:
            Add loongarch64 support.

added loongarch64 support for SDL2_config.h and SDL2_revision.h wrappers

Signed-off-by: Sun Haiyong <sunhaiyong@zdbr.net>

---
diff --git a/SDL2_config.h b/SDL2_config.h
index 7862549..8eec9df 100644
--- a/SDL2_config.h
+++ b/SDL2_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(__loongarch_lp64)
+#include "SDL_config-loongarch64.h"
 #else
 #error "The SDL2-devel package is not usable with the architecture."
 #endif

diff --git a/SDL2_revision.h b/SDL2_revision.h
index e43c4ec..324cdeb 100644
--- a/SDL2_revision.h
+++ b/SDL2_revision.h
@@ -76,6 +76,8 @@
 #include "SDL_revision-mips.h"
 #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
 #include "SDL_revision-riscv64.h"
+#elif defined(__loongarch_lp64)
+#include "SDL_revision-loongarch64.h"
 #else
 #error "The SDL2-devel package is not usable with the architecture."
 #endif

diff --git a/sdl2-compat.spec b/sdl2-compat.spec
index 4f035ef..bbca9d2 100644
--- a/sdl2-compat.spec
+++ b/sdl2-compat.spec
@@ -9,7 +9,7 @@
 
 Name:           sdl2-compat
 Version:        2.32.70
-Release:        2%{?dist}
+Release:        3%{?dist}
 SourceLicense:  Zlib and Apache-2.0 and MIT and BSD-3-Clause
 Summary:        SDL 2.0 runtime compatibility library using SDL 3.0
 License:        Zlib
@@ -167,6 +167,9 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_includedir}/SDL2/SDL_revision.h
 
 
 %changelog
+* Fri Jul 24 2026 Sun Haiyong <sunhaiyong@zdbr.net> - 2.32.68-3
+- added loongarch64 support for SDL2_config.h and SDL2_revision.h wrappers
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.32.70-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-03  9:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03  9:36 [rpms/sdl2-compat] rawhide: Add loongarch64 support Sun Haiyong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox