diff --git a/Sw64-Port-libmpc.patch b/Sw64-Port-libmpc.patch new file mode 100644 index 0000000000000000000000000000000000000000..980f137880ca8afe04e87aa5e7d195aaa5472376 --- /dev/null +++ b/Sw64-Port-libmpc.patch @@ -0,0 +1,34 @@ +diff --git a/build-aux/config.guess b/build-aux/config.guess +index 256083a..f7d4002 100755 +--- a/build-aux/config.guess ++++ b/build-aux/config.guess +@@ -1039,6 +1039,17 @@ EOF + sparc:Linux:*:* | sparc64:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; ++ sw_64:Linux:*:*) ++ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in ++ SW6) UNAME_MACHINE=sw_64sw6 ;; ++ SW6A) UNAME_MACHINE=sw_64sw6a ;; ++ SW6B) UNAME_MACHINE=sw_64sw6b ;; ++ SW8A) UNAME_MACHINE=sw_64sw8a ;; ++ esac ++ objdump --private-headers /bin/sh | grep -q ld.so.1 ++ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi ++ echo "${UNAME_MACHINE}-unknown-linux-${LIBC}" ++ exit ;; + tile*:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; +diff --git a/build-aux/config.sub b/build-aux/config.sub +index 20f7cf2..6f0c936 100755 +--- a/build-aux/config.sub ++++ b/build-aux/config.sub +@@ -329,6 +329,7 @@ case $basic_machine in + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ ++ | sw_64 | sw_64sw6 | sw_64sw6a | sw_64sw6b | sw_64sw8a \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ diff --git a/libmpc.spec b/libmpc.spec index 085a96c138581fe97be38702372c49b9dac9e56c..ef734edd6adfa7a2f6b03a970a7cfbb8aed6e91d 100644 --- a/libmpc.spec +++ b/libmpc.spec @@ -1,6 +1,6 @@ Name: libmpc Version: 1.3.1 -Release: 1 +Release: 2 Summary: C library for multiple precision complex arithmetic License: LGPLv3+ and GFDL-1.3-only URL: http://www.multiprecision.org/ @@ -11,6 +11,9 @@ BuildRequires: gmp-devel >= 5.0.0 BuildRequires: mpfr-devel >= 4.1.0 BuildRequires: texinfo +# Sw64 Port +Patch1001: Sw64-Port-libmpc.patch + %description MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the @@ -27,6 +30,7 @@ Header files and shared object symlinks for MPC is a C library. %prep %setup -q -n mpc-%{version} +%patch1001 -p1 %build %configure --disable-static @@ -69,6 +73,9 @@ fi %{_libdir}/libmpc.so %changelog +* Fri Nov 22 2024 swcompiler - 1.3.1-2 +- Sw64 Port + * Sat Jan 28 2023 Wenyu Liu - 1.3.1-1 - Upgrade to 1.3.1