diff --git a/cogl-1.22.8-sw.patch b/cogl-1.22.8-sw.patch new file mode 100755 index 0000000..f35d1db --- /dev/null +++ b/cogl-1.22.8-sw.patch @@ -0,0 +1,36 @@ +diff -Naur cogl-1.22.8.org/build/autotools/as-glibconfig.m4 cogl-1.22.8.sw/build/autotools/as-glibconfig.m4 +--- cogl-1.22.8.org/build/autotools/as-glibconfig.m4 2022-02-25 03:19:43.760000000 +0000 ++++ cogl-1.22.8.sw/build/autotools/as-glibconfig.m4 2022-02-25 04:38:10.730000000 +0000 +@@ -1326,6 +1326,12 @@ + AC_MSG_WARN([[$SPARCV9_WARNING]])) + glib_memory_barrier_needed=yes + ;; ++ sw_64*) ++ AC_MSG_RESULT([sw_64]) ++ AC_DEFINE_UNQUOTED(G_ATOMIC_SW_64, 1, ++ [sw_64 atomic implementation]) ++ glib_memory_barrier_needed=yes ++ ;; + alpha*) + AC_MSG_RESULT([alpha]) + AC_DEFINE_UNQUOTED(G_ATOMIC_ALPHA, 1, +diff -Naur cogl-1.22.8.org/configure cogl-1.22.8.sw/configure +--- cogl-1.22.8.org/configure 2022-02-25 03:19:43.710000000 +0000 ++++ cogl-1.22.8.sw/configure 2022-02-25 04:31:21.340000000 +0000 +@@ -23659,6 +23659,16 @@ + conftest$ac_exeext conftest.$ac_ext + glib_memory_barrier_needed=yes + ;; ++ sw_64*) ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: sw_64" >&5 ++$as_echo "sw_64" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++#define G_ATOMIC_SW_64 1 ++_ACEOF ++ ++ glib_memory_barrier_needed=yes ++ ;; + alpha*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5 + $as_echo "alpha" >&6; } diff --git a/cogl.spec b/cogl.spec index fe6a044..0cc88ba 100644 --- a/cogl.spec +++ b/cogl.spec @@ -1,11 +1,14 @@ Name: cogl Version: 1.22.8 -Release: 1 +Release: 2 Summary: Cogl is a modern 3D graphics API with associated utility APIs License: LGPLv2+ URL: https://developer.gnome.org/cogl/ Source0: https://download.gnome.org/sources/cogl/1.22/%{name}-%{version}.tar.xz +%ifarch sw_64 +Patch1: cogl-1.22.8-sw.patch +%endif BuildRequires: chrpath cairo-devel mesa-libEGL-devel mesa-libgbm-devel gdk-pixbuf2-devel BuildRequires: mesa-libGL-devel glib2-devel gobject-introspection-devel gtk-doc pango-devel @@ -78,6 +81,9 @@ chrpath --delete %{buildroot}%{_libdir}/libcogl-pango.so %exclude %{_datadir}/cogl/examples-data/crate.jpg %changelog +* Wed Oct 19 2022 wuzx - 1.22.8-2 +- add sw64 patch + * Mon Feb 1 2021 yanglu - 1.22.8-1 - update to 1.22.8