From 1edb8b1785b8905aab9d20c982a2bdda746bd125 Mon Sep 17 00:00:00 2001 From: wxiat Date: Mon, 31 Jul 2023 17:19:18 +0800 Subject: [PATCH] add sw --- libvisual-0.4.0-sw.patch | 106 +++++++++++++++++++++++++++++++++++++++ libvisual.spec | 7 ++- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 libvisual-0.4.0-sw.patch diff --git a/libvisual-0.4.0-sw.patch b/libvisual-0.4.0-sw.patch new file mode 100644 index 0000000..d29e22b --- /dev/null +++ b/libvisual-0.4.0-sw.patch @@ -0,0 +1,106 @@ +diff -Nuar libvisual-0.4.0.org/aclocal.m4 libvisual-0.4.0.sw/aclocal.m4 +--- libvisual-0.4.0.org/aclocal.m4 2023-07-31 16:58:13.614069637 +0800 ++++ libvisual-0.4.0.sw/aclocal.m4 2023-07-31 16:59:51.489509547 +0800 +@@ -9425,7 +9425,7 @@ + [ + # Guess based on the CPU. + case "$host_cpu" in +- alpha* | i[34567]86 | m68k | s390*) ++ sw_64* | alpha* | i[34567]86 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; +diff -Nuar libvisual-0.4.0.org/configure libvisual-0.4.0.sw/configure +--- libvisual-0.4.0.org/configure 2023-07-31 16:58:13.615069672 +0800 ++++ libvisual-0.4.0.sw/configure 2023-07-31 17:03:39.289515751 +0800 +@@ -2011,6 +2011,7 @@ + + lv_mips=no + lv_alpha=no ++lv_sw_64=no + lv_sparc=no + lv_ix86=no + lv_x86_64=no +@@ -2019,6 +2020,7 @@ + case "$host_cpu" in + mips) lv_mips=yes;; + alpha) lv_alpha=yes;; ++ sw_64) lv_sw_64=yes;; + sparc) lv_sparc=yes;; + i*86) lv_ix86=yes;; + x86_64*) lv_x86_64=yes;; +@@ -27200,6 +27202,7 @@ + + lv_mips=$lv_mips + lv_alpha=$lv_alpha ++ lv_sw_64=$lv_sw_64 + lv_sparc=$lv_sparc + lv_ix86=$lv_ix86 + lv_powerpc=$lv_powerpc +@@ -28309,6 +28312,13 @@ + _______EOF + fi + ++ if test x$lv_sw_64 = xyes ; then ++ cat >>$outfile <<_______EOF ++ ++#define VISUAL_ARCH_SW_64 ++_______EOF ++ fi ++ + if test x$lv_alpha = xyes ; then + cat >>$outfile <<_______EOF + +diff -Nuar libvisual-0.4.0.org/configure.ac libvisual-0.4.0.sw/configure.ac +--- libvisual-0.4.0.org/configure.ac 2023-07-31 16:58:13.618069777 +0800 ++++ libvisual-0.4.0.sw/configure.ac 2023-07-31 17:08:14.601191800 +0800 +@@ -26,6 +26,7 @@ + + lv_mips=no + lv_alpha=no ++lv_sw_64=no + lv_sparc=no + lv_ix86=no + lv_x86_64=no +@@ -34,6 +35,7 @@ + case "$host_cpu" in + mips) lv_mips=yes;; + alpha) lv_alpha=yes;; ++ sw_64) lv_sw_64=yes;; + sparc) lv_sparc=yes;; + i*86) lv_ix86=yes;; + x86_64*) lv_x86_64=yes;; +@@ -562,6 +564,13 @@ + _______EOF + fi + ++ if test x$lv_sw_64 = xyes ; then ++ cat >>$outfile <<_______EOF ++ ++#define VISUAL_ARCH_SW_64 ++_______EOF ++ fi ++ + if test x$lv_alpha = xyes ; then + cat >>$outfile <<_______EOF + +@@ -778,6 +787,7 @@ + + lv_mips=$lv_mips + lv_alpha=$lv_alpha ++ lv_sw_64=$lv_sw_64 + lv_sparc=$lv_sparc + lv_ix86=$lv_ix86 + lv_powerpc=$lv_powerpc +diff -Nuar libvisual-0.4.0.org/m4/intdiv0.m4 libvisual-0.4.0.sw/m4/intdiv0.m4 +--- libvisual-0.4.0.org/m4/intdiv0.m4 2023-07-31 16:58:13.613069601 +0800 ++++ libvisual-0.4.0.sw/m4/intdiv0.m4 2023-07-31 17:09:41.405242594 +0800 +@@ -56,7 +56,7 @@ + [ + # Guess based on the CPU. + case "$host_cpu" in +- alpha* | i[34567]86 | m68k | s390*) ++ sw_64* | alpha* | i[34567]86 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; diff --git a/libvisual.spec b/libvisual.spec index 93bb5e1..477bc04 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.2 +%define anolis_release .0.3 %global smallversion 0.4 @@ -16,6 +16,7 @@ BuildRequires: xorg-x11-proto-devel Patch0: libvisual-0.4.0-better-altivec-detection.patch Patch1: libvisual-0.4.0-inlinedefineconflict.patch Patch2: libvisual-0.4.0-format-security.patch +Patch3: libvisual-0.4.0-sw.patch %description Libvisual is an abstraction library that comes between applications and @@ -54,6 +55,7 @@ Doc pages for %{name}. %patch0 -p1 -b .altivec-detection %patch1 -p1 -b .inlinedefineconflict %patch2 -p1 -b .format-security +%patch3 -p1 %build %ifarch i386 @@ -124,6 +126,9 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %changelog +* Mon Jul 31 2023 wxiat - 1:0.4.0-25.0.3 +- add sw arch + * Mon Dec 19 2022 wangkaiyuan - 1:0.4.0-25.0.2 - Fix doc package installation -- Gitee