From 6c9c149ca35598505add06057f718fb5ead4b1e0 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 8 Nov 2022 15:08:42 +0800 Subject: [PATCH] add loongarch support for double-conversion Signed-off-by: Wenlong Zhang (cherry picked from commit 375dd15aef0ccae709305465bf1bc82de7acf65e) --- ...nversion-3.1.5-add-loongarch-support.patch | 24 +++++++++++++++++++ double-conversion.spec | 8 +++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 double-conversion-3.1.5-add-loongarch-support.patch diff --git a/double-conversion-3.1.5-add-loongarch-support.patch b/double-conversion-3.1.5-add-loongarch-support.patch new file mode 100644 index 0000000..3f72089 --- /dev/null +++ b/double-conversion-3.1.5-add-loongarch-support.patch @@ -0,0 +1,24 @@ +From e36eb24820f9349591e20c57944ab8f713ccc9f7 Mon Sep 17 00:00:00 2001 +From: Sun Haiyong +Date: Wed, 22 Dec 2021 15:32:37 +0800 +Subject: [PATCH] Add loongarch support. + +Signed-off-by: Wenlong Zhang +--- + double-conversion/utils.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/double-conversion/utils.h b/double-conversion/utils.h +index 4328344..72f1df8 100644 +--- a/double-conversion/utils.h ++++ b/double-conversion/utils.h +@@ -93,6 +93,7 @@ int main(int argc, char** argv) { + #if defined(_M_X64) || defined(__x86_64__) || \ + defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \ + defined(__hppa__) || defined(__ia64__) || \ ++ defined(__loongarch64) || \ + defined(__mips__) || \ + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ + defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ +-- +2.30.0 diff --git a/double-conversion.spec b/double-conversion.spec index 597c965..085b6cd 100644 --- a/double-conversion.spec +++ b/double-conversion.spec @@ -3,11 +3,12 @@ Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles Name: double-conversion Version: 3.1.5 -Release: 1 +Release: 2 License: BSD URL: https://github.com/google/double-conversion Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ cmake +Patch1: double-conversion-3.1.5-add-loongarch-support.patch %description Provides binary-decimal and decimal-binary routines for IEEE doubles. @@ -34,7 +35,7 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release} Static %{name} library. %prep -%setup -q +%autosetup -n %{name}-%{version} -p1 %build mkdir -p build-shared @@ -84,5 +85,8 @@ popd %endif %changelog +* Tue Nov 8 2022 WenlongZhang - 3.1.5-2 +- Add loongarch support. + * Thu Jul 23 2020 chengzihan - 3.1.5-1 - Package init -- Gitee